Last change
on this file since 2533d10 was
a85a8ab,
checked in by dequis <dx@…>, at 2015-02-23T04:50:32Z
|
Add --doc= configure option to disable helpfile generation
It will get disabled automatically if the deps (xmlto and xsltproc)
are missing
Also added checks for asciidoc (a2x) for the skype plugin, which needs
it for the skyped man page, and will also get that disabled if --doc=0
is passed or if asciidoc isn't installed.
This should keep those ugly deps under control for now.
I'd like to replace them at some point with something less dumb.
|
-
Property mode set to
100644
|
File size:
742 bytes
|
Line | |
---|
1 | -include ../../Makefile.settings |
---|
2 | ifdef _SRCDIR_ |
---|
3 | _SRCDIR_ := $(_SRCDIR_)protocols/skype/ |
---|
4 | endif |
---|
5 | |
---|
6 | DATE := $(shell date +%Y-%m-%d) |
---|
7 | INSTALL = install |
---|
8 | |
---|
9 | |
---|
10 | ifdef ASCIIDOC |
---|
11 | MANPAGES = skyped.1 |
---|
12 | else |
---|
13 | MANPAGES = |
---|
14 | endif |
---|
15 | |
---|
16 | all: $(MANPAGES) |
---|
17 | |
---|
18 | clean: |
---|
19 | rm -f $(MANPAGES) |
---|
20 | |
---|
21 | # take this from the kernel |
---|
22 | check: |
---|
23 | perl checkpatch.pl --show-types --ignore LONG_LINE,CAMELCASE --no-tree --file skype.c |
---|
24 | |
---|
25 | test: all |
---|
26 | ./test.py |
---|
27 | |
---|
28 | doc: $(MANPAGES) |
---|
29 | |
---|
30 | install-doc: doc |
---|
31 | ifdef ASCIIDOC |
---|
32 | $(INSTALL) -d $(DESTDIR)$(MANDIR)/man1 |
---|
33 | $(INSTALL) -m644 $(MANPAGES) $(DESTDIR)$(MANDIR)/man1 |
---|
34 | endif |
---|
35 | |
---|
36 | uninstall-doc: |
---|
37 | rm -f $(DESTDIR)$(MANDIR)/man1/skyped.1* |
---|
38 | |
---|
39 | %.1: $(_SRCDIR_)%.txt $(_SRCDIR_)asciidoc.conf |
---|
40 | a2x --asciidoc-opts="-f $(_SRCDIR_)asciidoc.conf" -a bee_date=$(DATE) -f manpage -D . $< |
---|
Note: See
TracBrowser
for help on using the repository browser.