added GNUmake*.sh

This commit is contained in:
hjp 2008-04-05 10:04:53 +00:00
parent ec0216b5a9
commit 72c7f8d3e4
3 changed files with 33 additions and 3 deletions

View File

@ -1,6 +1,9 @@
# $Id: GNUmakefile,v 1.3 2003-02-14 11:59:43 hjp Exp $ # $Id: GNUmakefile,v 1.4 2008-04-05 10:04:53 hjp Exp $
# $Log: GNUmakefile,v $ # $Log: GNUmakefile,v $
# Revision 1.3 2003-02-14 11:59:43 hjp # Revision 1.4 2008-04-05 10:04:53 hjp
# added GNUmake*.sh
#
# Revision 1.3 2003/02/14 11:59:43 hjp
# Added list of #defines from HP-UX. # Added list of #defines from HP-UX.
# #
# Revision 1.2 1998/05/31 01:20:06 hjp # Revision 1.2 1998/05/31 01:20:06 hjp
@ -8,7 +11,6 @@
# #
include GNUmakevars include GNUmakevars
include GNUmakerules
all: errno all: errno
@ -18,4 +20,12 @@ errno_list.c: errno.list make_errno_list
clean: clean:
rm errno rm errno
GNUmakevars: GNUmakevars.sh
sh ./$^ > $@
GNUmakerules: GNUmakerules.sh
sh ./$^ > $@
install: $(BINDIR)/errno install: $(BINDIR)/errno
include GNUmakerules

5
errno/GNUmakerules.sh Executable file
View File

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

15
errno/GNUmakevars.sh Executable file
View File

@ -0,0 +1,15 @@
#!/bin/sh
prefix=${prefix:-/usr/local}
echo "BINDIR=$prefix/bin"
for i in "$prefix/share/man/man1" "$prefix/man/man1"
do
if [ -d "$i" -a -w "$i" ]
then
echo "MAN1DIR=$i"
break;
fi
done
echo
echo "all:"