Automatically create GNUmakerules and GNUmakevars if they don't exist.

This commit is contained in:
hjp 2004-12-20 21:18:40 +00:00
parent 1784620bb9
commit 9a1b2a14f9
3 changed files with 15 additions and 2 deletions

View File

@ -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

3
tiny/GNUmakerules.sh Executable file
View File

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

5
tiny/GNUmakevars.sh Executable file
View File

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