source: skype/Makefile @ 6774d83

Last change on this file since 6774d83 was c47e566, checked in by Miklos Vajna <vmiklos@…>, at 2008-02-23T02:44:56Z

updates for 0.3.2

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