Generate output files within the Makefile, and distribute them.

As we only put the version number to the distributed scripts, there's no
reason to regenerate them each time.
This commit is contained in:
Michał Górny 2010-10-31 16:10:54 +01:00
parent 42485aa9a1
commit 6a202d66b0
2 changed files with 15 additions and 3 deletions

View File

@ -1,2 +1,14 @@
bin_SCRIPTS = sunrise-commit
man1_MANS = sunrise-commit.1
dist_bin_SCRIPTS = sunrise-commit
dist_man1_MANS = sunrise-commit.1
EXTRA_DIST = sunrise-commit.in sunrise-commit.1.in
$(dist_bin_SCRIPTS) $(dist_man1_MANS): configure.ac
rm -f $@ $@.tmp
sed -e "s|@PACKAGE_STRING[@]|@PACKAGE_STRING@|" ${srcdir}/$@.in > $@.tmp
! [ -x $@ ] || chmod +x $@.tmp
chmod a-w $@.tmp
mv $@.tmp $@
sunrise-commit: sunrise-commit.in
sunrise-commit.1: sunrise-commit.1.in

View File

@ -2,5 +2,5 @@ AC_PREREQ([2.59])
AC_INIT([sunrise-commit], [0.3])
AM_INIT_AUTOMAKE([1.6 foreign dist-bzip2 no-dependencies])
AC_CONFIG_FILES([Makefile sunrise-commit sunrise-commit.1])
AC_CONFIG_FILES([Makefile])
AC_OUTPUT