Makefile.am 2.41 KB
Newer Older
1 2 3 4 5 6
BUILT_SOURCES =
sysconf_DATA =
MOSTLYCLEANFILES =
EXTRA_DIST =
include $(top_srcdir)/gnuscripts/lalsuite_top.am

7
ACLOCAL_AMFLAGS = -I gnuscripts
Adam Mercer's avatar
Adam Mercer committed
8

9 10 11 12
SUBDIRS = @subdirs@ wheel

wheel:
	$(MAKE) -C wheel wheel
13

14 15 16 17
# 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.
$(ACLOCAL_M4): $(am__aclocal_m4_deps)
18 19
	$(am__cd) $(srcdir) && $(SHELL) ./00boot

20 21 22 23 24
# 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)
25

26
.PHONY: cscopelist-subdirs wheel
27 28
cscopelist-am: cscopelist-subdirs
cscopelist-subdirs:
29
	for subdir in @subdirs@; do \
30 31 32
		sed "s|^|$${subdir}/|" $${subdir}/cscope.files >> $(top_builddir)/cscope.files; \
	done

33
user_environment = \
34
	`for dir in @subdirs@; do printf 'source %s; ' "$(sysconfdir)/$${dir}-user-env"; done` \
35 36 37 38 39
	$(END_OF_LIST)

BUILT_SOURCES += $(PACKAGE)rc
sysconf_DATA += $(PACKAGE)rc
MOSTLYCLEANFILES += $(PACKAGE)rc
40
$(PACKAGE)rc: Makefile
41 42
	$(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" >>$@
43

44
if DOXYGEN
45 46

html-local: Makefile $(CONFIG_CLEAN_FILES)
47 48 49
	$(AM_V_at)set -e; \
	echo "$(subdir)/Makefile: Doxygen documentation was built successfully!"; \
	echo "$(subdir)/Makefile: $(PACKAGE_NAME) main page is at file://$(abs_builddir)/index.html"
50 51

install-html-local: html-local
52 53 54
	$(AM_V_at)set -e; \
	echo " $(MKDIR_P) '$(DESTDIR)$(htmldir)'"; \
	$(MKDIR_P) "$(DESTDIR)$(htmldir)"; \
55
	echo " $(INSTALL_DATA) index.html '$(DESTDIR)$(htmldir)/index.html'"; \
56 57
	$(SED) -e 's|\(lal[a-z]*\)/doxygen/out|../\1|g' index.html > $@.tmp; \
	$(INSTALL_DATA) $@.tmp "$(DESTDIR)$(htmldir)/index.html"; \
58
	rm -f $@.tmp; \
59 60
	echo "$(subdir)/Makefile: Doxygen documentation was installed successfully!"; \
	echo "$(subdir)/Makefile: installed $(PACKAGE_NAME) main page is at file://$(DESTDIR)$(htmldir)/index.html"
61 62 63 64

uninstall-local:
	-rm -rf "$(DESTDIR)$(htmldir)/"

65
endif