X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~mdw/git/tripe/blobdiff_plain/6b6ad6702f305891ced3b9a7cf3061c75eabda86..2fa800105a5897cad85c51c48d1970b9061a33f5:/vars.am diff --git a/vars.am b/vars.am index 4c2b8158..245b98e7 100644 --- a/vars.am +++ b/vars.am @@ -39,15 +39,17 @@ SUFFIXES = TRIPE_INCLUDES = \ -I$(top_builddir)/config.h \ - -I$(top_srcdir)/common + -I$(top_srcdir)/common \ + -I$(top_srcdir)/priv CPPFLAGS += $(TRIPE_INCLUDES) ###-------------------------------------------------------------------------- ### Miscellanous useful definitions. -## Library of common code. +## Libraries of common code. libtripe = $(top_builddir)/common/libtripe.a +libpriv = $(top_builddir)/priv/libpriv.a ## Create a directory if it doesn't exist. mkdir_p = $(top_srcdir)/config/install-sh -d @@ -65,6 +67,25 @@ SUBSTITUTIONS = \ configdir=$(configdir) socketdir=$(socketdir) \ initconfig=$(initconfig) \ pidfile=$(pidfile) logfile=$(logfile) \ + PACKAGE=$(PACKAGE) VERSION=$(VERSION) \ PYTHON=$(PYTHON) +###-------------------------------------------------------------------------- +### Manpage substitutions. + +SUFFIXES += .1 .1.in +SUFFIXES += .5 .5.in +SUFFIXES += .7 .7.in +SUFFIXES += .8 .8.in + +mandefs = $(top_srcdir)/common/defs.man +makesummary = $(top_srcdir)/common/make-summary + +.1.in.1 .5.in.5 .7.in.7 .8.in.8: + sed '/^\.$$/ d; /^\.\\"/ d' $(mandefs) >$@.defs + sed -e '/@@@PRE@@@/ {' -e 'r$@.defs' -e 'd' -e '}' $< >$@.merge + $(confsubst) $@.merge >$@.subst $(SUBSTITUTIONS) + awk -f $(makesummary) $@.subst >$@.new + rm -f $@.defs $@.merge $@.subst && mv $@.new $@ + ###----- That's all, folks --------------------------------------------------