Use Perl version of chartab and autoconfigure GNUmake*
This commit is contained in:
parent
5de6672e2a
commit
4563b0a53a
|
@ -1,11 +1,19 @@
|
||||||
include GNUmakevars
|
-include GNUmakevars
|
||||||
|
|
||||||
all: chartab ctype-test
|
all: chartab ctype-test
|
||||||
|
|
||||||
chartab:
|
chartab: chartab.pl
|
||||||
|
cp $^ $@
|
||||||
|
|
||||||
ctype-test:
|
ctype-test:
|
||||||
clean:
|
clean:
|
||||||
rm chartab
|
rm chartab
|
||||||
install: $(BINDIR)/chartab $(BINDIR)/ctype-test
|
install: $(BINDIR)/chartab $(BINDIR)/ctype-test
|
||||||
|
|
||||||
include GNUmakerules
|
GNUmakevars: GNUmakevars.sh
|
||||||
|
sh ./$^ > $@
|
||||||
|
GNUmakerules: GNUmakerules.pl
|
||||||
|
perl ./$^ > $@
|
||||||
|
|
||||||
|
|
||||||
|
-include GNUmakerules
|
||||||
|
|
|
@ -0,0 +1,8 @@
|
||||||
|
#!/usr/bin/perl
|
||||||
|
use warnings;
|
||||||
|
use strict;
|
||||||
|
|
||||||
|
print "\$(BINDIR)/%: %\n";
|
||||||
|
print "\tinstall -m 755 \$^ \$@\n";
|
||||||
|
print "\$(MAN1DIR)/%: %\n";
|
||||||
|
print "\tinstall -m 644 \$^ \$@\n";
|
|
@ -0,0 +1,5 @@
|
||||||
|
#!/bin/sh
|
||||||
|
prefix=${prefix:-/usr/local}
|
||||||
|
echo "BINDIR=$prefix/bin"
|
||||||
|
echo
|
||||||
|
echo "all:"
|
Loading…
Reference in New Issue