annotate mk/script.mk @ 45:233dcc4d80e1

update
author David A. Holland
date Mon, 16 Jun 2014 01:27:54 -0400
parents 813a27f32072
children
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:
25
813a27f32072 create installation directories
David A. Holland
parents: 2
diff changeset
14 [ -d $(DESTDIR)$(PREFIX)/$(BINDIR) ] || \
813a27f32072 create installation directories
David A. Holland
parents: 2
diff changeset
15 mkdir -p $(DESTDIR)$(PREFIX)/$(BINDIR)
2
5f36d8d69aba Set up a build framework.
David A. Holland
parents:
diff changeset
16 $(INSTALL) -c $(PROG) $(DESTDIR)$(PREFIX)/$(BINDIR)/$(PROG)
5f36d8d69aba Set up a build framework.
David A. Holland
parents:
diff changeset
17
5f36d8d69aba Set up a build framework.
David A. Holland
parents:
diff changeset
18 clean distclean:
5f36d8d69aba Set up a build framework.
David A. Holland
parents:
diff changeset
19 rm -f $(PROG) $(PROG).new
5f36d8d69aba Set up a build framework.
David A. Holland
parents:
diff changeset
20
5f36d8d69aba Set up a build framework.
David A. Holland
parents:
diff changeset
21 .PHONY: all depend install clean distclean