source: skype/Makefile @ 9c51166

Last change on this file since 9c51166 was 35249d6, checked in by Miklos Vajna <vmiklos@…>, at 2010-12-08T03:22:05Z

updates for 0.8.4

  • Property mode set to 100644
File size: 2.4 KB
RevLine 
[bff265c]1-include config.mak
[f06e3ac]2
[35249d6]3VERSION = 0.8.4
[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
[05c1bed]65dist:
[68796a1]66        git archive --format=tar --prefix=bitlbee-skype-$(VERSION)/ HEAD | tar xf -
[05c1bed]67        mkdir -p bitlbee-skype-$(VERSION)
68        git log --no-merges |git name-rev --tags --stdin > bitlbee-skype-$(VERSION)/Changelog
[afeb517]69        make -C bitlbee-skype-$(VERSION) autogen
[1c3f19f]70        tar czf bitlbee-skype-$(VERSION).tar.gz bitlbee-skype-$(VERSION)
[05c1bed]71        rm -rf bitlbee-skype-$(VERSION)
72
73release:
74        git tag $(VERSION)
75        $(MAKE) dist
[3839517]76        gpg --comment "See http://vmiklos.hu/gpg/ for info" \
77                -ba bitlbee-skype-$(VERSION).tar.gz
[05c1bed]78
[e23a46e]79doc: HEADER.html Changelog
[d1c9e35]80
[ff99090]81HEADER.html: README Makefile
[bb9a15f]82        asciidoc -a toc -a numbered -a sectids -o HEADER.html -a icons -a data-uri --attribute iconsdir=./images/icons README
[3b495c0]83        sed -i 's|@VERSION@|$(VERSION)|g' HEADER.html
[1f59f2f]84        sed -i 's|@BITLBEE_VERSION@|$(BITLBEE_VERSION)|g' HEADER.html
[e23a46e]85
86Changelog: .git/refs/heads/master
[7e600c9]87        git log --no-merges |git name-rev --tags --stdin >Changelog
[398eb78]88
89%.1: %.txt asciidoc.conf
90        a2x --asciidoc-opts="-f asciidoc.conf" \
91                -a bs_version=$(VERSION) -a bs_date=$(DATE) -f manpage $<
Note: See TracBrowser for help on using the repository browser.