diff options
author | Antoine Ginies <aginies@mandriva.com> | 2010-10-06 07:58:18 +0000 |
---|---|---|
committer | Antoine Ginies <aginies@mandriva.com> | 2010-10-06 07:58:18 +0000 |
commit | b364785ea90e60806aaaec56d15bcc70a74daf6d (patch) | |
tree | da257e1277bd0218929f12fde2e318657067eb16 /Makefile | |
parent | 46324a3fd9b86040b16dc3070b3a22438f7a616d (diff) | |
download | bcd-b364785ea90e60806aaaec56d15bcc70a74daf6d.tar bcd-b364785ea90e60806aaaec56d15bcc70a74daf6d.tar.gz bcd-b364785ea90e60806aaaec56d15bcc70a74daf6d.tar.bz2 bcd-b364785ea90e60806aaaec56d15bcc70a74daf6d.tar.xz bcd-b364785ea90e60806aaaec56d15bcc70a74daf6d.zip |
end of the move
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..c603fda --- /dev/null +++ b/Makefile @@ -0,0 +1,57 @@ +NAME=bcd +VERSION=3.4 +PERL_VENDORLIB=$(shell eval "`perl -V:installvendorlib`"; echo $$installvendorlib) + +ALL= +PM=Bcd.pm Common.pm Genisoimage.pm Isolinux.pm Media.pm Stagex.pm Resign.pm +POD=${name}.pod + +all: man tex + #pdf + +clean: + rm -rf *~ + rm -rf BCD/*~ + rm -rf lists/*~ + rm -rf doc/*~ + rm -rf ${NAME}.1.lzma + cd doc && rm -rf *.toc *.out *.log *.aux + +cleandist: clean + rm -rf $(NAME)-$(VERSION) $(NAME)-$(VERSION).tar.bz2 + +install: $(ALL) man + install -d $(PREFIX)/usr/bin + install bcd.pl $(PREFIX)/usr/bin/bcd + install -m755 check_sign_by_path.pl $(PREFIX)/usr/bin/ + install -m755 resign_rpm_by_path.pl $(PREFIX)/usr/bin/ + install -d $(PREFIX)/$(PERL_VENDORLIB)/BCD + install BCD/*.pm $(PREFIX)/$(PERL_VENDORLIB)/BCD + install doc/${NAME}.pod $(PREFIX)/$(PERL_VENDORLIB) + install -d $(PREFIX)/usr/share/man/man1 + install doc/${NAME}.1.lzma $(PREFIX)/usr/share/man/man1/ + install doc/conf.xml.1.lzma $(PREFIX)/usr/share/man/man1/ + +man: + pod2man doc/${NAME}.pod > doc/${NAME}.1 + pod2man doc/conf.xml.pod > doc/conf.xml.1 + lzma -f doc/${NAME}.1 + lzma -f doc/conf.xml.1 + +tex: + cd doc && pod2latex ${NAME}.pod + +pdf: + cd doc && latex2pdf howto_bcd.tex + +tar: export + tar cjf $(NAME)-$(VERSION).tar.bz2 $(NAME)-$(VERSION) + rm -rf $(NAME)-$(VERSION) +# tar cvfj bcd-${VERSION}.tar.bz2 . + +dist: cleandist export tar + +export: + svn export -q -rBASE . $(NAME)-$(VERSION) + +dist: cleandist export tar |