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
|
|
|
|
|
|
|
|
include GNUmakerules
|