1 2appmandir = $(APP_MAN_DIR) 3appman_PRE = sessreg.man 4appman_DATA = $(appman_PRE:man=$(APP_MAN_SUFFIX)) 5 6EXTRA_DIST = $(appman_PRE) filenames.sed.c extract.sed 7CLEANFILES = $(appman_DATA) filenames.sed 8SUFFIXES = .$(APP_MAN_SUFFIX) .man 9 10AM_CPPFLAGS = -I$(top_builddir) -I$(top_srcdir) 11filenames.sed: filenames.sed.c extract.sed 12 $(AM_V_GEN)$(CPP) -P $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ 13 $(AM_CPPFLAGS) $(CPPFLAGS) $(srcdir)/filenames.sed.c | \ 14 $(SED) -n -f $(srcdir)/extract.sed > $@ 15 16# String replacements in MAN_SUBSTS now come from xorg-macros.m4 via configure 17MAN_SUBSTS += -f filenames.sed 18 19sessreg.$(APP_MAN_SUFFIX): filenames.sed 20 21.man.$(APP_MAN_SUFFIX): 22 $(AM_V_GEN)$(SED) $(MAN_SUBSTS) < $< > $@ 23