simple/agestat/GNUmakefile

33 lines
414 B
Makefile

include GNUmakevars
BINDIR=/usr/local/bin
all: agestat
clean:
rm agestat customize
install: $(BINDIR) $(BINDIR)/agestat
%: %.pl customize
sh ./customize < $< > $@
chmod +x $@
%: %.sh customize
sh ./customize < $< > $@
chmod +x $@
customize: configure
sh ./configure
$(BINDIR):
mkdir -p $@
GNUmakevars: GNUmakevars.sh
sh ./$^ > $@
GNUmakerules: GNUmakerules.sh
sh ./$^ > $@
include GNUmakerules