-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile.am
165 lines (139 loc) · 4.28 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
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
160
161
162
163
164
# "Makefile.am"
#
# Process this file with "automake" to generate "Makefile.in".
#
# $Id: Makefile.am,v 1.48 2009/09/28 06:56:50 fang Exp $
include $(top_srcdir)/Make.stddef
include $(top_srcdir)/installdirs.mk
AUTOMAKE_OPTIONS += subdir-objects dist-bzip2
# may work with older versions of automake, but not guaranteed
SUBDIRS = scripts libltdl src lib test . dox
# temporary, for debugging make distcheck in dox,
# so we don't have to wait for the entire src tree to build first
# SUBDIRS = scripts dox src lib test .
DOXYGEN_CONFIG = hackt.doxygen.config
# When to update the libtool script:
libtool: $(LIBTOOL_DEPS)
$(SHELL) ./config.status --recheck
# don't need $(srcdir) because cd $(top_srcdir) is prior to exec. aclocal
ACLOCAL_AMFLAGS = -I config @ACLOCAL_FLAGS@
# in future, may need -I libltdl/m4
# see configure.in for adding libtool flags
CLEANFILES += $(DOXYGEN_CONFIG) hackt.doxygen.log DevelopmentPlan.ps
DISTCLEANFILES += config.in.h~ distcheck.log \
config.status.lineno \
Makefile.orig
# Makefile.orig comes from patching Makefile
DISTCLEANDIRS += autom4te.cache
AUTO_IGNORE += aclocal.m4 libtool \
config.h.in \
configure configure.scan \
autoscan.log autom4te.cache \
$(am__CONFIG_DISTCLEAN_FILES) \
$(CONFIG_CLEAN_FILES) \
$(CONFIG_HEADER) \
distcheck.log distcheck.log.tmp
doc_DATA = \
AUTHORS \
BOUNTY \
CONTRIBUTORS \
COPYING \
NEWS \
README \
TODO
bin_SCRIPTS = \
hackt-config \
hackt-libtool
noinst_SCRIPTS = install_transform.sh
# provide the pre-configured script for assisting in linking plug-in modules
hackt-libtool: libtool
$(LN_S) $< $@
# Many of these are already in DIST_COMMON
EXTRA_DIST += \
Make.stddef \
Make.global \
installdirs.mk \
local.gitignore \
bootstrap \
BOUNTY \
BRANCHES \
BUILDS \
CLEANUP \
CONTRIBUTORS \
README.git \
README.maintainer \
$(DOXYGEN_CONFIG).in \
hackt-config.in \
config/macro-value.h.in \
config/config_subst.awk \
config/ylwrap \
config/am__remove_distdir.diff \
DevelopmentPlan.dot \
pkg/README \
pkg/hackt.info \
pkg/hackt-git-deps.info \
pkg/hackt-dist-deps.info
# don't bother:
# libltdl/README.git
if HAVE_DOT
DevelopmentPlan.ps: DevelopmentPlan.dot
$(DOT) -Tps $? -o$@
else
DevelopmentPlan.ps: DevelopmentPlan.dot
@$(ECHO) No dot found in path.
endif
if HAVE_DOXYGEN
docs: $(DOXYGEN_CONFIG)
$(DOXYGEN) $(DOXYGEN_CONFIG)
if HAVE_LATEX
(cd dox/latex; $(MAKE) < /dev/null )
endif
else
docs:
@$(ECHO) No doxygen found in path.
endif
# distcheck is a top-level only target
# .PRECIOUS: distcheck.log
# doesn't work, tries to override previous definition without accumulating
distcheck.log: force
@if test -f $@ ; then $(MV) $@ $@~ ; fi
@$(ECHO) "Logging \"make distcheck\" to $@ ..."
@$(ECHO) Tests started `$(DATE)` > $@.tmp
-$(MAKE) DISTCHECK_CONFIGURE_FLAGS="$(DISTCHECK_CONFIGURE_FLAGS)" distcheck >> $@.tmp 2>&1
-$(MV) $@.tmp $@
@$(ECHO) Tests finished `$(DATE)` >> $@
$(TAIL) -n 6 $@
# don't include git directories in distribution
dist-hook:
$(RM) -r `$(FIND) $(distdir) -name .git -type d`
if INSTALL_TESTS
installcheck-local:
@list='$(bin_SCRIPTS)' ; \
for p1 in $$list ; do \
f=`echo "$$p1" | $(SED) 's|^.*/||;$(transform)'`; \
run=$(bindir)/$$f ; \
if test ! -f $$run ; then \
$(ECHO) "*** DID YOU FORGET TO make install FIRST? ***" ; \
fi ; \
$(ECHO) "======== running: $$run ==============" ; \
$$run --version && \
$$run --help ; \
done ; \
$(ECHO) "======== end of installcheck-local =============="
endif
# .NOTPARALLEL: install
.NOTPARALLEL: commit
help-local:
@$(ECHO) "Local make targets:" ; \
$(ECHO) " distcheck: checks self-containedness of source tree (important)" ; \
$(ECHO) " distcheck.log: logs distcheck" ; \
$(ECHO) " install: installs built targets (recursive)" ; \
$(ECHO) " install-check: checks install (recursive)" ; \
$(ECHO) " uninstall: uninstalls this package (recursive)" ; \
$(ECHO) " distclean: removes configure targets and cleans (recursive)" ; \
$(ECHO) " maintainer-clean: removes bootstrap targets and distcleans" ; \
$(ECHO) " libtool: regenerates the configured libtool script" ; \
$(ECHO) " DevelopmentPlan.ps: visualize development plan using dot" ; \
$(ECHO) " commit: distcheck followed by git commit" ; \
$(ECHO) " docs: builds Doxygen source documentation (SLOW)"
include $(top_srcdir)/Make.global