2003-04-10 10:39:17 +02:00
|
|
|
include GNUmakevars
|
|
|
|
|
|
|
|
CONFDIR=../../configure
|
|
|
|
CONFDIR_exists=$(shell [ -d $(CONFDIR) ] && echo ok)
|
|
|
|
|
2005-11-16 12:11:23 +01:00
|
|
|
all: configure grouplist groupmatch groupcount
|
2003-04-10 10:39:17 +02:00
|
|
|
|
|
|
|
clean:
|
|
|
|
rm grouplist groupmatch
|
|
|
|
|
|
|
|
install: \
|
|
|
|
$(BINDIR)/grouplist \
|
|
|
|
$(BINDIR)/groupmatch \
|
2005-11-16 12:11:23 +01:00
|
|
|
$(BINDIR)/groupcount \
|
2003-04-10 10:39:17 +02:00
|
|
|
|
|
|
|
|
|
|
|
%: %.pl customize
|
|
|
|
sh ./customize < $< > $@
|
|
|
|
chmod +x $@
|
|
|
|
|
|
|
|
customize: configure
|
|
|
|
sh ./configure
|
|
|
|
|
|
|
|
ifeq ($(CONFDIR_exists),ok)
|
|
|
|
|
|
|
|
configure: $(CONFDIR)/start $(CONFDIR)/perl $(CONFDIR)/finish
|
|
|
|
cat $^ > $@
|
|
|
|
|
|
|
|
endif
|
|
|
|
|
2011-02-18 13:06:51 +01:00
|
|
|
GNUmakevars: GNUmakevars.sh
|
|
|
|
sh ./$^ > $@
|
2013-03-27 15:41:41 +01:00
|
|
|
GNUmakerules: GNUmakerules.pl
|
|
|
|
perl ./$^ > $@
|
2011-02-18 13:06:51 +01:00
|
|
|
|
2003-04-10 10:39:17 +02:00
|
|
|
include GNUmakerules
|