diff options
author | Alan Coopersmith <alan.coopersmith@sun.com> | 2006-11-07 18:27:45 -0800 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@sun.com> | 2006-11-07 18:27:45 -0800 |
commit | 63f21c67aa6d025d8fa06793dc7f83f37e7c3fb4 (patch) | |
tree | c8085e4ddd8fcc57b5d7ebaeb86b968ad3e50c88 /Makefile.am | |
parent | 98a651ec2ac289b966e0a09557e81b33e202ee9c (diff) |
Substitute correct pathnames for utmp/wtmp files in man pages
ifdefs to find the paths on each platform have been broken out into a new
sessreg.h header that is also preprocessed into sed rules applied to the
man page. Old ifdefs left for Imake compatibility in the 6.9/7.0 hybrid
release have been dropped now that autoconf is required to build.
Diffstat (limited to 'Makefile.am')
-rw-r--r-- | Makefile.am | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/Makefile.am b/Makefile.am index e96b0d3..f33a11a 100644 --- a/Makefile.am +++ b/Makefile.am @@ -23,6 +23,7 @@ bin_PROGRAMS = sessreg sessreg_CFLAGS = $(SESSREG_CFLAGS) sessreg_SOURCES = \ + sessreg.h \ sessreg.c appman_PRE = sessreg.man @@ -31,8 +32,8 @@ appmandir = $(APP_MAN_DIR) appman_DATA = $(appman_PRE:man=@APP_MAN_SUFFIX@) -EXTRA_DIST = $(appman_PRE) -CLEANFILES = $(appman_DATA) +EXTRA_DIST = $(appman_PRE) filenames.sed.c +CLEANFILES = $(appman_DATA) filenames.sed SED = sed @@ -40,7 +41,7 @@ SED = sed XORGRELSTRING = @PACKAGE_STRING@ XORGMANNAME = X Version 11 -MAN_SUBSTS = \ +MAN_SUBSTS = -f filenames.sed \ -e 's|__vendorversion__|"$(XORGRELSTRING)" "$(XORGMANNAME)"|' \ -e 's|__xorgversion__|"$(XORGRELSTRING)" "$(XORGMANNAME)"|' \ -e 's|__xservername__|Xorg|g' \ @@ -57,3 +58,8 @@ SUFFIXES = .$(APP_MAN_SUFFIX) .man .man.$(APP_MAN_SUFFIX): sed $(MAN_SUBSTS) < $< > $@ + +sessreg.$(APP_MAN_SUFFIX): filenames.sed + +filenames.sed: filenames.sed.c + $(CPP) $(DEFS) $(srcdir)/filenames.sed.c | grep 's\|__' > $@ |