comparison mk/script.mk @ 2:5f36d8d69aba

Set up a build framework.
author David A. Holland
date Sun, 19 Feb 2012 18:57:59 -0500
parents
children 813a27f32072
comparison
equal deleted inserted replaced
1:5f96b693f41a 2:5f36d8d69aba
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:
14 $(INSTALL) -c $(PROG) $(DESTDIR)$(PREFIX)/$(BINDIR)/$(PROG)
15
16 clean distclean:
17 rm -f $(PROG) $(PROG).new
18
19 .PHONY: all depend install clean distclean