Mercurial > ~dholland > hg > ag > index.cgi
comparison doc/manpages/DEFS.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 include $(BUILDTOP)/config.mk | |
2 include $(TOP)/mk/installdirs.mk | |
3 | |
4 all: ag.1 agcl.1 | |
5 | |
6 subst.sed: $(TOP)/anagram/ag1/version.h $(SRCDIR)/DEFS.mk | |
7 @echo ' [CREATE] subst.sed' | |
8 @sed < $(TOP)/anagram/ag1/version.h \ | |
9 '1d;s/^#define /s,@/;s/ */@,/;s/$$/,/' > subst.sed | |
10 | |
11 ag.1: $(SRCDIR)/ag.mdoc subst.sed | |
12 @echo ' [SUBST] ag.1' | |
13 @sed -f subst.sed < $(SRCDIR)/ag.mdoc > ag.1 | |
14 | |
15 agcl.1: $(SRCDIR)/agcl.mdoc subst.sed | |
16 @echo ' [SUBST] agcl.1' | |
17 @sed -f subst.sed < $(SRCDIR)/agcl.mdoc > agcl.1 | |
18 | |
19 clean distclean: | |
20 @echo ' [RM] ag.1 agcl.1 subst.sed' | |
21 @rm -f ag.1 agcl.1 subst.sed | |
22 | |
23 install: install.$(OS) | |
24 | |
25 install.unix: install.$(HASGUI) | |
26 @$(TOP)/mk/mkinstalldirs.sh "$(MANDIR)/man1" | |
27 @echo ' [CP] agcl.1' | |
28 @cp agcl.1 "$(MANDIR)/man1/" | |
29 @(cd "$(MANDIR)/man1/" && chmod 644 agcl.1) | |
30 | |
31 install.hasgui: | |
32 @$(TOP)/mk/mkinstalldirs.sh "$(MANDIR)/man1" | |
33 @echo ' [CP] ag.1' | |
34 @cp ag.1 "$(MANDIR)/man1/" | |
35 @(cd "$(MANDIR)/man1/" && chmod 644 ag.1) | |
36 | |
37 rules depend agfiles agclean:; | |
38 | |
39 install.windows install.nogui:; | |
40 | |
41 .PHONY: all clean distclean rules depend install agfiles agclean | |
42 .PHONY: install.windows install.unix install.hasgui install.nogui |