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.
This commit is contained in:
Adam Spiers 2015-11-09 12:37:09 +00:00
parent c482b0291d
commit b5dbc3b7b4

View file

@ -121,7 +121,7 @@ check_pmdir = \
fi; \ fi; \
echo echo
bin/stow: bin/stow.in Makefile bin/stow: bin/stow.in Makefile.am
[ -d bin ] || mkdir bin # required in vpath mode [ -d bin ] || mkdir bin # required in vpath mode
@$(check_pmdir) @$(check_pmdir)
@$(calc_use_lib_pmdir); \ @$(calc_use_lib_pmdir); \
@ -129,13 +129,13 @@ bin/stow: bin/stow.in Makefile
@echo "Generated $@ from $<" @echo "Generated $@ from $<"
chmod +x $@ chmod +x $@
bin/chkstow: bin/chkstow.in Makefile bin/chkstow: bin/chkstow.in Makefile.am
@[ -d bin ] || mkdir bin # required in vpath mode @[ -d bin ] || mkdir bin # required in vpath mode
@$(edit) < $< > $@ @$(edit) < $< > $@
@echo "Generated $@ from $<" @echo "Generated $@ from $<"
chmod +x $@ 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 @[ -d lib ] || mkdir lib # required in vpath mode
@( $(edit) < $<; cat $(DEFAULT_IGNORE_LIST) ) > $@ @( $(edit) < $<; cat $(DEFAULT_IGNORE_LIST) ) > $@
@echo "Generated $@ from $< and $(DEFAULT_IGNORE_LIST)" @echo "Generated $@ from $< and $(DEFAULT_IGNORE_LIST)"