source: skype/Makefile @ 93f4dac

Last change on this file since 93f4dac was 93f4dac, checked in by Miklos Vajna <vmiklos@…>, at 2008-09-05T20:03:45Z

install: no longer depend on the plugin if its disabled

  • Property mode set to 100644
File size: 2.0 KB
Line 
1-include config.mak
2
3VERSION = 0.6.1
4# oldest supported one
5BITLBEE_VERSION = 1.2.2
6
7AMVERSION = $(shell automake --version|sed 's/.* //;s/\([0-9]\+\.[0-9]\+\)\.[0-9]\+/\1/;q')
8
9ifeq ($(BITLBEE),yes)
10all: skype.$(SHARED_EXT)
11else
12all:
13endif
14
15skype.$(SHARED_EXT): skype.c config.mak
16ifeq ($(BITLBEE),yes)
17        $(CC) $(CFLAGS) $(SHARED_FLAGS) -o skype.$(SHARED_EXT) skype.c $(LDFLAGS)
18endif
19
20install: all
21ifeq ($(BITLBEE),yes)
22        $(INSTALL) -d $(DESTDIR)$(plugindir)
23        $(INSTALL) skype.$(SHARED_EXT) $(DESTDIR)$(plugindir)
24endif
25ifeq ($(SKYPE4PY),yes)
26        $(INSTALL) -d $(DESTDIR)$(bindir)
27        $(INSTALL) -d $(DESTDIR)$(sysconfdir)
28        $(INSTALL) skyped.py $(DESTDIR)$(bindir)/skyped
29        sed -i 's|/usr/local/etc/skyped|$(sysconfdir)|' $(DESTDIR)$(bindir)/skyped
30        $(INSTALL) -m644 skyped.conf.dist $(DESTDIR)$(sysconfdir)/skyped.conf
31        sed -i 's|$${prefix}|$(prefix)|' $(DESTDIR)$(sysconfdir)/skyped.conf
32        $(INSTALL) -m644 skyped.cnf $(DESTDIR)$(sysconfdir)
33endif
34
35client: client.c
36
37autogen: configure.ac
38        cp /usr/share/automake-$(AMVERSION)/install-sh ./
39        autoconf
40
41clean:
42        rm -f skype.$(SHARED_EXT)
43
44distclean: clean
45        rm -f config.log config.mak config.status
46
47autoclean: distclean
48        rm -rf aclocal.m4 autom4te.cache configure install-sh
49
50dist:
51        git archive --format=tar --prefix=bitlbee-skype-$(VERSION)/ HEAD | tar xf -
52        mkdir -p bitlbee-skype-$(VERSION)
53        git log --no-merges |git name-rev --tags --stdin > bitlbee-skype-$(VERSION)/Changelog
54        make -C bitlbee-skype-$(VERSION) autogen
55        tar czf bitlbee-skype-$(VERSION).tar.gz bitlbee-skype-$(VERSION)
56        rm -rf bitlbee-skype-$(VERSION)
57
58release:
59        git tag $(VERSION)
60        $(MAKE) dist
61        gpg --comment "See http://vmiklos.hu/gpg/ for info" \
62                -ba bitlbee-skype-$(VERSION).tar.gz
63
64doc: HEADER.html Changelog
65
66HEADER.html: README Makefile
67        asciidoc -a toc -a numbered -a sectids -o HEADER.html README
68        sed -i 's|@VERSION@|$(VERSION)|g' HEADER.html
69        sed -i 's|@BITLBEE_VERSION@|$(BITLBEE_VERSION)|g' HEADER.html
70
71Changelog: .git/refs/heads/master
72        git log --no-merges |git name-rev --tags --stdin >Changelog
Note: See TracBrowser for help on using the repository browser.