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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2
5f36d8d69aba Set up a build framework.
David A. Holland
parents:
diff changeset
1 .SUFFIXES: .py .pl .sh
5f36d8d69aba Set up a build framework.
David A. Holland
parents:
diff changeset
2
5f36d8d69aba Set up a build framework.
David A. Holland
parents:
diff changeset
3 PROG=$(SCRIPT:R)$(BINSUFFIX)
5f36d8d69aba Set up a build framework.
David A. Holland
parents:
diff changeset
4
5f36d8d69aba Set up a build framework.
David A. Holland
parents:
diff changeset
5 all: $(PROG)
5f36d8d69aba Set up a build framework.
David A. Holland
parents:
diff changeset
6
5f36d8d69aba Set up a build framework.
David A. Holland
parents:
diff changeset
7 $(PROG): $(SCRIPT)
5f36d8d69aba Set up a build framework.
David A. Holland
parents:
diff changeset
8 $(SED) -f $(TOP)/config.sed < $(SCRIPT) > $@.new
5f36d8d69aba Set up a build framework.
David A. Holland
parents:
diff changeset
9 mv -f $@.new $@
5f36d8d69aba Set up a build framework.
David A. Holland
parents:
diff changeset
10
5f36d8d69aba Set up a build framework.
David A. Holland
parents:
diff changeset
11 depend: ;
5f36d8d69aba Set up a build framework.
David A. Holland
parents:
diff changeset
12
5f36d8d69aba Set up a build framework.
David A. Holland
parents:
diff changeset
13 install:
5f36d8d69aba Set up a build framework.
David A. Holland
parents:
diff changeset
14 $(INSTALL) -c $(PROG) $(DESTDIR)$(PREFIX)/$(BINDIR)/$(PROG)
5f36d8d69aba Set up a build framework.
David A. Holland
parents:
diff changeset
15
5f36d8d69aba Set up a build framework.
David A. Holland
parents:
diff changeset
16 clean distclean:
5f36d8d69aba Set up a build framework.
David A. Holland
parents:
diff changeset
17 rm -f $(PROG) $(PROG).new
5f36d8d69aba Set up a build framework.
David A. Holland
parents:
diff changeset
18
5f36d8d69aba Set up a build framework.
David A. Holland
parents:
diff changeset
19 .PHONY: all depend install clean distclean