Commit 91cdc7f9 authored by Josip Rodin's avatar Josip Rodin

improved simple build system

parent 52edc4d3
This diff is collapsed.
<!doctype debiandoc public "-//DebianDoc//DTD DebianDoc//EN" [
<!entity % faqstaticdata system "faqstatic.en.ent" > %faqstaticdata;
<!entity % faqstaticdata system "faqstatic.ent" > %faqstaticdata;
<!entity % faqdynamicdata system "faqdynamic.ent" > %faqdynamicdata;
]>
<debiandoc>
......
......@@ -9,19 +9,19 @@
<!entity contrib-nonfree-pkgs "450">
<!-- filenames -->
<!entity ToDoList system "@@@@todo@##@.sgml">
<!entity BasicDefs system "@@@@basic_defs@##@.sgml">
<!entity Compat system "@@@@compat@##@.sgml">
<!entity Software system "@@@@software@##@.sgml">
<!entity FtpArchives system "@@@@ftparchives@##@.sgml">
<!entity PkgBasics system "@@@@pkg_basics@##@.sgml">
<!entity PkgTools system "@@@@pkgtools@##@.sgml">
<!entity Getting system "@@@@getting@##@.sgml">
<!entity UpToDate system "@@@@uptodate@##@.sgml">
<!entity Kernel system "@@@@kernel@##@.sgml">
<!entity Customizing system "@@@@customizing@##@.sgml">
<!entity Support system "@@@@support@##@.sgml">
<!entity Contrib system "@@@@contrib@##@.sgml">
<!entity Redist system "@@@@redist@##@.sgml">
<!entity NextTime system "@@@@nexttime@##@.sgml">
<!entity FAQInfo system "@@@@faqinfo@##@.sgml">
<!entity ToDoList system "todo.sgml">
<!entity BasicDefs system "basic_defs.sgml">
<!entity Compat system "compat.sgml">
<!entity Software system "software.sgml">
<!entity FtpArchives system "ftparchives.sgml">
<!entity PkgBasics system "pkg_basics.sgml">
<!entity PkgTools system "pkgtools.sgml">
<!entity Getting system "getting.sgml">
<!entity UpToDate system "uptodate.sgml">
<!entity Kernel system "kernel.sgml">
<!entity Customizing system "customizing.sgml">
<!entity Support system "support.sgml">
<!entity Contrib system "contrib.sgml">
<!entity Redist system "redist.sgml">
<!entity NextTime system "nexttime.sgml">
<!entity FAQInfo system "faqinfo.sgml">
#
# Makefile for the Debian FAQ
#
# Should work both for a manual in the Debian Documentation Project
# manuals.sgml tree, and for doc-debian package build.
currentlang := pt_BR
currentlangcn := pt-br
# this can and will be overriden by a higher level makefile
PUBLISHDIR := $(CURDIR)/../../manuals.html
sources := debian-faq.sgml ../faqstatic.ent ../faqdynamic.ent $(wildcard *.sgml)
export LANG=C
# stupid debiandoc stuff uses strings in another language otherwise
all: html text ps pdf
publish: debian-faq.$(currentlang).html/index.$(currentlangcn).html
test -d $(PUBLISHDIR)/debian-faq || install -d -m 755 $(PUBLISHDIR)/debian-faq
rm -f $(PUBLISHDIR)/debian-faq/*.$(currentlangcn).html
install -p -m 644 debian-faq.$(currentlang).html/*.html $(PUBLISHDIR)/debian-faq/
../faqdynamic.ent:
cd .. && $(MAKE) faqdynamic.ent
validate:
nsgmls -ges -wall debian-faq.sgml
html: debian-faq.$(currentlang).html/index.$(currentlangcn).html
debian-faq.$(currentlang).html/index.$(currentlangcn).html: $(sources)
debiandoc2html -c -l $(currentlang) $<
mv debian-faq.html debian-faq.$(currentlang).html
text: debian-faq.$(currentlang).txt
debian-faq.$(currentlang).txt: $(sources)
debiandoc2text -l $(currentlang) $<
debian-faq.$(currentlang).info: $(sources)
debiandoc2info -l $(currentlang) $<
debian-faq.$(currentlang).ps debian-faq.$(currentlang).dvi debian-faq.$(currentlang).pdf: \
debian-faq.$(currentlang).%: $(sources)
debiandoc2latex$* -l $(currentlang) $<
ps dvi pdf info: %: debian-faq.$(currentlang).%
clean distclean:
rm -rf debian-faq*.$(currentlang).html
rm -f debian-faq*.{txt,ps,dvi,pdf,info*,aux,log,man,tex,toc,sasp*}
rm -f *~ .*~ core tsa*
.PHONY: all publish clean distclean validate
<!doctype debiandoc public "-//DebianDoc//DTD DebianDoc//EN" [
<!entity % faqstaticdata system "faqstatic.pt_BR.ent" > %faqstaticdata;
<!entity % faqdynamicdata system "faqdynamic.ent" > %faqdynamicdata;
<!entity % faqstaticdata system "../faqstatic.ent" > %faqstaticdata;
<!entity % faqdynamicdata system "../faqdynamic.ent" > %faqdynamicdata;
]>
<debiandoc>
......
#
# Makefile for the Debian FAQ
#
# Should work both for a manual in the Debian Documentation Project
# manuals.sgml tree, and for doc-debian package build.
currentlang := ru
# this can and will be overriden by a higher level makefile
PUBLISHDIR := $(CURDIR)/../../manuals.html
sources := debian-faq.sgml ../faqstatic.ent ../faqdynamic.ent $(wildcard *.sgml)
export LANG=C
# stupid debiandoc stuff uses strings in another language otherwise
all: html text ps pdf
publish: debian-faq.$(currentlang).html/index.$(currentlang).html
test -d $(PUBLISHDIR)/debian-faq || install -d -m 755 $(PUBLISHDIR)/debian-faq
rm -f $(PUBLISHDIR)/debian-faq/*.$(currentlang).html
install -p -m 644 debian-faq.$(currentlang).html/*.html $(PUBLISHDIR)/debian-faq/
../faqdynamic.ent:
cd .. && $(MAKE) faqdynamic.ent
validate:
nsgmls -ges -wall debian-faq.sgml
html: debian-faq.$(currentlang).html/index.$(currentlang).html
debian-faq.$(currentlang).html/index.$(currentlang).html: $(sources)
debiandoc2html -c -l $(currentlang) $<
mv debian-faq.html debian-faq.$(currentlang).html
text: debian-faq.$(currentlang).txt
debian-faq.$(currentlang).txt: $(sources)
debiandoc2text -l $(currentlang) $<
debian-faq.$(currentlang).info: $(sources)
debiandoc2info -l $(currentlang) $<
debian-faq.$(currentlang).ps debian-faq.$(currentlang).dvi debian-faq.$(currentlang).pdf: \
debian-faq.$(currentlang).%: $(sources)
debiandoc2latex$* -l $(currentlang) $<
ps dvi pdf info: %: debian-faq.$(currentlang).%
clean distclean:
rm -rf debian-faq*.$(currentlang).html
rm -f debian-faq*.{txt,ps,dvi,pdf,info*,aux,log,man,tex,toc,sasp*}
rm -f *~ .*~ core tsa*
.PHONY: all publish clean distclean validate
<!doctype debiandoc public "-//DebianDoc//DTD DebianDoc//EN" [
<!entity % faqstaticdata system "faqstatic.ru.ent" > %faqstaticdata;
<!entity % faqdynamicdata system "faqdynamic.ent" > %faqdynamicdata;
<!entity % faqstaticdata system "../faqstatic.ent" > %faqstaticdata;
<!entity % faqdynamicdata system "../faqdynamic.ent" > %faqdynamicdata;
<!entity cvsrev "$Revision: 1.1 $">
<!entity cvsrev "$Revision: 1.2 $">
<!entity cvs-en-rev "Revision: 1.5">
]>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment