simple/ts/GNUmakefile

41 lines
573 B
Makefile
Raw Permalink Normal View History

include GNUmakevars
CONFDIR=../../configure
CONFDIR_exists=$(shell [ -d $(CONFDIR) ] && echo ok)
all: configure ts
clean:
2016-07-05 22:47:42 +02:00
rm -f ts ts.bx ts.o
install: \
$(BINDIR)/ts \
ts: ts.bx
cp $< $@
ts.bx: ts.o
$(LINK.o) $^ $(LOADLIBES) $(LDLIBS) -o $@
%.plx: %.pl customize
sh ./customize < $< > $@
chmod +x $@
customize: configure
sh ./configure
ifeq ($(CONFDIR_exists),ok)
configure: $(CONFDIR)/start $(CONFDIR)/perl $(CONFDIR)/finish
cat $^ > $@
endif
GNUmakevars: GNUmakevars.sh
sh ./$^ > $@
GNUmakerules: GNUmakerules.sh
sh ./$^ > $@
include GNUmakerules