source: skype/Makefile @ 7415989

Last change on this file since 7415989 was 12e1162, checked in by Miklos Vajna <vmiklos@…>, at 2008-09-06T01:35:25Z

use perl instead of sed to avoid portability issues on osx

  • Property mode set to 100644
File size: 2.0 KB
RevLine 
[bff265c]1-include config.mak
[f06e3ac]2
[0ec644d]3VERSION = 0.6.2
[1f59f2f]4# oldest supported one
[21978bc]5BITLBEE_VERSION = 1.2.2
[05c1bed]6
[5e21e06]7AMVERSION = $(shell automake --version|sed 's/.* //;s/\([0-9]\+\.[0-9]\+\)\.[0-9]\+/\1/;q')
[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
[3fd8b71]38        cp /usr/share/automake-$(AMVERSION)/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.