Makefile.am
5.42 KB
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
## Process this file with automake to produce Makefile.in
# Scripts to be distributed in $(pyexecdir)/cscripts
pythonscripts = __init__.py \
cscaldb.py \
csinfo.py \
cslightcrv.py \
csmodelinfo.py \
csmodelmerge.py \
csobs2caldb.py \
csobsdef.py \
csobsinfo.py \
cspull.py \
csresmap.py \
csroot2caldb.py \
cssens.py \
csspec.py \
cstsdist.py \
cstsmapmerge.py \
cstsmapsplit.py \
csworkflow.py \
csfindobs.py \
csiactcopy.py \
csiactdata.py \
csiactobs.py \
obsutils.py
# Parfiles to be distributed in $(prefix)/syspfiles
parfiles = cscaldb.par \
cslightcrv.par \
csmodelinfo.par \
csmodelmerge.par \
csobs2caldb.par \
csobsdef.par \
csobsinfo.par \
cspull.par \
csresmap.par \
csroot2caldb.par \
cssens.par \
csspec.par \
cstsdist.par \
cstsmapmerge.par \
cstsmapsplit.par \
csworkflow.par \
csfindobs.par \
csiactcopy.par \
csiactdata.par \
csiactobs.par
# Scripts for which symbolic links will be created in bindir
linkscripts = cscaldb \
csinfo \
cslightcrv \
csmodelinfo \
csmodelmerge \
csobs2caldb \
csobsdef \
csobsinfo \
cspull \
csresmap \
csroot2caldb \
cssens \
csspec \
cstsdist \
cstsmapmerge \
cstsmapsplit \
csworkflow \
csfindobs \
csiactcopy \
csiactdata \
csiactobs
# Test scripts to be distributed in $(pyexecdir)/cscripts/tests
testscripts = tests/__init__.py \
../test/testing.py \
../test/test_python_cscripts.py \
../test/test_cscaldb.py \
../test/test_csmodelinfo.py \
../test/test_csmodelmerge.py \
../test/test_csobs2caldb.py \
../test/test_csobsdef.py \
../test/test_csobsinfo.py \
../test/test_cslightcrv.py \
../test/test_cspull.py \
../test/test_csresmap.py \
../test/test_csroot2caldb.py \
../test/test_cssens.py \
../test/test_csspec.py \
../test/test_cstsdist.py \
../test/test_cstsmapmerge.py \
../test/test_cstsmapsplit.py \
../test/test_csworkflow.py \
../test/test_csfindobs.py \
../test/test_csiactcopy.py \
../test/test_csiactdata.py \
../test/test_csiactobs.py
# Test data to be distributed in $(pyexecdir)/cscripts/tests/data
testdata = ../test/data/crab.xml \
../test/data/obs_unbinned.xml \
../test/data/obs_stacked.xml \
../test/data/crab_events.fits.gz \
../test/data/crab_cntmap.fits.gz \
../test/data/crab_cntmap_small.fits.gz \
../test/data/crab_expcube.fits.gz \
../test/data/crab_psfcube.fits.gz \
../test/data/crab_edispcube.fits.gz \
../test/data/crab_bkgcube.fits.gz \
../test/data/tsmap_0.fits \
../test/data/tsmap_1.fits \
../test/data/exclusion.reg \
../test/data/pntdef.dat \
../test/data/models.txt \
../test/data/tsmaps.txt \
../test/data/model_cube_background.xml \
../test/data/model_cube_background2.xml \
../test/data/crab_bkgcube.xml \
../test/data/irf.root \
../test/data/workflow.xml
# Test data to be distributed in $(pyexecdir)/cscripts/tests/iactdata
testiactdata = ../test/iactdata/hdu-index.fits.gz \
../test/iactdata/master.json \
../test/iactdata/obs-index.fits.gz
# Test IRFs to be distributed in $(pyexecdir)/cscripts/tests/irf
testirf = ../test/irf/irf_file.fits.gz \
../test/irf/cta_dummy_irf.dat
# Distribute scripts and parfiles
EXTRA_DIST = $(binscripts) $(pythonscripts)
binscriptsdir = $(bindir)
binscripts_DATA = $(binscripts)
pythonscriptsdir = $(pyexecdir)/cscripts
pythonscripts_DATA = $(pythonscripts)
pfilesdir = $(prefix)/syspfiles
pfiles_DATA = $(parfiles)
testscriptsdir = $(pyexecdir)/cscripts/tests
testscripts_DATA = $(testscripts)
testdatadir = $(pyexecdir)/cscripts/tests/data
testdata_DATA = $(testdata)
testiactdatadir = $(pyexecdir)/cscripts/tests/iactdata
testiactdata_DATA = $(testiactdata)
testirfdir = $(pyexecdir)/cscripts/tests/irf
testirf_DATA = $(testirf)
# Add hook rule to create symbolic links for cscripts
install-data-hook:
@binlist='$(binscripts)';\
for p in $$binlist; do \
chmod +x "$(DESTDIR)$(bindir)/$$p"; \
done
@linklist='$(linkscripts)';\
for p in $$linklist; do \
rm -rf "$(DESTDIR)$(bindir)/$$p"; \
ln -s "$(DESTDIR)$(pyexecdir)/cscripts/$$p.py" "$(DESTDIR)$(bindir)/$$p"; \
chmod +x "$(DESTDIR)$(pyexecdir)/cscripts/$$p.py"; \
done