Automatically create GNUmakerules and GNUmakevars
This commit is contained in:
parent
247743c9dd
commit
ce339c38c7
|
@ -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
|
||||
|
|
|
@ -0,0 +1,8 @@
|
|||
#!/usr/bin/perl
|
||||
use warnings;
|
||||
use strict;
|
||||
|
||||
print "\$(BINDIR)/%: %\n";
|
||||
print "\tcp \$^ \$@\n";
|
||||
print "\$(MAN1DIR)/%: %\n";
|
||||
print "\tcp \$^ \$@\n";
|
|
@ -0,0 +1,5 @@
|
|||
#!/bin/sh
|
||||
prefix=${prefix:-/usr/local}
|
||||
echo "BINDIR=$prefix/bin"
|
||||
echo
|
||||
echo "all:"
|
Loading…
Reference in New Issue