Use perl to construct GNUmakerules

This commit is contained in:
Peter J. Holzer 2018-09-27 13:08:43 +02:00
parent f84e48fd1b
commit 8013784ff0
3 changed files with 10 additions and 7 deletions

View File

@ -12,7 +12,7 @@ install: $(BINDIR)/time_t
GNUmakevars: GNUmakevars.sh
sh ./$^ > $@
GNUmakerules: GNUmakerules.sh
sh ./$^ > $@
GNUmakerules: GNUmakerules.pl
perl ./$^ > $@
include GNUmakerules

8
time_t/GNUmakerules.pl Executable 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";

View File

@ -1,5 +0,0 @@
#!/bin/sh
echo "\$(BINDIR)/%: %"
echo -e "\tcp \$^ \$@"
echo "\$(MAN1DIR)/%: %"
echo -e "\tcp \$^ \$@"