-
Notifications
You must be signed in to change notification settings - Fork 0
/
common.am
74 lines (58 loc) · 1.94 KB
/
common.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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
# settings common to all Makefile.ams
javascriptsdir = $(pkgdatadir)/javascripts
stylesheetsdir = $(pkgdatadir)/stylesheets
stylesheets_imagesdir = $(pkgdatadir)/stylesheets/images
# top_builddir/src/ is needed for generated src/config.h and src/xstd/h/stdint.h
AM_CPPFLAGS = \
-DDATA_DIR=\"$(pkgdatadir)\" \
-I$(top_builddir)/src \
-I$(top_srcdir)/src
#AM_LDFLAGS =
#imported_libs =
if ENABLE_MANPAGES_GEN
manpages-am: @top_srcdir@/common.h2m
@for binary in $(bin_PROGRAMS) $(dist_bin_SCRIPTS); do \
echo "Generating manpage for $$binary"; \
manpage=`echo -n "$$binary" | sed -e 's/\..*//'`; \
name=`(grep \
--after-context=1 \
".B \\\\\%polygraph-$$manpage" \
'@top_srcdir@/polygraph.man.in' || \
echo -n ' a part of Web Polygraph performance benchmark') | \
tail -1 | cut -c4-`; \
$(HELP2MAN) \
--no-info \
--name="$$name" \
--version-string="polygraph-$$manpage - $(PACKAGE_NAME)" \
--include='@top_srcdir@/common.h2m' \
--opt-include="$$manpage.h2m" \
--output="$$manpage.man" \
"./$$binary";\
done
@if test 'x$(RECURSIVE_TARGETS)' != 'xmanpages-recursive' ; then \
$(MAKE) \
$(AM_MAKEFLAGS) \
RECURSIVE_TARGETS=manpages-recursive \
manpages-recursive; \
fi
manpages-recursive:
manpages: Makefile $(LIBRARIES) $(PROGRAMS) manpages-am manpages-recursive
manpagesclean-am:
@rm -f $(dist_man1_MANS)
@if test 'x$(RECURSIVE_TARGETS)' != 'xmanpagesclean-recursive' ; then \
$(MAKE) \
$(AM_MAKEFLAGS) \
RECURSIVE_TARGETS=manpagesclean-recursive \
manpagesclean-recursive; \
fi
manpagesclean-recursive:
manpagesclean: manpagesclean-am manpagesclean-recursive
.PHONY: manpages-am manpages-recursive manpages \
manpagesclean-am manpagesclean-recursive manpagesclean
else
manpages:
@echo "Can not generate man pages. Please install help2man and reconfigure."
manpagesclean:
@echo "Can not generate man pages. Please install help2man and reconfigure."
.PHONY: manpages manpagesclean
endif