File: Makefile

package info (click to toggle)
loco 0.32-2
  • links: PTS
  • area: main
  • in suites: sarge, woody
  • size: 52 kB
  • ctags: 7
  • sloc: perl: 59; makefile: 59
file content (33 lines) | stat: -rw-r--r-- 767 bytes parent folder | download | duplicates (2)
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
PACKAGE=loco
VERSION=0.32
PREFIX=/usr/local
MANDIR=$(PREFIX)/man/man1
DOCDIR=$(PREFIX)/doc/$(PACKAGE)-$(VERSION)

check:
	perl -e 'eval "use Term::ANSIColor; 1" || die "Module not found!\n";'
	pod2html $(PACKAGE) > $(PACKAGE).html
	pod2man  $(PACKAGE) | gzip -9 - > $(PACKAGE).1.gz
	#
	# Checks finished. Everything looks fine
	#

install: installdoc installman installprogram

installdoc:
	install -m 755 -d $(DOCDIR)
	install -m 644 $(PACKAGE).html $(DOCDIR)
	install -m 644 README $(DOCDIR)
	install -m 644 COPYRIGHT $(DOCDIR)

installman:
	install -m 755 -d $(MANDIR)
	install -m 644 $(PACKAGE).1.gz $(MANDIR)

installprogram:
	install -m 755 -d $(PREFIX)/bin
	install -m 755 $(PACKAGE) $(PREFIX)/bin

clean:
	rm -f *~ $(PACKAGE).1.gz $(PACKAGE).html pod2html-*