GNUmakerules.sh -> GNUmakerules.pl to avoid bashism

This commit is contained in:
hjp 2012-10-24 14:34:13 +00:00
parent b38c18c0ff
commit e80dfbc808
2 changed files with 14 additions and 2 deletions

View File

@ -1,12 +1,16 @@
include GNUmakevars
all: setperm
setperm:
clean:
rm setperm
install: $(BINDIR)/setperm
GNUmakevars: GNUmakevars.sh
sh ./$^ > $@
GNUmakerules: GNUmakerules.sh
sh ./$^ > $@
GNUmakerules: GNUmakerules.pl
perl ./$^ > $@
include GNUmakerules

8
setperm/GNUmakerules.pl Normal file
View File

@ -0,0 +1,8 @@
#!/usr/bin/perl
use warnings;
use strict;
print "\$(BINDIR)/%: %\n";
print "\tcp \$^ \$@\n";
print "\$(MAN1DIR)/%: %\n";
print "\tcp \$^ \$@\n";