Add GNUmakerules, GNUmakevars; Remove very obsolete target install_all

This commit is contained in:
hjp 2016-07-05 20:26:11 +00:00
parent f052403e23
commit 5935f6a0e6
3 changed files with 22 additions and 10 deletions

View File

@ -5,12 +5,11 @@ prwtmp:
install: $(ROOT)/usr/local/bin/prwtmp $(ROOT)/usr/local/man/man8/prwtmp.8
install_all:
$(MAKE) install ROOT=/nfs/wsrdb
$(MAKE) install ROOT=/nfs/wsrcom
$(MAKE) install ROOT=/nfs/wifosv
$(MAKE) install ROOT=/nfs/ihssv
$(MAKE) install ROOT=/nfs/wsrtest
clean:
rm prwtmp
distclean: clean
rm GNUmakerules GNUmakevars
$(ROOT)/usr/local/bin/%: %
$(INSTALL) $< $@
@ -18,8 +17,8 @@ $(ROOT)/usr/local/bin/%: %
$(ROOT)/usr/local/man/man8/%.8: %.man
$(INSTALL) $< $@
clean:
rm prwtmp
GNUmakevars: GNUmakevars.sh
sh ./$^ > $@
GNUmakerules: GNUmakerules.pl
perl ./$^ > $@
distclean: clean
rm GNUmakerules GNUmakevars

8
prwtmp/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";

5
prwtmp/GNUmakevars.sh Executable file
View File

@ -0,0 +1,5 @@
#!/bin/sh
prefix=${prefix:-/usr/local}
echo "BINDIR=$prefix/bin"
echo
echo "all:"