summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
Diffstat (limited to 'doc')
-rw-r--r--doc/Makefile.am13
-rw-r--r--doc/makepkg.conf.5.txt12
2 files changed, 23 insertions, 2 deletions
diff --git a/doc/Makefile.am b/doc/Makefile.am
index fcbcab88..d2f6b35a 100644
--- a/doc/Makefile.am
+++ b/doc/Makefile.am
@@ -66,6 +66,12 @@ else
REAL_PACKAGE_VERSION = $(PACKAGE_VERSION)
endif
+#### Taken from the autoconf scripts Makefile.am ####
+edit = sed \
+ -e 's|@STRIP_BINARIES[@]|$(STRIP_BINARIES)|g' \
+ -e 's|@STRIP_SHARED[@]|$(STRIP_SHARED)|g' \
+ -e 's|@STRIP_STATIC[@]|$(STRIP_STATIC)|g'
+
man_MANS =
dist_man_MANS = $(ASCIIDOC_MANS) repo-remove.8
@@ -93,8 +99,11 @@ A2X_OPTS = \
--xsltproc-opts='-param man.endnotes.list.enabled 0 -param man.endnotes.are.numbered 0'
# These rules are due to the includes and files of the asciidoc text
-$(ASCIIDOC_MANS): asciidoc.conf footer.txt
- a2x $(A2X_OPTS) --asciidoc-opts="$(ASCIIDOC_OPTS)" $@.txt
+$(ASCIIDOC_MANS): asciidoc.conf footer.txt Makefile
+ @echo GEN $@;
+ @test -f $(srcdir)/$@.txt && $(edit) $(srcdir)/$@.txt >$@.tmp || true
+ a2x $(A2X_OPTS) --asciidoc-opts="$(ASCIIDOC_OPTS)" $@.tmp
+ @rm -f $@.tmp
%.html: %.txt
asciidoc $(ASCIIDOC_OPTS) -a linkcss $*.txt
diff --git a/doc/makepkg.conf.5.txt b/doc/makepkg.conf.5.txt
index d8ee86b3..55e71cc7 100644
--- a/doc/makepkg.conf.5.txt
+++ b/doc/makepkg.conf.5.txt
@@ -135,6 +135,18 @@ Options
affects both generation and checking. The current valid options are:
`md5`, `sha1`, `sha256`, `sha384`, and `sha512`.
+**STRIP_BINARIES=**"@STRIP_BINARIES@"::
+ Options to be used when stripping binaries. See `strip''s man page
+ for details.
+
+**STRIP_SHARED=**"@STRIP_SHARED@"::
+ Options to be used when stripping shared libraries. See `strip''s
+ man page for details.
+
+**STRIP_STATIC=**"@STRIP_STATIC@"::
+ Options to be used when stripping static libraries. See `strip''s
+ man page for details.
+
**MAN_DIRS=(**{usr{,/local}{,/share},opt/*}/{man,info} ...**)**::
If `zipman` is specified in the OPTIONS array, this variable will
instruct makepkg where to look to compress manual (man and info)