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 include GNUmakevars
all: setperm
setperm: setperm:
clean: clean:
rm setperm rm setperm
install: $(BINDIR)/setperm install: $(BINDIR)/setperm
GNUmakevars: GNUmakevars.sh GNUmakevars: GNUmakevars.sh
sh ./$^ > $@ sh ./$^ > $@
GNUmakerules: GNUmakerules.sh GNUmakerules: GNUmakerules.pl
sh ./$^ > $@ perl ./$^ > $@
include GNUmakerules 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";