simple/grouptools/GNUmakefile

37 lines
580 B
Makefile
Raw Normal View History

include GNUmakevars
CONFDIR=../../configure
CONFDIR_exists=$(shell [ -d $(CONFDIR) ] && echo ok)
2005-11-16 12:11:23 +01:00
all: configure grouplist groupmatch groupcount
clean:
rm grouplist groupmatch
install: \
$(BINDIR)/grouplist \
$(BINDIR)/groupmatch \
2005-11-16 12:11:23 +01:00
$(BINDIR)/groupcount \
%: %.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 ./$^ > $@
GNUmakerules: GNUmakerules.sh
sh ./$^ > $@
include GNUmakerules