-
Notifications
You must be signed in to change notification settings - Fork 11
/
Makefile.am
78 lines (66 loc) · 2.8 KB
/
Makefile.am
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
# redirect to subdirectories
SUBDIRS = src inc examples config
# install the restframes-config script
bin_SCRIPTS = restframes-config
# install the restframes-config script
libexec_SCRIPTS = setup_RestFrames.sh setup_RestFrames.csh
CLEANFILES = $(bin_SCRIPTS) $(libexec_SCRIPTS)
# do_subst = $(SED) \
# -e 's|[@]bindir@|$(bindir)|g' \
# -e 's|[@]libdir@|$(libdir)|g' \
# -e 's|[@]includedir@|$(includedir)|g' \
# -e 's|[@]prefix@|$(prefix)|g' \
# -e 's|[@]CONFIG_CXXFLAGS@|$(CONFIG_CXXFLAGS)|g' \
# -e 's|[@]CONFIG_LIBS@|$(CONFIG_LIBS)|g' \
# -e 's|[@]CONFIGURE_INVOCATION@|$(CONFIGURE_INVOCATION)|g' \
# -e 's|[@]PACKAGE_NAME@|$(PACKAGE_NAME)|g' \
# -e 's|[@]VERSION@|$(VERSION)|g' \
# -e 's|\n|\\n|g' \
# < "$<" > "$@"
do_subst = $(SED) \
-e 's|[@]prefix@|$(prefix)|g' \
-e 's|[@]bindir@|$(bindir)|g' \
-e 's|[@]libdir@|$(libdir)|g' \
-e 's|[@]includedir@|$(includedir)|g' \
-e 's|\n|\\n|g' \
< "$<" > "$@"
EXTRA_DIST = $(top_srcdir)/config/restframes-config.in\
$(top_srcdir)/config/setup_RestFrames.sh.in\
$(top_srcdir)/config/setup_RestFrames.csh.in
# restframes-config: $(top_srcdir)/config/restframes-config.in Makefile
# $(do_subst) < $(top_srcdir)/config/restframes-config.in > restframes-config
# chmod u+x restframes-config
setup_RestFrames.sh: $(top_srcdir)/config/setup_RestFrames.sh.in Makefile
$(do_subst) < $(top_srcdir)/config/setup_RestFrames.sh.in > setup_RestFrames.sh
chmod u+x setup_RestFrames.sh
setup_RestFrames.csh: $(top_srcdir)/config/setup_RestFrames.csh.in Makefile
$(do_subst) < $(top_srcdir)/config/setup_RestFrames.csh.in > setup_RestFrames.csh
chmod u+x setup_RestFrames.csh
distclean-local:
rm -f inc/RestFrames/RestFrames_config.h
install-data-hook:
@echo
@echo " ============================================================"
@echo " RestFrames INSTALLATION SUCCESSFUL! "
@echo " ============================================================"
@echo
@echo " INFORMATION FOR RestFrames USERS "
@echo " --- "
@echo
@echo " When using the RestFrames library, you can retrieve"
@echo " compilation and link flags using restframes-config"
@echo " (located in the 'bin' directory). "
@echo " Type 'restframes-config --help' for more information"
@echo
@echo " --- "
@echo
@echo " The script setup_RestFrames.sh(csh) is provided to"
@echo " automatically set environemtal variables like PATH,"
@echo " LD_LIBRARY_PATH, etc. in order to find this RestFrames"
@echo " installation. Sourcing this script (from any directory) will"
@echo " set the environmental variables to the values matching the"
@echo " RestFrames build that created the script (located in the"
@echo " libexec directory)."
@echo
@echo " ============================================================"
@echo