File: Makefile

package info (click to toggle)
ircmarkers 0.14-2
  • links: PTS, VCS
  • area: main
  • in suites: squeeze, wheezy
  • size: 160 kB
  • ctags: 69
  • sloc: perl: 704; ansic: 199; makefile: 71
file content (46 lines) | stat: -rw-r--r-- 1,471 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
NAME=ircmarkers
INSTALL_PROGRAMM=install
#DEBUG=-DDEBUG
VERSION=$(shell dpkg-parsechangelog 2>&1 | perl -ne 'print $$1 if /^Version: ([^-]*)/')
TGZ=$(NAME)_$(VERSION).orig.tar.gz
TGZ_DIR=$(NAME)-$(VERSION)

all: overlap ircmarkers.1

overlap: overlap.c
	gcc -g -O2 -Wall $(DEBUG) -o overlap overlap.c

ircmarkers.1: ircmarkers
	pod2man --release="$(NAME)" --center="User Documentation" $< > $@

ircmarkers.man: ircmarkers.1
	nroff -man $< > $@

ircmarkers.html: ircmarkers
	pod2html --title="$<" $< > $@

install: overlap ircmarkers.1
	$(INSTALL_PROGRAMM) -D ircmarkers $(DESTDIR)/usr/bin/ircmarkers
	$(INSTALL_PROGRAMM) -D -m 664 IrcMarkers/File.pm $(DESTDIR)/usr/share/perl5/IrcMarkers/File.pm
	$(INSTALL_PROGRAMM) -D -m 664 IrcMarkers/Map.pm  $(DESTDIR)/usr/share/perl5/IrcMarkers/Map.pm
	$(INSTALL_PROGRAMM) -D overlap $(DESTDIR)/usr/lib/ircmarkers/overlap
	$(INSTALL_PROGRAMM) -D -m 664 fixed_01.ttf $(DESTDIR)/usr/share/ircmarkers/fixed_01.ttf
	$(INSTALL_PROGRAMM) -D -m 664 ircmarkers.1 $(DESTDIR)/usr/share/man/man1/ircmarkers.1

tags:
	ctags ircmarkers IrcMarkers/*.pm overlap.c

clean:
	rm -f overlap ircmarkers.1 ircmarkers.man ircmarkers.html tags pod2htm* example.jpg

dist:
	[ ! -f ../$(TGZ) ]
	[ -d debian ] && fakeroot debian/rules clean
	mkdir ../$(TGZ_DIR)
	cp -a . ../$(TGZ_DIR)
	rm -rf ../$(TGZ_DIR)/debian
	find ../$(TGZ_DIR) -name .svn | xargs rm -rf
	cd .. && tar cvz -f $(TGZ) $(TGZ_DIR)
	rm -rf ../$(TGZ_DIR)

.PHONY: all install tags clean dist