source: skype/Makefile @ ef399c2

Last change on this file since ef399c2 was 69939608, checked in by Miklos Vajna <vmiklos@…>, at 2008-09-05T19:54:45Z

check for the skype4py python module and disable skyped if not available

  • Property mode set to 100644
File size: 1.9 KB
Line 
1-include config.mak
2
3VERSION = 0.6.0
4# oldest supported one
5BITLBEE_VERSION = 1.2.2
6
7AMVERSION = $(shell automake --version|sed 's/.* //;s/\([0-9]\+\.[0-9]\+\)\.[0-9]\+/\1/;q')
8
9skype.$(SHARED_EXT): skype.c config.mak
10        $(CC) $(CFLAGS) $(SHARED_FLAGS) -o skype.$(SHARED_EXT) skype.c $(LDFLAGS)
11
12install: skype.$(SHARED_EXT) skyped.py
13        $(INSTALL) -d $(DESTDIR)$(plugindir)
14        $(INSTALL) skype.$(SHARED_EXT) $(DESTDIR)$(plugindir)
15ifeq ($(SKYPED),yes)
16        $(INSTALL) -d $(DESTDIR)$(bindir)
17        $(INSTALL) -d $(DESTDIR)$(sysconfdir)
18        $(INSTALL) skyped.py $(DESTDIR)$(bindir)/skyped
19        sed -i 's|/usr/local/etc/skyped|$(sysconfdir)|' $(DESTDIR)$(bindir)/skyped
20        $(INSTALL) -m644 skyped.conf.dist $(DESTDIR)$(sysconfdir)/skyped.conf
21        sed -i 's|$${prefix}|$(prefix)|' $(DESTDIR)$(sysconfdir)/skyped.conf
22        $(INSTALL) -m644 skyped.cnf $(DESTDIR)$(sysconfdir)
23endif
24
25client: client.c
26
27autogen: configure.ac
28        cp /usr/share/automake-$(AMVERSION)/install-sh ./
29        cp /usr/share/aclocal/pkg.m4 aclocal.m4
30        autoconf
31
32clean:
33        rm -f skype.$(SHARED_EXT)
34
35distclean: clean
36        rm -f config.log config.mak config.status
37
38autoclean: distclean
39        rm -rf aclocal.m4 autom4te.cache configure install-sh
40
41dist:
42        git archive --format=tar --prefix=bitlbee-skype-$(VERSION)/ HEAD | tar xf -
43        mkdir -p bitlbee-skype-$(VERSION)
44        git log --no-merges |git name-rev --tags --stdin > bitlbee-skype-$(VERSION)/Changelog
45        make -C bitlbee-skype-$(VERSION) autogen
46        tar czf bitlbee-skype-$(VERSION).tar.gz bitlbee-skype-$(VERSION)
47        rm -rf bitlbee-skype-$(VERSION)
48
49release:
50        git tag $(VERSION)
51        $(MAKE) dist
52        gpg --comment "See http://vmiklos.hu/gpg/ for info" \
53                -ba bitlbee-skype-$(VERSION).tar.gz
54
55doc: HEADER.html Changelog
56
57HEADER.html: README Makefile
58        asciidoc -a toc -a numbered -a sectids -o HEADER.html README
59        sed -i 's|@VERSION@|$(VERSION)|g' HEADER.html
60        sed -i 's|@BITLBEE_VERSION@|$(BITLBEE_VERSION)|g' HEADER.html
61
62Changelog: .git/refs/heads/master
63        git log --no-merges |git name-rev --tags --stdin >Changelog
Note: See TracBrowser for help on using the repository browser.