2001-02-12 15:32:43 +01:00
|
|
|
include GNUmakevars
|
|
|
|
|
|
|
|
CONFDIR=../../configure
|
2002-01-23 18:42:06 +01:00
|
|
|
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
|
|
|
|
|
2002-01-23 18:42:06 +01:00
|
|
|
ifeq ($(CONFDIR_exists),ok)
|
|
|
|
|
2001-02-12 15:32:43 +01:00
|
|
|
configure: $(CONFDIR)/start $(CONFDIR)/perl $(CONFDIR)/finish
|
|
|
|
cat $^ > $@
|
|
|
|
|
2002-01-23 18:42:06 +01:00
|
|
|
endif
|
|
|
|
|
2001-02-12 15:32:43 +01:00
|
|
|
$(BINDIR):
|
|
|
|
mkdir -p $@
|
|
|
|
|
|
|
|
include GNUmakerules
|
|
|
|
|