aboutsummaryrefslogtreecommitdiffstats
path: root/protocols/skype/Makefile
blob: 6548bfb91cb2106fc0b7ac44d19b6e14ec7ab7b2 (plain)
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
-include ../../Makefile.settings
ifdef _SRCDIR_
_SRCDIR_ := $(_SRCDIR_)protocols/skype/
endif

DATE := $(shell date +%Y-%m-%d)
INSTALL = install
ASCIIDOC = yes

ifeq ($(ASCIIDOC),yes)
MANPAGES = skyped.1
else
MANPAGES =
endif

all: $(MANPAGES)

clean:
	rm -f $(MANPAGES)

# take this from the kernel
check:
	perl checkpatch.pl --show-types --ignore LONG_LINE,CAMELCASE --no-tree --file skype.c

test: all
	./test.py

doc: $(MANPAGES)

install-doc: doc
ifeq ($(ASCIIDOC),yes)
	$(INSTALL) -d $(DESTDIR)$(MANDIR)/man1
	$(INSTALL) -m644 $(MANPAGES) $(DESTDIR)$(MANDIR)/man1
endif

uninstall-doc:
	rm -f $(DESTDIR)$(MANDIR)/man1/skyped.1*

%.1: $(_SRCDIR_)%.txt $(_SRCDIR_)asciidoc.conf
	a2x --asciidoc-opts="-f $(_SRCDIR_)asciidoc.conf" -a bee_date=$(DATE) -f manpage -D . $<