source: skype/Makefile @ a25bddf

Last change on this file since a25bddf was c9348c4, checked in by Miklos Vajna <vmiklos@…>, at 2009-04-29T17:27:48Z

updates for 0.7.2

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