simple/oragetsrc/GNUmakefile

36 lines
510 B
Makefile
Raw Permalink Normal View History

2001-02-12 15:32:43 +01:00
include GNUmakevars
CONFDIR=../../configure
CONFDIR_exists=$(shell [ -d $(CONFDIR) ] && echo ok)
2001-02-12 15:32:43 +01:00
all: configure oragetsrc
clean:
rm oragetsrc customize
install: $(BINDIR) $(BINDIR)/oragetsrc
%: %.pl customize
sh ./customize < $< > $@
chmod +x $@
%: %.sh customize
sh ./customize < $< > $@
chmod +x $@
customize: configure
sh ./configure
ifeq ($(CONFDIR_exists),ok)
2001-02-12 15:32:43 +01:00
configure: $(CONFDIR)/start $(CONFDIR)/perl $(CONFDIR)/finish
cat $^ > $@
endif
2001-02-12 15:32:43 +01:00
$(BINDIR):
mkdir -p $@
include GNUmakerules