source: protocols/skype/Makefile @ d6acf79

Last change on this file since d6acf79 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
RevLine 
[5155570]1-include ../../Makefile.settings
[7fa5c19]2ifdef _SRCDIR_
3_SRCDIR_ := $(_SRCDIR_)protocols/skype/
[5155570]4endif
[f06e3ac]5
[398eb78]6DATE := $(shell date +%Y-%m-%d)
[e46db53]7INSTALL = install
[05c1bed]8
[a85a8ab]9
10ifdef ASCIIDOC
[cc7a153]11MANPAGES = skyped.1
12else
13MANPAGES =
14endif
15
[757e1e0]16all: $(MANPAGES)
[bff265c]17
[f06e3ac]18clean:
[757e1e0]19        rm -f $(MANPAGES)
[bff265c]20
[16304ab]21# take this from the kernel
22check:
[e1d6b38]23        perl checkpatch.pl --show-types --ignore LONG_LINE,CAMELCASE --no-tree --file skype.c
[16304ab]24
[7279554]25test: all
[650d2b4]26        ./test.py
[7279554]27
[e46db53]28doc: $(MANPAGES)
[5155570]29
[e46db53]30install-doc: doc
[a85a8ab]31ifdef ASCIIDOC
[e46db53]32        $(INSTALL) -d $(DESTDIR)$(MANDIR)/man1
33        $(INSTALL) -m644 $(MANPAGES) $(DESTDIR)$(MANDIR)/man1
34endif
[5155570]35
36uninstall-doc:
37        rm -f $(DESTDIR)$(MANDIR)/man1/skyped.1*
[d1c9e35]38
[7fa5c19]39%.1: $(_SRCDIR_)%.txt $(_SRCDIR_)asciidoc.conf
[757e1e0]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.