From b5dbc3b7b4f71a38c927a83cfe598e05190929bd Mon Sep 17 00:00:00 2001 From: Adam Spiers Date: Mon, 9 Nov 2015 12:37:09 +0000 Subject: [PATCH] More fixes to "make distcheck" As with dc6a141d, the dependency of distributed files on non-distributed files was causing this error: ERROR: files left in build directory after distclean: The automake FAQ explains why this happens: https://www.gnu.org/software/automake/manual/html_node/Errors-with-distclean.html so change the dependency to Makefile.am which is distributed. --- Makefile.am | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile.am b/Makefile.am index 3303a6a..7a1a808 100644 --- a/Makefile.am +++ b/Makefile.am @@ -121,7 +121,7 @@ check_pmdir = \ fi; \ echo -bin/stow: bin/stow.in Makefile +bin/stow: bin/stow.in Makefile.am [ -d bin ] || mkdir bin # required in vpath mode @$(check_pmdir) @$(calc_use_lib_pmdir); \ @@ -129,13 +129,13 @@ bin/stow: bin/stow.in Makefile @echo "Generated $@ from $<" chmod +x $@ -bin/chkstow: bin/chkstow.in Makefile +bin/chkstow: bin/chkstow.in Makefile.am @[ -d bin ] || mkdir bin # required in vpath mode @$(edit) < $< > $@ @echo "Generated $@ from $<" chmod +x $@ -lib/Stow.pm: lib/Stow.pm.in $(DEFAULT_IGNORE_LIST) Makefile +lib/Stow.pm: lib/Stow.pm.in $(DEFAULT_IGNORE_LIST) Makefile.am @[ -d lib ] || mkdir lib # required in vpath mode @( $(edit) < $<; cat $(DEFAULT_IGNORE_LIST) ) > $@ @echo "Generated $@ from $< and $(DEFAULT_IGNORE_LIST)"