simple/fact/GNUmakefile

36 lines
495 B
Makefile
Raw Normal View History

2001-01-19 19:37:52 +01:00
include GNUmakevars
CONFDIR=../../configure
2001-03-19 23:39:28 +01:00
CONFDIR_exists=$(shell [ -d $(CONFDIR) ] && echo ok)
2001-01-19 19:37:52 +01:00
all: configure fact
clean:
rm fact customize
install: $(BINDIR) $(BINDIR)/fact
%: %.pl customize
sh ./customize < $< > $@
chmod +x $@
%: %.sh customize
sh ./customize < $< > $@
chmod +x $@
customize: configure
sh ./configure
2001-03-19 23:39:28 +01:00
ifeq ($(CONFDIR_exists),ok)
2001-01-19 19:37:52 +01:00
configure: $(CONFDIR)/start $(CONFDIR)/perl $(CONFDIR)/finish
cat $^ > $@
2001-03-19 23:39:28 +01:00
endif
2001-01-19 19:37:52 +01:00
$(BINDIR):
mkdir -p $@
include GNUmakerules