Debian Codegraph @

Makefile

raw
1 # Makefile for glark
2 # Borrowed/copied from ESR.
3
4 PACKAGE=cvsdelta
5 VERSION=1.7.0
6
7 prefix=/usr
8 mandir=$(prefix)/share/man
9 bindir=$(prefix)/bin
10
11 DOCS = $(PACKAGE).1 $(PACKAGE).pod
12 SOURCES = $(PACKAGE) Makefile $(DOCS) $(PACKAGE).spec
13
14 all:
15
16 install: $(PACKAGE).1
17 mkdir -p $(DESTDIR)$(bindir)
18 mkdir -p $(DESTDIR)$(mandir)/man1
19 cp -p $(PACKAGE) $(DESTDIR)$(bindir)
20 # gzipping the man page conflicts with Mandrake, which bzips it:
21 # gzip <$(PACKAGE).1 >$(DESTDIR)$(mandir)/man1/$(PACKAGE).1.gz
22 cp -p $(PACKAGE).1 $(DESTDIR)$(mandir)/man1/$(PACKAGE).1
23
24 uninstall:
25 rm -f $(DESTDIR)$(bindir)/$(PACKAGE)
26 -rm -f $(DESTDIR)$(mandir)/man1/$(PACKAGE).1*
27 -rm -f $(DESTDIR)$(prefix)/man/man1/glark.1*
28
29 # Builds the man page from the POD-format documentation.
30 $(PACKAGE).1: $(PACKAGE).pod
31 pod2man --release "$(PACKAGE) $(VERSION)" \
32 --center "$(PACKAGE) $(VERSION)" \
33 $^ > $@
34
35 $(PACKAGE)-$(VERSION).tar.gz: $(SOURCES)
36 @mkdir $(PACKAGE)-$(VERSION)
37 @cp $(SOURCES) $(PACKAGE)-$(VERSION)
38 @tar -czf $(PACKAGE)-$(VERSION).tar.gz $(PACKAGE)-$(VERSION)
39 @rm -fr $(PACKAGE)-$(VERSION)
40
41 dist: $(PACKAGE)-$(VERSION).tar.gz
42
43 # The following rules are not for public use.
44
45 # Builds the HTML version of the man page.
46 doc/www/$(PACKAGE).html: $(PACKAGE).pod
47 pod2html --noindex --verbose --css=$(PACKAGE)man.css $^ > $@