source: skype/Makefile @ 56d88ba

Last change on this file since 56d88ba was b414e30, checked in by Miklos Vajna <vmiklos@…>, at 2008-09-05T19:54:46Z

fix skyped-only install

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