Makefile.am
1.14 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
## Process this file with automake to produce Makefile.in
# Darwin support
MACOSX_DEPLOYMENT_TARGET=@CONFIGURE_MACOSX_DEPLOYMENT_TARGET@
export MACOSX_DEPLOYMENT_TARGET
# Set sub directories
SUBDIRS = ctselect \
ctbin \
ctlike \
ctobssim \
ctskymap
# Scripts to be distributed
scripts = ctools-setup \
ctools-init.sh \
ctools-init.csh
# Build libtool library for ctools. This is needed to provide
# a shared library that can be loaded for python bindings. We do
# not have to build this library if no python bindings are used.
lib_LTLIBRARIES = libctools.la
libctools_la_SOURCES =
libctools_la_LIBADD = ctbin/libctbin.la \
ctselect/libctselect.la \
ctlike/libctlike.la \
ctobssim/libctobssim.la \
ctskymap/libctskymap.la
# Distribute scripts
EXTRA_DIST = $(scripts)
scriptsdir = $(bindir)
scripts_DATA = $(scripts)
# Add hook rule to make scripts executable
install-data-hook:
@list='$(scripts_DATA)';\
for p in $$list; do \
if test -f "$$p"; then chmod +x "$(DESTDIR)$(scriptsdir)/$$p"; fi; \
done