diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2005-01-29 20:05:52 +0000 |
---|---|---|
committer | Gerald W. Carter <jerry@samba.org> | 2008-04-23 08:46:12 -0500 |
commit | cdd0b10ffa2932958c6b7a2dc73e205ade2c35a6 (patch) | |
tree | 9785def7fdb75e12d6db413cb60ad9eb8a525821 | |
parent | b0eafa6e39384c4bf6bef7831351d684b1b63268 (diff) | |
download | samba-cdd0b10ffa2932958c6b7a2dc73e205ade2c35a6.tar.gz samba-cdd0b10ffa2932958c6b7a2dc73e205ade2c35a6.tar.bz2 samba-cdd0b10ffa2932958c6b7a2dc73e205ade2c35a6.zip |
Don't generate the Makefile, but rather include an autogenerated settings file
(I spend a lot of time editting the Makefile, and running config.status every time
I change something gets annoying)
(This used to be commit 90f297cbb6d89d93c33b9691b407df23471b4771)
-rw-r--r-- | docs/Makefile (renamed from docs/Makefile.in) | 58 | ||||
-rw-r--r-- | docs/Makefile.settings.in | 44 | ||||
-rw-r--r-- | docs/configure.in | 2 |
3 files changed, 59 insertions, 45 deletions
diff --git a/docs/Makefile.in b/docs/Makefile index 4d84d1ca10..93c2f6199c 100644 --- a/docs/Makefile.in +++ b/docs/Makefile @@ -4,49 +4,7 @@ # James Moore <jmoore@php.net> # Gerald Carter <jerry@samba.org> # Jelmer Vernooij <jelmer@samba.org> - -# Programs -XSLTPROC = @XSLTPROC@ -XMLLINT = @XMLLINT@ -DVIPS = @DVIPS@ -PNGTOPNM = @PNGTOPNM@ -EPSTOPNM = @EPSTOPNM@ -PNMTOPNG = @PNMTOPNG@ -DIA = @DIA@ -PNMTOPS = @PNMTOPS@ -HTML2TEXT = @HTML2TEXT@ -PLUCKERBUILD = @PLUCKERBUILD@ -COPY_IMAGES = ./scripts/copy-images.sh -THUMBPDF = @THUMBPDF@ -PDFLATEX = TEXINPUTS=xslt/latex:.: @PDFLATEX@ --file-line-error-style -LATEX = TEXINPUTS=xslt/latex:.: @LATEX@ --file-line-error-style -RM = @RM@ -ifndef DEBUG_LATEX -PDFLATEX += --interaction nonstopmode -LATEX += --interaction nonstopmode -endif - -# Paths -OUTPUTDIR = output -ARCHIVEDIR = archive -SRCDIR = @SAMBASOURCEDIR@ -MANDIR = $(OUTPUTDIR)/manpages -EPSTOPDF = @EPSTOPDF@ -MANPAGEDIR = manpages -MAKEINDEX = @MAKEINDEX@ -EXAMPLESDIR = examples -SMBDOTCONFDOC = smbdotconf -DOCBOOKDIR = tmp -PSDIR = $(OUTPUTDIR) -PDFDIR = $(OUTPUTDIR) -DVIDIR = $(OUTPUTDIR) -FODIR = $(OUTPUTDIR) -HTMLHELPDIR = $(OUTPUTDIR)/htmlhelp -VALIDATEDIR = $(OUTPUTDIR)/validate -PEARSONDIR = $(OUTPUTDIR)/pearson -TXTDIR = $(OUTPUTDIR)/textdocs -HTMLDIR=$(OUTPUTDIR)/htmldocs -PLUCKERDIR=$(OUTPUTDIR)/plucker +-include Makefile.settings # Docs to build MAIN_DOCS = $(patsubst %/index.xml,$(DOCBOOKDIR)/%.xml,$(wildcard */index.xml)) @@ -56,6 +14,16 @@ MANPAGES = $(wildcard $(MANPAGEDIR)/*.?.xml) LATEX_FIGURES = xslt/figures/caution.pdf xslt/figures/important.pdf xslt/figures/note.pdf xslt/figures/tip.pdf xslt/figures/warning.pdf MANPAGES_PLUCKER = $(patsubst $(MANPAGEDIR)/%.xml,$(PLUCKERDIR)/%.pdb,$(MANPAGES)) +ifndef OUTPUTDIR +Makefile.settings: Makefile.settings.in configure + @echo Makefile.settings not present, trying to run configure... + @./configure + +configure: configure.in + @echo configure not present, trying to generate + @autoreconf +endif + help: @echo "Supported make targets:" @echo " release - Build the docs needed for a Samba release" @@ -69,6 +37,8 @@ help: @echo " samples - Extract examples" @echo " files - Extract other files" + + Samba-Guide/index.xml: $(subst Samba-Guide/index.xml,,$(wildcard Samba-Guide/*.xml)) Samba-HOWTO-Collection/index.xml: $(subst Samba-HOWTO-Collection/index.xml,,$(wildcard Samba-HOWTO-Collection/*.xml)) Samba-HOWTO-Collection-attributions.xml Samba-Developers-Guide/index.xml: $(subst Samba-Developers-Guide/index.xml,,$(wildcard Samba-Developers-Guide/*.xml)) Samba-Developers-Guide-attributions.xml @@ -137,7 +107,7 @@ $(HTMLDIR)/%.html: $(DOCBOOKDIR)/%.xml $(HTMLDIR)/samba.css xslt/html.xsl $(XSLTPROC) --xinclude xslt/generate-attributions.xsl $*/index.xml > $@ clobber: clean - rm Makefile settings.xsl config.status config.log configure + rm Makefile.settings settings.xsl config.status config.log configure clean: rm -rf $(OUTPUTDIR)/* $(DOCBOOKDIR) diff --git a/docs/Makefile.settings.in b/docs/Makefile.settings.in new file mode 100644 index 0000000000..1c38d27492 --- /dev/null +++ b/docs/Makefile.settings.in @@ -0,0 +1,44 @@ +# Programs +XSLTPROC = @XSLTPROC@ +XMLLINT = @XMLLINT@ +DVIPS = @DVIPS@ +PNGTOPNM = @PNGTOPNM@ +EPSTOPNM = @EPSTOPNM@ +PNMTOPNG = @PNMTOPNG@ +DIA = @DIA@ +PNMTOPS = @PNMTOPS@ +HTML2TEXT = @HTML2TEXT@ +PLUCKERBUILD = @PLUCKERBUILD@ +COPY_IMAGES = ./scripts/copy-images.sh +THUMBPDF = @THUMBPDF@ +PDFLATEX = TEXINPUTS=xslt/latex:.: @PDFLATEX@ --file-line-error-style +LATEX = TEXINPUTS=xslt/latex:.: @LATEX@ --file-line-error-style +RM = @RM@ +ifndef DEBUG_LATEX +PDFLATEX += --interaction nonstopmode +LATEX += --interaction nonstopmode +endif + +# Paths +OUTPUTDIR = output +ARCHIVEDIR = archive +SRCDIR = @SAMBASOURCEDIR@ +MANDIR = $(OUTPUTDIR)/manpages +EPSTOPDF = @EPSTOPDF@ +MANPAGEDIR = manpages +MAKEINDEX = @MAKEINDEX@ +EXAMPLESDIR = examples +SMBDOTCONFDOC = smbdotconf +DOCBOOKDIR = tmp +PSDIR = $(OUTPUTDIR) +PDFDIR = $(OUTPUTDIR) +DVIDIR = $(OUTPUTDIR) +FODIR = $(OUTPUTDIR) +HTMLHELPDIR = $(OUTPUTDIR)/htmlhelp +VALIDATEDIR = $(OUTPUTDIR)/validate +PEARSONDIR = $(OUTPUTDIR)/pearson +TXTDIR = $(OUTPUTDIR)/textdocs +HTMLDIR=$(OUTPUTDIR)/htmldocs +PLUCKERDIR=$(OUTPUTDIR)/plucker + +TARGETS = @TARGETS@ diff --git a/docs/configure.in b/docs/configure.in index 19efae4ecb..033bbed00f 100644 --- a/docs/configure.in +++ b/docs/configure.in @@ -95,4 +95,4 @@ fi AC_SUBST(TARGETS) -AC_OUTPUT( Makefile settings.xsl ) +AC_OUTPUT( Makefile.settings settings.xsl ) |