Mercurial > ~dholland > hg > ag > index.cgi
diff 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 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/doc/manpages/DEFS.mk Sat Dec 22 17:52:45 2007 -0500 @@ -0,0 +1,42 @@ +include $(BUILDTOP)/config.mk +include $(TOP)/mk/installdirs.mk + +all: ag.1 agcl.1 + +subst.sed: $(TOP)/anagram/ag1/version.h $(SRCDIR)/DEFS.mk + @echo ' [CREATE] subst.sed' + @sed < $(TOP)/anagram/ag1/version.h \ + '1d;s/^#define /s,@/;s/ */@,/;s/$$/,/' > subst.sed + +ag.1: $(SRCDIR)/ag.mdoc subst.sed + @echo ' [SUBST] ag.1' + @sed -f subst.sed < $(SRCDIR)/ag.mdoc > ag.1 + +agcl.1: $(SRCDIR)/agcl.mdoc subst.sed + @echo ' [SUBST] agcl.1' + @sed -f subst.sed < $(SRCDIR)/agcl.mdoc > agcl.1 + +clean distclean: + @echo ' [RM] ag.1 agcl.1 subst.sed' + @rm -f ag.1 agcl.1 subst.sed + +install: install.$(OS) + +install.unix: install.$(HASGUI) + @$(TOP)/mk/mkinstalldirs.sh "$(MANDIR)/man1" + @echo ' [CP] agcl.1' + @cp agcl.1 "$(MANDIR)/man1/" + @(cd "$(MANDIR)/man1/" && chmod 644 agcl.1) + +install.hasgui: + @$(TOP)/mk/mkinstalldirs.sh "$(MANDIR)/man1" + @echo ' [CP] ag.1' + @cp ag.1 "$(MANDIR)/man1/" + @(cd "$(MANDIR)/man1/" && chmod 644 ag.1) + +rules depend agfiles agclean:; + +install.windows install.nogui:; + +.PHONY: all clean distclean rules depend install agfiles agclean +.PHONY: install.windows install.unix install.hasgui install.nogui