aboutsummaryrefslogtreecommitdiff
path: root/scripts/Makefile.am
blob: 98f1c6c25a80c5674d98e5b500a348c82d10d695 (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
41
42
43
44
45
SUBDIRS = .
bin_SCRIPTS = \
			calfuse.csh \
			calfuse.sh \
			calfuse.wavecal \
			cf_make_900_obs.csh \
			cf_make_all.csh \
			cf_make_all_obs.csh \
			cfsetup.csh \
			cfsetup.sh \
			idl_obsplot.pl \
			idlplot_rate.pl \
			idlplot_spex.pl \
			listhead \
			listtra

EXTRA_DIST = \
			cfsetup.csh.in \
			cfsetup.sh.in \
			calfuse.csh \
			calfuse.sh \
			calfuse.wavecal \
			cf_make_900_obs.csh \
			cf_make_all.csh \
			cf_make_all_obs.csh \
			idl_obsplot.pl \
			idlplot_rate.pl \
			idlplot_spex.pl \
			listhead \
			listtra

CLEANFILES = cfsetup.csh \
			 cfsetup.sh

do_subst = sed -e 's,[@]DATADIR[@],$(pkgdatadir)-$(VERSION),g' \
		   -e 's,[@]PREFIX[@],$(prefix),g' \
		   -e 's,[@]VERSION[@],$(VERSION),g' 

cfsetup.csh: cfsetup.csh.in Makefile
	$(do_subst) < cfsetup.csh.in > cfsetup.csh
	chmod +x cfsetup.csh

cfsetup.sh: cfsetup.sh.in Makefile
	$(do_subst) < cfsetup.sh.in > cfsetup.sh
	chmod +x cfsetup.sh