Add GNUmakerules, GNUmakevars; Remove very obsolete target install_all
This commit is contained in:
parent
f052403e23
commit
5935f6a0e6
|
@ -5,12 +5,11 @@ prwtmp:
|
||||||
|
|
||||||
install: $(ROOT)/usr/local/bin/prwtmp $(ROOT)/usr/local/man/man8/prwtmp.8
|
install: $(ROOT)/usr/local/bin/prwtmp $(ROOT)/usr/local/man/man8/prwtmp.8
|
||||||
|
|
||||||
install_all:
|
clean:
|
||||||
$(MAKE) install ROOT=/nfs/wsrdb
|
rm prwtmp
|
||||||
$(MAKE) install ROOT=/nfs/wsrcom
|
|
||||||
$(MAKE) install ROOT=/nfs/wifosv
|
distclean: clean
|
||||||
$(MAKE) install ROOT=/nfs/ihssv
|
rm GNUmakerules GNUmakevars
|
||||||
$(MAKE) install ROOT=/nfs/wsrtest
|
|
||||||
|
|
||||||
$(ROOT)/usr/local/bin/%: %
|
$(ROOT)/usr/local/bin/%: %
|
||||||
$(INSTALL) $< $@
|
$(INSTALL) $< $@
|
||||||
|
@ -18,8 +17,8 @@ $(ROOT)/usr/local/bin/%: %
|
||||||
$(ROOT)/usr/local/man/man8/%.8: %.man
|
$(ROOT)/usr/local/man/man8/%.8: %.man
|
||||||
$(INSTALL) $< $@
|
$(INSTALL) $< $@
|
||||||
|
|
||||||
clean:
|
GNUmakevars: GNUmakevars.sh
|
||||||
rm prwtmp
|
sh ./$^ > $@
|
||||||
|
GNUmakerules: GNUmakerules.pl
|
||||||
|
perl ./$^ > $@
|
||||||
|
|
||||||
distclean: clean
|
|
||||||
rm GNUmakerules GNUmakevars
|
|
||||||
|
|
|
@ -0,0 +1,8 @@
|
||||||
|
#!/usr/bin/perl
|
||||||
|
use warnings;
|
||||||
|
use strict;
|
||||||
|
|
||||||
|
print "\$(BINDIR)/%: %\n";
|
||||||
|
print "\tcp \$^ \$@\n";
|
||||||
|
print "\$(MAN1DIR)/%: %\n";
|
||||||
|
print "\tcp \$^ \$@\n";
|
|
@ -0,0 +1,5 @@
|
||||||
|
#!/bin/sh
|
||||||
|
prefix=${prefix:-/usr/local}
|
||||||
|
echo "BINDIR=$prefix/bin"
|
||||||
|
echo
|
||||||
|
echo "all:"
|
Loading…
Reference in New Issue