source: protocols/skype/Makefile @ 66911fc

Last change on this file since 66911fc was 43b1cd7, checked in by Miklos Vajna <vmiklos@…>, at 2011-04-12T00:10:57Z

Merge bitlbee-skype into bitlbee

  • Property mode set to 100644
File size: 2.5 KB
RevLine 
[bff265c]1-include config.mak
[f06e3ac]2
[bb0775c]3VERSION = 0.9.0
[398eb78]4DATE := $(shell date +%Y-%m-%d)
[68c162b]5# latest stable
[35249d6]6BITLBEE_VERSION = 3.0.1
[05c1bed]7
[cc7a153]8ifeq ($(ASCIIDOC),yes)
9MANPAGES = skyped.1
10else
11MANPAGES =
12endif
13
[93f4dac]14ifeq ($(BITLBEE),yes)
[cc7a153]15LIBS = skype.$(SHARED_EXT)
[93f4dac]16else
[cc7a153]17LIBS =
[93f4dac]18endif
19
[cc7a153]20all: $(LIBS) $(MANPAGES)
21
[df1a59d4]22skype.$(SHARED_EXT): skype.c config.mak
[752a591]23ifeq ($(BITLBEE),yes)
[df1a59d4]24        $(CC) $(CFLAGS) $(SHARED_FLAGS) -o skype.$(SHARED_EXT) skype.c $(LDFLAGS)
[752a591]25endif
[f06e3ac]26
[93f4dac]27install: all
[65acff8]28ifeq ($(ASCIIDOC),yes)
29        $(INSTALL) -d $(DESTDIR)$(mandir)/man1
30        $(INSTALL) -m644 $(MANPAGES) $(DESTDIR)$(mandir)/man1
31endif
[752a591]32ifeq ($(BITLBEE),yes)
[bbf1050]33        $(INSTALL) -d $(DESTDIR)$(plugindir)
[69939608]34        $(INSTALL) skype.$(SHARED_EXT) $(DESTDIR)$(plugindir)
[752a591]35endif
[b414e30]36ifeq ($(SKYPE4PY),yes)
[f080961]37        $(INSTALL) -d $(DESTDIR)$(bindir)
[a3262d1e]38        $(INSTALL) -d $(DESTDIR)$(sysconfdir)
[f080961]39        $(INSTALL) skyped.py $(DESTDIR)$(bindir)/skyped
[12e1162]40        perl -p -i -e 's|/usr/local/etc/skyped|$(sysconfdir)|' $(DESTDIR)$(bindir)/skyped
[a3262d1e]41        $(INSTALL) -m644 skyped.conf.dist $(DESTDIR)$(sysconfdir)/skyped.conf
[12e1162]42        perl -p -i -e 's|\$${prefix}|$(prefix)|' $(DESTDIR)$(sysconfdir)/skyped.conf
[55664fc]43        $(INSTALL) -m644 skyped.cnf $(DESTDIR)$(sysconfdir)
[69939608]44endif
[bbf1050]45
[dfec37e]46client: client.c
47
[afeb517]48autogen: configure.ac
[ceed953]49        cp $(shell ls /usr/share/automake-*/install-sh | tail -n1) ./
[bff265c]50        autoconf
51
[f06e3ac]52clean:
[ac423d0]53        rm -f $(LIBS) $(MANPAGES)
[0c60f96]54
[bff265c]55distclean: clean
[e06f408]56        rm -f config.log config.mak config.status
57
58autoclean: distclean
59        rm -rf aclocal.m4 autom4te.cache configure install-sh
[bff265c]60
[16304ab]61# take this from the kernel
62check:
63        perl checkpatch.pl --no-tree --file skype.c
64
[7279554]65test: all
66        $(MAKE) -C t/ all
67
[05c1bed]68dist:
[68796a1]69        git archive --format=tar --prefix=bitlbee-skype-$(VERSION)/ HEAD | tar xf -
[05c1bed]70        mkdir -p bitlbee-skype-$(VERSION)
71        git log --no-merges |git name-rev --tags --stdin > bitlbee-skype-$(VERSION)/Changelog
[afeb517]72        make -C bitlbee-skype-$(VERSION) autogen
[1c3f19f]73        tar czf bitlbee-skype-$(VERSION).tar.gz bitlbee-skype-$(VERSION)
[05c1bed]74        rm -rf bitlbee-skype-$(VERSION)
75
76release:
77        git tag $(VERSION)
78        $(MAKE) dist
[3839517]79        gpg --comment "See http://vmiklos.hu/gpg/ for info" \
80                -ba bitlbee-skype-$(VERSION).tar.gz
[05c1bed]81
[ab094d9]82doc: HEADER.html Changelog AUTHORS
[d1c9e35]83
[ff99090]84HEADER.html: README Makefile
[bb9a15f]85        asciidoc -a toc -a numbered -a sectids -o HEADER.html -a icons -a data-uri --attribute iconsdir=./images/icons README
[3b495c0]86        sed -i 's|@VERSION@|$(VERSION)|g' HEADER.html
[1f59f2f]87        sed -i 's|@BITLBEE_VERSION@|$(BITLBEE_VERSION)|g' HEADER.html
[e23a46e]88
89Changelog: .git/refs/heads/master
[7e600c9]90        git log --no-merges |git name-rev --tags --stdin >Changelog
[398eb78]91
[ab094d9]92AUTHORS: .git/refs/heads/master
93        git shortlog -s -n |sed 's/.*\t//'> AUTHORS
94
[398eb78]95%.1: %.txt asciidoc.conf
96        a2x --asciidoc-opts="-f asciidoc.conf" \
97                -a bs_version=$(VERSION) -a bs_date=$(DATE) -f manpage $<
Note: See TracBrowser for help on using the repository browser.