AUTOMAKE_OPTIONS = gnu 1.4 SUFFIXES = .pl .sh shscripts = cvsco cvsdiscard cvspurge cvstrim shscripts_src = cvsco.sh cvsdiscard.sh cvspurge.sh cvstrim.sh plscripts = cvsu cvsdo cvschroot plscripts_src = cvsu.pl cvsdo.pl cvschroot.pl bin_SCRIPTS = $(shscripts) $(plscripts) dist_man_MANS = cvsutils.1 CLEANFILES = $(bin_SCRIPTS) EXTRA_DIST = $(shscripts_src) $(plscripts_src) noinst_DATA = cvsutils.spec # The idea of the scripts below in taken from Autoconf editsh = sed \ -e '1s,/bin/sh,$(SHELL),g' \ -e 's,@''VERSION''@,$(VERSION),g' editpl = sed \ -e '1s,/usr/bin/perl,$(PERL),g' \ -e 's,-VERSION-,$(VERSION),g' .sh: rm -f $@ $@.tmp $(editsh) $< >$@.tmp chmod +x $@.tmp mv $@.tmp $@ .pl: rm -f $@ $@.tmp $(editpl) $< >$@.tmp chmod +x $@.tmp mv $@.tmp $@ dist-hook: cp cvsutils.spec $(distdir)