1 |
NAME=bcd |
2 |
VERSION=3.7 |
3 |
PERL_VENDORLIB=$(shell eval "`perl -V:installvendorlib`"; echo $$installvendorlib) |
4 |
|
5 |
ALL= |
6 |
PM=Bcd.pm Common.pm Genisoimage.pm Isolinux.pm Media.pm Stagex.pm Resign.pm |
7 |
POD=${name}.pod |
8 |
|
9 |
all: man tex pdf |
10 |
|
11 |
clean: |
12 |
rm -rf *~ |
13 |
rm -rf BCD/*~ |
14 |
rm -rf lists/*~ |
15 |
rm -rf doc/*~ |
16 |
rm -rf ${NAME}.1.lzma |
17 |
cd doc && rm -rf *.toc *.out *.log *.aux |
18 |
|
19 |
cleandist: clean |
20 |
rm -rf $(NAME)-$(VERSION) $(NAME)-$(VERSION).tar.bz2 |
21 |
|
22 |
install: $(ALL) man |
23 |
install -d $(PREFIX)/usr/bin |
24 |
install bcd.pl $(PREFIX)/usr/bin/bcd |
25 |
install -m755 check_sign_by_path.pl $(PREFIX)/usr/bin/ |
26 |
install -m755 resign_rpm_by_path.pl $(PREFIX)/usr/bin/ |
27 |
install -d $(PREFIX)/$(PERL_VENDORLIB)/BCD |
28 |
install BCD/*.pm $(PREFIX)/$(PERL_VENDORLIB)/BCD |
29 |
install doc/${NAME}.pod $(PREFIX)/$(PERL_VENDORLIB) |
30 |
install -d $(PREFIX)/usr/share/man/man1 |
31 |
install doc/${NAME}.1.lzma $(PREFIX)/usr/share/man/man1/ |
32 |
install doc/conf.xml.1.lzma $(PREFIX)/usr/share/man/man1/ |
33 |
|
34 |
man: |
35 |
pod2man doc/${NAME}.pod > doc/${NAME}.1 |
36 |
pod2man doc/conf.xml.pod > doc/conf.xml.1 |
37 |
lzma -f doc/${NAME}.1 |
38 |
lzma -f doc/conf.xml.1 |
39 |
|
40 |
tex: |
41 |
cd doc && pod2latex ${NAME}.pod |
42 |
|
43 |
pdf: |
44 |
cd doc && latex2pdf howto_bcd.tex |
45 |
|
46 |
tar: export |
47 |
tar cjf $(NAME)-$(VERSION).tar.bz2 $(NAME)-$(VERSION) |
48 |
rm -rf $(NAME)-$(VERSION) |
49 |
# tar cvfj bcd-${VERSION}.tar.bz2 . |
50 |
|
51 |
dist: cleandist export tar |
52 |
|
53 |
export: |
54 |
svn export -q -rBASE . $(NAME)-$(VERSION) |
55 |
|
56 |
dist: cleandist export tar |