blob: 446d533238ea1a57509b089fe11cd62d4e685364 (
plain)
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
47
48
49
50
51
52
53
54
55
56
57
|
#
# Makefile for pedigree
# $Id: Makefile,v 2.2 2007-07-29 19:52:51 boris Exp $
#
# This file is in public domain
#
PREFIX = /usr/local
PERLSCRIPTS=pedigree.pl
PERLLIBS = \
Pedigree.pm
MANPAGES1=${PERLSCRIPTS:%.pl=%.1}
MANPAGES3=${PERLLIBS:%.pm=%.3}
all: man
cd Pedigree; ${MAKE} $@
man: ${MANPAGES1} ${MANPAGES3}
docs:
cd doc; ${MAKE} all
install: all
install pedigree.pl $(PREFIX)/bin/pedigree
mkdir -p $(PREFIX)/lib/site_perl
install -m 644 ${PERLLIBS} $(PREFIX)/lib/site_perl
cd Pedigree; ${MAKE} $@
installman:
install -m 644 pedigree.1 $(PREFIX)/man/man1
for x in ${MANPAGES3}; do install -m 644 $$x $(PREFIX)/man/man3/$$x; done
cd Pedigree; ${MAKE} $@
%.1: %.pl
pod2man --section=1 -n $* -s 1 $< $@
%.3: %.pm
pod2man --section=3 -n $* -s 3 $< $@
clean:
cd doc; ${MAKE} $@
cd Pedigree; ${MAKE} $@
distclean: clean
$(RM) ${MANPAGES1} ${MANPAGES3}
cd doc; ${MAKE} $@
cd Pedigree; ${MAKE} $@
#
# Archive for the distribution. Includes typeset documentation and man pages
#
archive: all docs clean
tar -czvf pedigree.tgz --exclude '*~' --exclude '*.tgz' --exclude CVS .
|