summaryrefslogtreecommitdiff
path: root/man/Makefile.am
blob: b24faca6b1b19ddd7dbcc6cc9ceffbc9694ce5b1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22

appmandir = $(APP_MAN_DIR)
appman_PRE = startx.man  xinit.man
appman_DATA = $(appman_PRE:man=$(APP_MAN_SUFFIX))

EXTRA_DIST = $(appman_PRE)
CLEANFILES = $(appman_DATA)
SUFFIXES = .$(APP_MAN_SUFFIX) .man

MAN_SUBSTS+=	-e 's|__XSERVERNAME__|$(XSERVERNAME)|g' \
		-e 's|__XCONFIGFILE__|$(XCONFIGFILE)|g' \
		-e 's|__XCONFIGFILEMAN__|$(XCONFIGFILEMAN)|g' \
		-e 's|__xinitdir__|$(XINITDIR)|g' \
		-e 's|__bindir__|$(bindir)|g' \
		-e 's|__libdir__|$(libdir)|g' \
		-e 's|__SCOMAN__|$(SCOMAN)|g' \
		-e 's|__configdir__|$(XINITDIR)|g'


# String replacements in MAN_SUBSTS now come from xorg-macros.m4 via configure
.man.$(APP_MAN_SUFFIX):
	$(AM_V_GEN)$(SED) $(MAN_SUBSTS) < $< > $@