[bff265c] | 1 | -include config.mak |
---|
[f06e3ac] | 2 | |
---|
[32ba371] | 3 | VERSION = 0.8.3 |
---|
[398eb78] | 4 | DATE := $(shell date +%Y-%m-%d) |
---|
[68c162b] | 5 | # latest stable |
---|
[dbbf34a] | 6 | BITLBEE_VERSION = 1.2.7 |
---|
[05c1bed] | 7 | |
---|
[cc7a153] | 8 | ifeq ($(ASCIIDOC),yes) |
---|
| 9 | MANPAGES = skyped.1 |
---|
| 10 | else |
---|
| 11 | MANPAGES = |
---|
| 12 | endif |
---|
| 13 | |
---|
[93f4dac] | 14 | ifeq ($(BITLBEE),yes) |
---|
[cc7a153] | 15 | LIBS = skype.$(SHARED_EXT) |
---|
[93f4dac] | 16 | else |
---|
[cc7a153] | 17 | LIBS = |
---|
[93f4dac] | 18 | endif |
---|
| 19 | |
---|
[cc7a153] | 20 | all: $(LIBS) $(MANPAGES) |
---|
| 21 | |
---|
[df1a59d4] | 22 | skype.$(SHARED_EXT): skype.c config.mak |
---|
[752a591] | 23 | ifeq ($(BITLBEE),yes) |
---|
[df1a59d4] | 24 | $(CC) $(CFLAGS) $(SHARED_FLAGS) -o skype.$(SHARED_EXT) skype.c $(LDFLAGS) |
---|
[752a591] | 25 | endif |
---|
[f06e3ac] | 26 | |
---|
[93f4dac] | 27 | install: all |
---|
[65acff8] | 28 | ifeq ($(ASCIIDOC),yes) |
---|
| 29 | $(INSTALL) -d $(DESTDIR)$(mandir)/man1 |
---|
| 30 | $(INSTALL) -m644 $(MANPAGES) $(DESTDIR)$(mandir)/man1 |
---|
| 31 | endif |
---|
[752a591] | 32 | ifeq ($(BITLBEE),yes) |
---|
[bbf1050] | 33 | $(INSTALL) -d $(DESTDIR)$(plugindir) |
---|
[69939608] | 34 | $(INSTALL) skype.$(SHARED_EXT) $(DESTDIR)$(plugindir) |
---|
[752a591] | 35 | endif |
---|
[b414e30] | 36 | ifeq ($(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] | 44 | endif |
---|
[bbf1050] | 45 | |
---|
[dfec37e] | 46 | client: client.c |
---|
| 47 | |
---|
[afeb517] | 48 | autogen: configure.ac |
---|
[ceed953] | 49 | cp $(shell ls /usr/share/automake-*/install-sh | tail -n1) ./ |
---|
[bff265c] | 50 | autoconf |
---|
| 51 | |
---|
[f06e3ac] | 52 | clean: |
---|
[ac423d0] | 53 | rm -f $(LIBS) $(MANPAGES) |
---|
[0c60f96] | 54 | |
---|
[bff265c] | 55 | distclean: clean |
---|
[e06f408] | 56 | rm -f config.log config.mak config.status |
---|
| 57 | |
---|
| 58 | autoclean: distclean |
---|
| 59 | rm -rf aclocal.m4 autom4te.cache configure install-sh |
---|
[bff265c] | 60 | |
---|
[16304ab] | 61 | # take this from the kernel |
---|
| 62 | check: |
---|
| 63 | perl checkpatch.pl --no-tree --file skype.c |
---|
| 64 | |
---|
[05c1bed] | 65 | dist: |
---|
[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 | |
---|
| 73 | release: |
---|
| 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] | 79 | doc: HEADER.html Changelog |
---|
[d1c9e35] | 80 | |
---|
[ff99090] | 81 | HEADER.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 | |
---|
| 86 | Changelog: .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 $< |
---|