Replaced GNUmakerules.sh with GNUmakerules.pl because Debian now uses a

/bin/sh which doesn't understand echo -e.
This commit is contained in:
hjp 2011-01-30 19:41:15 +00:00
parent 34cd011527
commit 0d6d25b899
3 changed files with 15 additions and 8 deletions

View File

@ -1,5 +1,9 @@
# $Id: GNUmakefile,v 1.6 2011-01-30 19:33:28 hjp Exp $
# $Id: GNUmakefile,v 1.7 2011-01-30 19:41:15 hjp Exp $
# $Log: GNUmakefile,v $
# Revision 1.7 2011-01-30 19:41:15 hjp
# Replaced GNUmakerules.sh with GNUmakerules.pl because Debian now uses a
# /bin/sh which doesn't understand echo -e.
#
# Revision 1.6 2011-01-30 19:33:28 hjp
# removed duplicate rules
#
@ -31,8 +35,8 @@ install: $(BINDIR)/errno
GNUmakevars: GNUmakevars.sh
sh ./$^ > $@
GNUmakerules: GNUmakerules.sh
sh ./$^ > $@
GNUmakerules: GNUmakerules.pl
perl ./$^ > $@
include GNUmakerules
-include *.d

8
errno/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 \$^ \$@"