2007-02-08 09:49:51 -06:00
|
|
|
bin_PROGRAMS = xhost
|
|
|
|
|
|
|
|
xhost_SOURCES = xhost.c
|
|
|
|
|
2009-12-06 06:05:36 -06:00
|
|
|
AM_CFLAGS = $(CWARNFLAGS) $(XHOST_CFLAGS)
|
|
|
|
xhost_LDADD = $(XHOST_LIBS)
|
2007-02-08 09:49:51 -06:00
|
|
|
|
|
|
|
appman_PRE = xhost.man
|
|
|
|
|
|
|
|
appmandir = $(APP_MAN_DIR)
|
|
|
|
|
|
|
|
appman_DATA = $(appman_PRE:man=@APP_MAN_SUFFIX@)
|
|
|
|
|
2009-12-06 06:05:36 -06:00
|
|
|
EXTRA_DIST = $(appman_PRE) ChangeLog
|
2007-02-08 09:49:51 -06:00
|
|
|
CLEANFILES = $(appman_DATA)
|
2007-07-17 11:16:56 -05:00
|
|
|
MAINTAINERCLEANFILES = ChangeLog
|
|
|
|
|
|
|
|
.PHONY: ChangeLog
|
|
|
|
|
|
|
|
ChangeLog:
|
2009-12-06 06:05:36 -06:00
|
|
|
$(CHANGELOG_CMD)
|
2007-07-17 11:16:56 -05:00
|
|
|
|
|
|
|
dist-hook: ChangeLog
|
2007-02-08 09:49:51 -06:00
|
|
|
|
|
|
|
SED = sed
|
|
|
|
|
|
|
|
# Strings to replace in man pages
|
|
|
|
XORGRELSTRING = @PACKAGE_STRING@
|
|
|
|
XORGMANNAME = X Version 11
|
|
|
|
|
|
|
|
MAN_SUBSTS = \
|
|
|
|
-e 's|__vendorversion__|"$(XORGRELSTRING)" "$(XORGMANNAME)"|' \
|
|
|
|
-e 's|__xorgversion__|"$(XORGRELSTRING)" "$(XORGMANNAME)"|' \
|
|
|
|
-e 's|__xservername__|Xorg|g' \
|
|
|
|
-e 's|__xconfigfile__|xorg.conf|g' \
|
|
|
|
-e 's|__projectroot__|$(prefix)|g' \
|
|
|
|
-e 's|__apploaddir__|$(appdefaultdir)|' \
|
|
|
|
-e 's|__appmansuffix__|$(APP_MAN_SUFFIX)|g' \
|
|
|
|
-e 's|__libmansuffix__|$(LIB_MAN_SUFFIX)|g' \
|
|
|
|
-e 's|__adminmansuffix__|$(ADMIN_MAN_SUFFIX)|g' \
|
|
|
|
-e 's|__miscmansuffix__|$(MISC_MAN_SUFFIX)|g' \
|
|
|
|
-e 's|__filemansuffix__|$(FILE_MAN_SUFFIX)|g'
|
|
|
|
|
|
|
|
SUFFIXES = .$(APP_MAN_SUFFIX) .man
|
|
|
|
|
|
|
|
.man.$(APP_MAN_SUFFIX):
|
2009-12-06 06:05:36 -06:00
|
|
|
$(AM_V_GEN)$(SED) $(MAN_SUBSTS) < $< > $@
|