source: skype/Makefile @ 3129b99

Last change on this file since 3129b99 was 843fbc9, checked in by Miklos Vajna <vmiklos@…>, at 2009-09-27T11:29:09Z

updates for 0.8.0

  • Property mode set to 100644
File size: 2.2 KB
Line 
1-include config.mak
2
3VERSION = 0.8.0
4DATE := $(shell date +%Y-%m-%d)
5# latest stable
6BITLBEE_VERSION = 1.2.3
7
8AMPATH = $(shell grep automake- $(shell which automake)|sed "s|.*'\(.*\)';|\1|")
9
10ifeq ($(BITLBEE),yes)
11all: skype.$(SHARED_EXT) skyped.1
12else
13all: skyped.1
14endif
15
16skype.$(SHARED_EXT): skype.c config.mak
17ifeq ($(BITLBEE),yes)
18        $(CC) $(CFLAGS) $(SHARED_FLAGS) -o skype.$(SHARED_EXT) skype.c $(LDFLAGS)
19endif
20
21install: all
22ifeq ($(BITLBEE),yes)
23        $(INSTALL) -d $(DESTDIR)$(plugindir)
24        $(INSTALL) skype.$(SHARED_EXT) $(DESTDIR)$(plugindir)
25endif
26ifeq ($(SKYPE4PY),yes)
27        $(INSTALL) -d $(DESTDIR)$(bindir)
28        $(INSTALL) -d $(DESTDIR)$(sysconfdir)
29        $(INSTALL) skyped.py $(DESTDIR)$(bindir)/skyped
30        perl -p -i -e 's|/usr/local/etc/skyped|$(sysconfdir)|' $(DESTDIR)$(bindir)/skyped
31        $(INSTALL) -m644 skyped.conf.dist $(DESTDIR)$(sysconfdir)/skyped.conf
32        perl -p -i -e 's|\$${prefix}|$(prefix)|' $(DESTDIR)$(sysconfdir)/skyped.conf
33        $(INSTALL) -m644 skyped.cnf $(DESTDIR)$(sysconfdir)
34endif
35
36client: client.c
37
38autogen: configure.ac
39        cp $(AMPATH)/install-sh ./
40        autoconf
41
42clean:
43        rm -f skype.$(SHARED_EXT)
44
45distclean: clean
46        rm -f config.log config.mak config.status
47
48autoclean: distclean
49        rm -rf aclocal.m4 autom4te.cache configure install-sh
50
51# take this from the kernel
52check:
53        perl checkpatch.pl --no-tree --file skype.c
54
55dist:
56        git archive --format=tar --prefix=bitlbee-skype-$(VERSION)/ HEAD | tar xf -
57        mkdir -p bitlbee-skype-$(VERSION)
58        git log --no-merges |git name-rev --tags --stdin > bitlbee-skype-$(VERSION)/Changelog
59        make -C bitlbee-skype-$(VERSION) autogen
60        tar czf bitlbee-skype-$(VERSION).tar.gz bitlbee-skype-$(VERSION)
61        rm -rf bitlbee-skype-$(VERSION)
62
63release:
64        git tag $(VERSION)
65        $(MAKE) dist
66        gpg --comment "See http://vmiklos.hu/gpg/ for info" \
67                -ba bitlbee-skype-$(VERSION).tar.gz
68
69doc: HEADER.html Changelog
70
71HEADER.html: README Makefile
72        asciidoc -a toc -a numbered -a sectids -o HEADER.html README
73        sed -i 's|@VERSION@|$(VERSION)|g' HEADER.html
74        sed -i 's|@BITLBEE_VERSION@|$(BITLBEE_VERSION)|g' HEADER.html
75
76Changelog: .git/refs/heads/master
77        git log --no-merges |git name-rev --tags --stdin >Changelog
78
79%.1: %.txt asciidoc.conf
80        a2x --asciidoc-opts="-f asciidoc.conf" \
81                -a bs_version=$(VERSION) -a bs_date=$(DATE) -f manpage $<
Note: See TracBrowser for help on using the repository browser.