Add GNUmakerules, GNUmakevars
This commit is contained in:
parent
378a0a9f70
commit
3ef0c01ff0
|
@ -10,4 +10,12 @@ chartab:
|
|||
clean:
|
||||
rm -f charhist core foo bar baz
|
||||
|
||||
distclean: clean
|
||||
rm -f GNUmakerules GNUmakevars
|
||||
|
||||
GNUmakevars: GNUmakevars.sh
|
||||
sh ./$^ > $@
|
||||
GNUmakerules: GNUmakerules.pl
|
||||
perl ./$^ > $@
|
||||
|
||||
install: $(BINDIR)/charhist
|
||||
|
|
|
@ -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