simple/grouptools/GNUmakefile

37 lines
582 B
Makefile
Raw Permalink 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 ./$^ > $@
2013-03-27 15:41:41 +01:00
GNUmakerules: GNUmakerules.pl
perl ./$^ > $@
2011-02-18 13:06:51 +01:00
include GNUmakerules