Mercurial > ~dholland > hg > ag > index.cgi
comparison mk/installexample.mk @ 0:13d2b8934445
Import AnaGram (near-)release tree into Mercurial.
author | David A. Holland |
---|---|
date | Sat, 22 Dec 2007 17:52:45 -0500 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:13d2b8934445 |
---|---|
1 # | |
2 # installexample.mk - install example sources | |
3 # | |
4 # Before including, set: | |
5 # | |
6 # THISEXAMPLE name of this example (e.g. ffcalc) | |
7 # EXAMPLEFILES (optional) shell wildcard for files to install | |
8 # | |
9 | |
10 include $(TOP)/mk/installdirs.mk | |
11 | |
12 EXAMPLEFILES?=*.syn *.cpp *.h | |
13 MYDIR=$(EXAMPLESDIR)/examples/$(THISEXAMPLE) | |
14 | |
15 install: | |
16 @$(TOP)/mk/mkinstalldirs.sh "$(MYDIR)" | |
17 @echo ' [CP] $(EXAMPLEFILES)' | |
18 @cp `(cd $(SRCDIR) && ls $(EXAMPLEFILES)) | sed 's,^,$(SRCDIR)/,'` \ | |
19 "$(MYDIR)/" | |
20 @(cd "$(MYDIR)" && chmod 644 $(EXAMPLEFILES)) |