aboutsummaryrefslogtreecommitdiff
path: root/Makefile.am
blob: 184fbc28ccfc4cac78f2aa707f6cbaeae703e28b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
SUBDIRS = . src scripts doc
pkgdatadir = $(datadir)/@PACKAGE@-@VERSION@
ACLOCAL_AMFLAGS = -I m4
DATADIRS = calfiles parmfiles idl
INCLUDE_FILES = \
			 src/fes/cf_calfes.h \
			 src/include/calfitsio.h \
			 src/include/calfuse.h \
			 src/include/cfortran.h \
			 src/include/compress.h \
			 src/include/config.h \
			 src/include/drvrsmem.h \
			 src/include/eval_defs.h \
			 src/include/eval_tab.h \
			 src/include/f77_wrap.h \
			 src/include/fusebuf.h \
			 src/include/group.h \
			 src/include/grparser.h \
			 src/include/imcompress.h \
			 src/include/longnam.h \
			 src/include/pctype.h \
			 src/include/region.h \
			 src/include/ricecomp.h \
			 src/include/sgp4.h \
			 src/include/slalib.h \
			 src/include/slamac.h

noinst_HEADERS = $(INCLUDE_FILES)

EXTRA_DIST = $(DATADIRS)
EXTRA_DIST += contrib

install-data-local: $(DATADIRS)
	mkdir -p $(DESTDIR)$(pkgdatadir) ; \
	find $(DATADIRS) -type f | xargs -I{} install -D -m 644 {} $(DESTDIR)$(pkgdatadir)/{}

download-data:
	( cd $(srcdir) ; \
	contrib/download_data; )