source: skype/Makefile @ 1f59f2f

Last change on this file since 1f59f2f was 1f59f2f, checked in by Miklos Vajna <vmiklos@…>, at 2008-08-15T16:08:53Z

fix bitlbee compile instructions

  • 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.1
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) -d $(DESTDIR)$(bindir)
15        $(INSTALL) -d $(DESTDIR)$(sysconfdir)
16        $(INSTALL) skype.$(SHARED_EXT) $(DESTDIR)$(plugindir)
17        $(INSTALL) skyped.py $(DESTDIR)$(bindir)/skyped
18        sed -i 's|/usr/local/etc/skyped|$(sysconfdir)|' $(DESTDIR)$(bindir)/skyped
19        $(INSTALL) -m644 skyped.conf.dist $(DESTDIR)$(sysconfdir)/skyped.conf
20        sed -i 's|$${prefix}|$(prefix)|' $(DESTDIR)$(sysconfdir)/skyped.conf
21        $(INSTALL) -m644 skyped.cnf $(DESTDIR)$(sysconfdir)
22
23client: client.c
24
25autogen: configure.ac
26        cp /usr/share/automake-$(AMVERSION)/install-sh ./
27        cp /usr/share/aclocal/pkg.m4 aclocal.m4
28        autoconf
29
30clean:
31        rm -f skype.$(SHARED_EXT)
32
33distclean: clean
34        rm -f config.log config.mak config.status
35
36autoclean: distclean
37        rm -rf aclocal.m4 autom4te.cache configure install-sh
38
39dist:
40        git archive --format=tar --prefix=bitlbee-skype-$(VERSION)/ HEAD | tar xf -
41        mkdir -p bitlbee-skype-$(VERSION)
42        git log --no-merges |git name-rev --tags --stdin > bitlbee-skype-$(VERSION)/Changelog
43        make -C bitlbee-skype-$(VERSION) autogen
44        tar czf bitlbee-skype-$(VERSION).tar.gz bitlbee-skype-$(VERSION)
45        rm -rf bitlbee-skype-$(VERSION)
46
47release:
48        git tag $(VERSION)
49        $(MAKE) dist
50        gpg --comment "See http://vmiklos.hu/gpg/ for info" \
51                -ba bitlbee-skype-$(VERSION).tar.gz
52
53doc: HEADER.html Changelog
54
55HEADER.html: README Makefile
56        asciidoc -a toc -a numbered -a sectids -o HEADER.html README
57        sed -i 's|@VERSION@|$(VERSION)|g' HEADER.html
58        sed -i 's|@BITLBEE_VERSION@|$(BITLBEE_VERSION)|g' HEADER.html
59
60Changelog: .git/refs/heads/master
61        git log --no-merges |git name-rev --tags --stdin >Changelog
Note: See TracBrowser for help on using the repository browser.