-
Notifications
You must be signed in to change notification settings - Fork 42
/
Makefile.am
110 lines (93 loc) · 4.02 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
BUILT_SOURCES =
sysconf_DATA =
MOSTLYCLEANFILES =
EXTRA_DIST =
include $(top_srcdir)/gnuscripts/lalsuite_top.am
EXTRA_DIST += CONTRIBUTING.md
ACLOCAL_AMFLAGS = -I gnuscripts
SUBDIRS = @subdirs@ doxygen wheel
.PHONY: wheel
wheel:
$(MAKE) -C wheel wheel
# Override automake's default rule for rebuilding aclocal.m4, to ensure that
# ./configure is successfully recreated after certain build system changes which
# require other autotools (e.g. autoheader) to be re-run. See Redmine issue #728.
$(lalsuite_package_configure_deps):
$(ACLOCAL_M4): $(am__aclocal_m4_deps) $(lalsuite_package_configure_deps)
$(am__cd) $(srcdir) && $(SHELL) ./00boot
# Override automake's default rule for rebuilding ./config.status, to ensure that
# all changes to the top-level configuration (especially to environment variables it
# exports) are propagated to the library-level configurations. See Redmine issue #728.
$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
$(SHELL) $(top_srcdir)/configure $(ac_configure_args)
BUILT_SOURCES += AUTHORS
MOSTLYCLEANFILES += AUTHORS
AUTHORS: $(lalsuite_package_AUTHORS_deps)
$(AM_V_GEN)cat $(lalsuite_package_AUTHORS_deps) | LC_ALL=C sort | uniq > [email protected] && mv -f [email protected] $@
.PHONY: cscopelist-subdirs
cscopelist-am: cscopelist-subdirs
cscopelist-subdirs:
for subdir in @subdirs@; do \
sed "s|^|$${subdir}/|" $${subdir}/cscope.files >> $(top_builddir)/cscope.files; \
done
user_environment = \
`for dir in @subdirs@; do printf 'source %s; ' "$(sysconfdir)/$${dir}-user-env"; done` \
$(END_OF_LIST)
BUILT_SOURCES += $(PACKAGE)rc
sysconf_DATA += $(PACKAGE)rc
MOSTLYCLEANFILES += $(PACKAGE)rc
$(PACKAGE)rc: Makefile
$(AM_V_GEN)echo "# source this file to access $(PACKAGE_NAME) from Bourne or C shells" >$@; \
echo "expr \"X\$$0\" : '^X.*csh' >/dev/null && source $(sysconfdir)/$(PACKAGE)-user-env.csh || . $(sysconfdir)/$(PACKAGE)-user-env.sh" >>$@
if DOXYGEN
html-local:
@echo "$(subdir)/Makefile: Doxygen documentation was built successfully!"; \
echo "$(subdir)/Makefile: $(PACKAGE_NAME) main page is at file://$(abs_builddir)/doxygen/out/index.html"
install-html-local:
@echo "$(subdir)/Makefile: Doxygen documentation was installed successfully!"; \
echo "$(subdir)/Makefile: installed $(PACKAGE_NAME) main page is at file://$(DESTDIR)$(htmldir)/index.html"
uninstall-local:
-rm -rf "$(DESTDIR)$(htmldir)/"
endif
.PHONY: update-authors
update-authors:
$(AM_V_at)cd $(top_srcdir); \
echo "Updating .mailmap entries"; \
./common/maintainer-scripts/update_mailmap || exit 1; \
for subdir in @subdirs@; do \
echo "Updating authors of $${subdir}"; \
./common/maintainer-scripts/update_authors $${subdir} || exit 1; \
done; \
if git diff --exit-code -- .mailmap lal*/AUTHORS; then \
echo "------------------------------------------------------------------------"; \
echo "The LALSuite author lists are up to date."; \
echo "------------------------------------------------------------------------"; \
exit 0; \
fi; \
filestocommit=`git diff --name-only -- .mailmap lal*/AUTHORS | xargs echo`; \
echo "------------------------------------------------------------------------"; \
echo "The LALSuite author files are incomplete; see the above diff."; \
echo ""; \
echo "To fix this, run these commands from the top-level of the Git repo:"; \
echo ""; \
echo "\$$ git commit -m 'Update authors' $$filestocommit"; \
echo "\$$ make update-authors"; \
echo "------------------------------------------------------------------------"; \
exit 1
.PHONY: pretty
pretty:
$(AM_V_at)for subdir in @subdirs@; do \
( cd $${subdir} && make pretty ) || exit 1; \
done; \
cd $(top_srcdir); \
if git diff --quiet -- $(PRETTY_PATTERN); then \
exit 0; \
fi; \
echo "------------------------------------------------------------------------"; \
echo "The following files have now been pretty-formatted:"; \
echo ""; \
git --no-pager diff --name-only -- $(PRETTY_PATTERN); \
echo ""; \
echo "Please commit these changes."; \
echo "------------------------------------------------------------------------"; \
exit 1