summaryrefslogtreecommitdiffstats
path: root/Makefile.am
blob: cc994d0a8ab818f21f6837dd33d6c4afe0e9690b (plain)
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
BUILT_SOURCES =
EXTRA_DIST =
bin_SCRIPTS =
man_MANS =
UPDATE_SOURCE_FILES =

ACLOCAL_AMFLAGS = -I m4 --install

include doc/Makefile-files
include src/Makefile-files

all-local: update-sources

update-sources: $(UPDATE_SOURCE_FILES)
	@echo "x$(top_srcdir)" "x$(top_builddir)"; \
	if test "x$(top_srcdir)" != "x$(top_builddir)"; then \
		for file in $(UPDATE_SOURCE_FILES); do \
			echo cp -f "$${file}" "$(top_srcdir)/$${file}"; \
			cp -f "$${file}" "$(top_srcdir)/$${file}"; \
		done; \
	else \
		echo "srcdir == builddir, no special updates needed."; \
	fi

if HAVE_NDIM_MAN2TXT
.1.txt:
	set -x; $(NDIM_MAN2TXT) "$<" > "$@.new"
	test -s "$@.new"
	mv -f "$@.new" "$@"
endif