Automatically create GNUmakerules and GNUmakevars if they don't exist.
This commit is contained in:
parent
1784620bb9
commit
9a1b2a14f9
|
@ -1,8 +1,13 @@
|
||||||
include GNUmakevars
|
-include GNUmakevars
|
||||||
|
|
||||||
CONFDIR=../../configure
|
CONFDIR=../../configure
|
||||||
CONFDIR_exists=$(shell [ -d $(CONFDIR) ] && echo ok)
|
CONFDIR_exists=$(shell [ -d $(CONFDIR) ] && echo ok)
|
||||||
|
|
||||||
|
GNUmakevars: GNUmakevars.sh
|
||||||
|
sh ./$^ > $@
|
||||||
|
GNUmakerules: GNUmakerules.sh
|
||||||
|
sh ./$^ > $@
|
||||||
|
|
||||||
all: configure dus fnp fnpa fnpc isodate psg save crypt
|
all: configure dus fnp fnpa fnpc isodate psg save crypt
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
|
@ -45,4 +50,4 @@ configure: $(CONFDIR)/start \
|
||||||
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
include GNUmakerules
|
-include GNUmakerules
|
||||||
|
|
|
@ -0,0 +1,3 @@
|
||||||
|
#!/bin/sh
|
||||||
|
echo "\$(BINDIR)/%: %"
|
||||||
|
echo -e "\tcp \$^ \$@"
|
|
@ -0,0 +1,5 @@
|
||||||
|
#!/bin/sh
|
||||||
|
prefix=${prefix:-/usr/local}
|
||||||
|
echo "BINDIR=$prefix/bin"
|
||||||
|
echo
|
||||||
|
echo "all:"
|
Loading…
Reference in New Issue