| 1 |
# |
| 2 |
# Makefile for pedigree |
| 3 |
# $Id: Makefile,v 2.3 2022/08/29 03:04:29 boris Exp $ |
| 4 |
# |
| 5 |
# This file is in public domain |
| 6 |
# |
| 7 |
|
| 8 |
PREFIX = /usr/local |
| 9 |
|
| 10 |
PERLSCRIPTS=pedigree.pl |
| 11 |
|
| 12 |
PERLLIBS = \ |
| 13 |
Pedigree.pm |
| 14 |
|
| 15 |
MANPAGES1=${PERLSCRIPTS:%.pl=%.1} |
| 16 |
MANPAGES3=${PERLLIBS:%.pm=%.3} |
| 17 |
|
| 18 |
|
| 19 |
all: man |
| 20 |
cd Pedigree; ${MAKE} $@ |
| 21 |
|
| 22 |
man: ${MANPAGES1} ${MANPAGES3} |
| 23 |
|
| 24 |
docs: |
| 25 |
cd doc; ${MAKE} all |
| 26 |
|
| 27 |
install: all |
| 28 |
install pedigree.pl $(PREFIX)/bin/pedigree |
| 29 |
mkdir -p $(PREFIX)/lib/site_perl |
| 30 |
install -m 644 ${PERLLIBS} $(PREFIX)/lib/site_perl |
| 31 |
cd Pedigree; ${MAKE} $@ |
| 32 |
|
| 33 |
installman: |
| 34 |
install -m 644 pedigree.1 $(PREFIX)/man/man1 |
| 35 |
for x in ${MANPAGES3}; do install -m 644 $$x $(PREFIX)/man/man3/$$x; done |
| 36 |
cd Pedigree; ${MAKE} $@ |
| 37 |
|
| 38 |
%.1: %.pl |
| 39 |
pod2man --section=1 -n $* -s 1 $< $@ |
| 40 |
|
| 41 |
%.3: %.pm |
| 42 |
pod2man --section=3 -n $* -s 3 $< $@ |
| 43 |
|
| 44 |
clean: |
| 45 |
cd doc; ${MAKE} $@ |
| 46 |
cd Pedigree; ${MAKE} $@ |
| 47 |
|
| 48 |
distclean: clean |
| 49 |
$(RM) ${MANPAGES1} ${MANPAGES3} |
| 50 |
cd doc; ${MAKE} $@ |
| 51 |
cd Pedigree; ${MAKE} $@ |
| 52 |
|
| 53 |
# |
| 54 |
# Archive for the distribution. Includes typeset documentation and man pages |
| 55 |
# |
| 56 |
archive: all docs clean |
| 57 |
COPYFILE_DISABLE=1 tar -czvf pedigree.tgz --exclude '*~' --exclude '*.tgz' --exclude CVS . |