diff --git a/slowcat/GNUmakefile b/slowcat/GNUmakefile index 0232bd4..f6ae7ff 100644 --- a/slowcat/GNUmakefile +++ b/slowcat/GNUmakefile @@ -8,6 +8,11 @@ clean: rm -f *.bak *.o core slowcat distclean: clean - rm -f *.d + rm -f *.d GNUmakerules GNUmakevars + +GNUmakevars: GNUmakevars.sh + sh ./$^ > $@ +GNUmakerules: GNUmakerules.pl + perl ./$^ > $@ -include *.d diff --git a/slowcat/GNUmakerules.pl b/slowcat/GNUmakerules.pl new file mode 100644 index 0000000..8f30daa --- /dev/null +++ b/slowcat/GNUmakerules.pl @@ -0,0 +1,8 @@ +#!/usr/bin/perl +use warnings; +use strict; + +print "\$(BINDIR)/%: %\n"; +print "\tcp \$^ \$@\n"; +print "\$(MAN1DIR)/%: %\n"; +print "\tcp \$^ \$@\n"; diff --git a/slowcat/GNUmakevars.sh b/slowcat/GNUmakevars.sh new file mode 100755 index 0000000..a7de4ae --- /dev/null +++ b/slowcat/GNUmakevars.sh @@ -0,0 +1,5 @@ +#!/bin/sh +prefix=${prefix:-/usr/local} +echo "BINDIR=$prefix/bin" +echo +echo "all:"