simple/grouptools/GNUmakefile

32 lines
493 B
Makefile

include GNUmakevars
CONFDIR=../../configure
CONFDIR_exists=$(shell [ -d $(CONFDIR) ] && echo ok)
all: configure grouplist groupmatch groupcount
clean:
rm grouplist groupmatch
install: \
$(BINDIR)/grouplist \
$(BINDIR)/groupmatch \
$(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
include GNUmakerules