xenocara/app/xhost/Makefile.am

48 lines
1.1 KiB
Makefile
Raw Normal View History

2006-11-25 13:07:29 -07:00
bin_PROGRAMS = xhost
xhost_SOURCES = xhost.c
2009-10-24 08:14:08 -06:00
AM_CFLAGS = $(CWARNFLAGS) $(XHOST_CFLAGS)
xhost_LDADD = $(XHOST_LIBS)
2006-11-25 13:07:29 -07:00
appman_PRE = xhost.man
appmandir = $(APP_MAN_DIR)
appman_DATA = $(appman_PRE:man=@APP_MAN_SUFFIX@)
2009-10-24 08:14:08 -06:00
EXTRA_DIST = $(appman_PRE) ChangeLog
2006-11-25 13:07:29 -07:00
CLEANFILES = $(appman_DATA)
2007-09-15 09:58:47 -06:00
MAINTAINERCLEANFILES = ChangeLog
.PHONY: ChangeLog
ChangeLog:
2009-10-24 08:14:08 -06:00
$(CHANGELOG_CMD)
2007-09-15 09:58:47 -06:00
dist-hook: ChangeLog
2006-11-25 13:07:29 -07: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-10-24 08:14:08 -06:00
$(AM_V_GEN)$(SED) $(MAN_SUBSTS) < $< > $@