aboutsummaryrefslogtreecommitdiff
path: root/Makefile.am
blob: a5a95cdd751c6a1ffd56b3a4f8c720669cfed66b (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
40
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)

install-data-local: $(DATADIRS)
	install -d -m 0755 $(DESTDIR)$(pkgdatadir)
	for d in "$(DATADIRS)"; do \
		install -d -m 0755 $(DESTDIR)$(pkgdatadir)$d ; \
		for f in $d; do \
			install -m 0644 $$f $(DESTDIR)$(pkgdatadir)$f ; \
		done ; \
	done