forked from bat/bat
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.am
96 lines (82 loc) · 2.82 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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
AUTOMAKE_OPTIONS = foreign
ACLOCAL = aclocal
AUTOMAKE = automake
clean-local:
rm -rf autom4te.cache
# files build by configure on the user side
DISTCLEANFILES = \
bat.pc \
tools/bat-project \
doc/introduction/versions.tex
SUBDIRS= \
src \
models/base \
models/mtf \
models/mvc \
test
EXTRA_DIST= \
INSTALL.md \
README.md \
readme.devel \
models/base/LDef.h \
models/base/LDef_roostats.h \
doc/COPYING doc/CREDITS doc/LICENSE doc/ChangeLog doc/releasenotes.md \
doc/introduction/bat.pdf doc/introduction/introduction.tex doc/introduction/Makefile \
doc/quickstart/bat.pdf doc/quickstart/Makefile doc/quickstart/quickstart.tex \
doc/customdoxygen.css doc/Doxyfile \
examples \
tools/bat-project.in
dist_bin_SCRIPTS = \
bat-config \
tools/bat-project
# Must not fix the installation dir at configure time,
# so we have to create the file. For the reasoning, see
# https://www.gnu.org/software/autoconf/manual/autoconf-2.63/html_node/Installation-Directory-Variables.html#Installation-Directory-Variables
edit = sed \
-e 's|@datadir[@]|$(pkgdatadir)|g' \
-e 's|@prefix[@]|$(prefix)|g'
tools/bat-project: Makefile $(srcdir)/tools/bat-project.in
rm -f $@ [email protected]
$(edit) '$(srcdir)/[email protected]' >[email protected]
chmod +x [email protected]
chmod a-w [email protected]
mv [email protected] $@
dist_pkgdata_DATA = \
tools/Main1Template.cxx \
tools/Main2Template.cxx \
tools/ModelTemplate.h tools/ModelTemplate.cxx \
tools/MakefileTemplate
dist-hook: prep-docs
rm -f $(distdir)/models/libBATmodels.rootmap
rm -rf `find $(distdir)/examples -name Makefile`
prep-docs: BAT-intro.pdf BAT-quickstart.pdf
BAT-intro.pdf:
mkdir -p $(top_builddir)/doc/intro-tmp
cp -r $(top_srcdir)/doc/introduction/* $(top_builddir)/doc/introduction/versions.tex $(top_builddir)/doc/intro-tmp
cd $(top_builddir)/doc/intro-tmp && $(MAKE) clean && $(MAKE)
mv $(top_builddir)/doc/intro-tmp/introduction.pdf $(distdir)/doc/BAT-intro.pdf
rm -rf $(top_builddir)/doc/intro-tmp
BAT-quickstart.pdf:
mkdir -p $(top_builddir)/doc/quick-tmp
cp -r $(top_srcdir)/doc/quickstart/* $(top_builddir)/doc/quick-tmp
cd $(top_builddir)/doc/quick-tmp && $(MAKE) clean && $(MAKE)
mv $(top_builddir)/doc/quick-tmp/quickstart.pdf $(distdir)/doc/BAT-quickstart.pdf
rm -rf $(top_builddir)/doc/quick-tmp
if COND_PKGCONFIG
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = bat.pc
endif
install-data-hook:
@echo
@echo " ============================================================"
@echo " BAT INSTALLATION SUCCESSFUL! "
@echo
@echo "In the bash, you can set up your environment with"
@echo
@echo 'export PATH="$(bindir):$$PATH"'
@echo 'export LD_LIBRARY_PATH="$(libdir):$$LD_LIBRARY_PATH"'
@echo 'export CPATH="$(includedir):$$CPATH"'
@echo 'export PKG_CONFIG_PATH="$(pkgconfigdir):$$PKG_CONFIG_PATH"'
@echo
@echo " ============================================================"
@echo