Mercurial > ~dholland > hg > swallowtail > index.cgi
annotate mk/script.mk @ 45:233dcc4d80e1
update
author | David A. Holland |
---|---|
date | Mon, 16 Jun 2014 01:27:54 -0400 |
parents | 813a27f32072 |
children |
rev | line source |
---|---|
2 | 1 .SUFFIXES: .py .pl .sh |
2 | |
3 PROG=$(SCRIPT:R)$(BINSUFFIX) | |
4 | |
5 all: $(PROG) | |
6 | |
7 $(PROG): $(SCRIPT) | |
8 $(SED) -f $(TOP)/config.sed < $(SCRIPT) > $@.new | |
9 mv -f $@.new $@ | |
10 | |
11 depend: ; | |
12 | |
13 install: | |
25 | 14 [ -d $(DESTDIR)$(PREFIX)/$(BINDIR) ] || \ |
15 mkdir -p $(DESTDIR)$(PREFIX)/$(BINDIR) | |
2 | 16 $(INSTALL) -c $(PROG) $(DESTDIR)$(PREFIX)/$(BINDIR)/$(PROG) |
17 | |
18 clean distclean: | |
19 rm -f $(PROG) $(PROG).new | |
20 | |
21 .PHONY: all depend install clean distclean |