automatically create GNUmakerules and GNUmakevars
This commit is contained in:
parent
3163f7d94d
commit
0f501292a0
|
@ -1,5 +1,9 @@
|
|||
include GNUmakevars
|
||||
include GNUmakerules
|
||||
|
||||
CONFDIR=../../configure
|
||||
CONFDIR_exists=$(shell [ -d $(CONFDIR) ] && echo ok)
|
||||
|
||||
all: shuffle
|
||||
|
||||
shuffle: shuffle.o
|
||||
$(CC) $^ -lant -o $@
|
||||
|
@ -11,3 +15,20 @@ install: $(BINDIR)/shuffle
|
|||
|
||||
distclean: clean
|
||||
rm -f *.bak *.d
|
||||
|
||||
GNUmakevars: GNUmakevars.sh
|
||||
sh ./$^ > $@
|
||||
GNUmakerules: GNUmakerules.sh
|
||||
sh ./$^ > $@
|
||||
|
||||
customize: configure
|
||||
sh ./configure
|
||||
|
||||
ifeq ($(CONFDIR_exists),ok)
|
||||
|
||||
configure: $(CONFDIR)/start $(CONFDIR)/perl $(CONFDIR)/finish
|
||||
cat $^ > $@
|
||||
|
||||
endif
|
||||
|
||||
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