annotate 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 |
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:
|
|
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
|