source: skype/Makefile @ 9580a6f

Last change on this file since 9580a6f was 5258dcc9, checked in by Miklos Vajna <vmiklos@…>, at 2009-01-07T00:35:14Z

updates for 0.7.0

  • Property mode set to 100644
File size: 2.0 KB
RevLine 
[bff265c]1-include config.mak
[f06e3ac]2
[5258dcc9]3VERSION = 0.7.0
[68c162b]4# latest stable
5BITLBEE_VERSION = 1.2.3
[05c1bed]6
[c1bf7c5]7AMPATH = $(shell grep automake- $(shell which automake)|sed "s|.*'\(.*\)';|\1|")
[3fd8b71]8
[93f4dac]9ifeq ($(BITLBEE),yes)
10all: skype.$(SHARED_EXT)
11else
12all:
13endif
14
[df1a59d4]15skype.$(SHARED_EXT): skype.c config.mak
[752a591]16ifeq ($(BITLBEE),yes)
[df1a59d4]17        $(CC) $(CFLAGS) $(SHARED_FLAGS) -o skype.$(SHARED_EXT) skype.c $(LDFLAGS)
[752a591]18endif
[f06e3ac]19
[93f4dac]20install: all
[752a591]21ifeq ($(BITLBEE),yes)
[bbf1050]22        $(INSTALL) -d $(DESTDIR)$(plugindir)
[69939608]23        $(INSTALL) skype.$(SHARED_EXT) $(DESTDIR)$(plugindir)
[752a591]24endif
[b414e30]25ifeq ($(SKYPE4PY),yes)
[f080961]26        $(INSTALL) -d $(DESTDIR)$(bindir)
[a3262d1e]27        $(INSTALL) -d $(DESTDIR)$(sysconfdir)
[f080961]28        $(INSTALL) skyped.py $(DESTDIR)$(bindir)/skyped
[12e1162]29        perl -p -i -e 's|/usr/local/etc/skyped|$(sysconfdir)|' $(DESTDIR)$(bindir)/skyped
[a3262d1e]30        $(INSTALL) -m644 skyped.conf.dist $(DESTDIR)$(sysconfdir)/skyped.conf
[12e1162]31        perl -p -i -e 's|\$${prefix}|$(prefix)|' $(DESTDIR)$(sysconfdir)/skyped.conf
[55664fc]32        $(INSTALL) -m644 skyped.cnf $(DESTDIR)$(sysconfdir)
[69939608]33endif
[bbf1050]34
[dfec37e]35client: client.c
36
[afeb517]37autogen: configure.ac
[c1bf7c5]38        cp $(AMPATH)/install-sh ./
[bff265c]39        autoconf
40
[f06e3ac]41clean:
[df1a59d4]42        rm -f skype.$(SHARED_EXT)
[0c60f96]43
[bff265c]44distclean: clean
[e06f408]45        rm -f config.log config.mak config.status
46
47autoclean: distclean
48        rm -rf aclocal.m4 autom4te.cache configure install-sh
[bff265c]49
[05c1bed]50dist:
[68796a1]51        git archive --format=tar --prefix=bitlbee-skype-$(VERSION)/ HEAD | tar xf -
[05c1bed]52        mkdir -p bitlbee-skype-$(VERSION)
53        git log --no-merges |git name-rev --tags --stdin > bitlbee-skype-$(VERSION)/Changelog
[afeb517]54        make -C bitlbee-skype-$(VERSION) autogen
[1c3f19f]55        tar czf bitlbee-skype-$(VERSION).tar.gz bitlbee-skype-$(VERSION)
[05c1bed]56        rm -rf bitlbee-skype-$(VERSION)
57
58release:
59        git tag $(VERSION)
60        $(MAKE) dist
[3839517]61        gpg --comment "See http://vmiklos.hu/gpg/ for info" \
62                -ba bitlbee-skype-$(VERSION).tar.gz
[05c1bed]63
[e23a46e]64doc: HEADER.html Changelog
[d1c9e35]65
[ff99090]66HEADER.html: README Makefile
[71dd27d]67        asciidoc -a toc -a numbered -a sectids -o HEADER.html README
[3b495c0]68        sed -i 's|@VERSION@|$(VERSION)|g' HEADER.html
[1f59f2f]69        sed -i 's|@BITLBEE_VERSION@|$(BITLBEE_VERSION)|g' HEADER.html
[e23a46e]70
71Changelog: .git/refs/heads/master
[7e600c9]72        git log --no-merges |git name-rev --tags --stdin >Changelog
Note: See TracBrowser for help on using the repository browser.