diff --git a/errno/GNUmakefile b/errno/GNUmakefile index 1879318..ab96a28 100644 --- a/errno/GNUmakefile +++ b/errno/GNUmakefile @@ -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 diff --git a/errno/GNUmakerules.pl b/errno/GNUmakerules.pl new file mode 100755 index 0000000..8f30daa --- /dev/null +++ b/errno/GNUmakerules.pl @@ -0,0 +1,8 @@ +#!/usr/bin/perl +use warnings; +use strict; + +print "\$(BINDIR)/%: %\n"; +print "\tcp \$^ \$@\n"; +print "\$(MAN1DIR)/%: %\n"; +print "\tcp \$^ \$@\n"; diff --git a/errno/GNUmakerules.sh b/errno/GNUmakerules.sh deleted file mode 100755 index 952629f..0000000 --- a/errno/GNUmakerules.sh +++ /dev/null @@ -1,5 +0,0 @@ -#!/bin/sh -echo "\$(BINDIR)/%: %" -echo -e "\tcp \$^ \$@" -echo "\$(MAN1DIR)/%: %" -echo -e "\tcp \$^ \$@"