-
Notifications
You must be signed in to change notification settings - Fork 12
/
Makefile.am
33 lines (26 loc) · 1.05 KB
/
Makefile.am
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
SUBDIRS=src
man_MANS=stalonetray.1
doc_DIST=stalonetrayrc.sample
if have_xsltproc
doc_DIST+=stalonetray.1 stalonetray.xml stalonetray.html
dist_hook: stalonetray.1 stalonetray.html
endif
all-local: $(doc_DIST)
clean-local:
rm -f $(doc_DIST)
EXTRA_DIST=$(doc_DIST) stalonetray.spec stalonetray.xml.in stalonetrayrc.sample.in # $(debian_DIST)
MAINTAINERCLEANFILES=stalonetray.1 stalonetray.html stalonetray.spec stalonetray.xml stalonetrayrc.sample
stalonetray.xml: stalonetray.xml.in configure.ac
stalonetrayrc.sample: stalonetrayrc.sample.in configure.ac
stalonetray.spec: stalonetray.spec.in configure.ac
stalonetray.xml \
stalonetrayrc.sample \
stalonetray.spec:
VERSION_STR=`echo @VERSION@ | sed 's/\([^\.]*\.[^\.]*\)\..*/\1/'`; \
cat $< | sed "s/@VERSION_STR@/$$VERSION_STR/g" > $@
if have_xsltproc
stalonetray.1: stalonetray.xml
$(XSLTPROC) $(XSLTPROC_FLAGS) -o $@ $(DOCBOOK_ROOT)/manpages/docbook.xsl stalonetray.xml
stalonetray.html: stalonetray.xml
$(XSLTPROC) $(XSLTPROC_FLAGS) -o $@ $(DOCBOOK_ROOT)/xhtml/docbook.xsl stalonetray.xml 2>/dev/null
endif