X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~mdw/git/misc/blobdiff_plain/0da5c4d5212167b482558888097cc516e20008bf..c818aceddb8a734c7b3fe0e35f442bbd70e0b0ab:/Makefile.am diff --git a/Makefile.am b/Makefile.am index 66f70a1..64eeabf 100644 --- a/Makefile.am +++ b/Makefile.am @@ -155,7 +155,8 @@ SUBSTITUTIONS = \ PYTHON=$(PYTHON) \ PERL=$(PERL) \ TCLSH=$(TCLSH) \ - BASH=$(BASH) + BASH=$(BASH) \ + logdir=$(logdir) EXTRA_DIST += config/confsubst @@ -172,6 +173,19 @@ dist_man_MANS += create.1 dist_bin_SCRIPTS += z dist_man_MANS += z.1 +bin_SCRIPTS += hush +man_MANS += hush.1 +CLEANFILES += hush hush.1 +EXTRA_DIST += hush.in hush.1.in + +hush: hush.in Makefile + $(SUBST) $(srcdir)/hush.in >$@.new $(SUBSTITUTIONS) && \ + chmod +x $@.new && mv $@.new $@ + +hush.1: hush.1.in Makefile + $(SUBST) $(srcdir)/hush.1.in >$@.new $(SUBSTITUTIONS) && \ + mv $@.new $@ + ## bash scripts. if HAVE_BASH