source: skype/Makefile @ 5365f84

Last change on this file since 5365f84 was 16304ab, checked in by Miklos Vajna <vmiklos@…>, at 2009-01-07T02:31:20Z

add a check target

  • 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
[16304ab]50# take this from the kernel
51check:
52        perl checkpatch.pl --no-tree --file skype.c
53
[05c1bed]54dist:
[68796a1]55        git archive --format=tar --prefix=bitlbee-skype-$(VERSION)/ HEAD | tar xf -
[05c1bed]56        mkdir -p bitlbee-skype-$(VERSION)
57        git log --no-merges |git name-rev --tags --stdin > bitlbee-skype-$(VERSION)/Changelog
[afeb517]58        make -C bitlbee-skype-$(VERSION) autogen
[1c3f19f]59        tar czf bitlbee-skype-$(VERSION).tar.gz bitlbee-skype-$(VERSION)
[05c1bed]60        rm -rf bitlbee-skype-$(VERSION)
61
62release:
63        git tag $(VERSION)
64        $(MAKE) dist
[3839517]65        gpg --comment "See http://vmiklos.hu/gpg/ for info" \
66                -ba bitlbee-skype-$(VERSION).tar.gz
[05c1bed]67
[e23a46e]68doc: HEADER.html Changelog
[d1c9e35]69
[ff99090]70HEADER.html: README Makefile
[71dd27d]71        asciidoc -a toc -a numbered -a sectids -o HEADER.html README
[3b495c0]72        sed -i 's|@VERSION@|$(VERSION)|g' HEADER.html
[1f59f2f]73        sed -i 's|@BITLBEE_VERSION@|$(BITLBEE_VERSION)|g' HEADER.html
[e23a46e]74
75Changelog: .git/refs/heads/master
[7e600c9]76        git log --no-merges |git name-rev --tags --stdin >Changelog
Note: See TracBrowser for help on using the repository browser.