source: skype/Makefile @ a317ba6

Last change on this file since a317ba6 was df13c25, checked in by Miklos Vajna <vmiklos@…>, at 2008-03-14T21:44:02Z

avoid ${prefix} in skyped.conf

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