~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to Makefile

  • Committer: John Arbash Meinel
  • Author(s): Bernhard Voelker
  • Date: 2009-10-19 15:14:04 UTC
  • mto: (4634.77.8 2.0)
  • mto: This revision was merged to the branch mainline in revision 4770.
  • Revision ID: john@arbash-meinel.com-20091019151404-cfpmjik7hdhfbq3u
Change Makefile to avoid a GNUism

Basically change all ':=' lines into plain '=' lines.
This means that variables will be expanded as requested, rather than expanded
one time when they are defined.
It makes the Makefile compatible with non-gnu 'make' programs:
  http://www.gnu.org/software/make/manual/make.html#Flavors

Show diffs side-by-side

added added

removed removed

Lines of Context:
174
174
### Documentation Website ###
175
175
 
176
176
# Where to build the website
177
 
DOC_WEBSITE_BUILD := build_doc_website
 
177
DOC_WEBSITE_BUILD = build_doc_website
178
178
 
179
179
# Build and package docs into a website, complete with downloads.
180
180
doc-website: html-sphinx pdf-sphinx
190
190
# support our "plain" html documentation so that Sphinx is not a hard
191
191
# dependency for packagers on older platforms.
192
192
 
193
 
rst2html := $(PYTHON) tools/rst2html.py --link-stylesheet --footnote-references=superscript --halt=warning
 
193
rst2html = $(PYTHON) tools/rst2html.py --link-stylesheet --footnote-references=superscript --halt=warning
194
194
 
195
195
# translate txt docs to html
196
 
derived_txt_files := \
 
196
derived_txt_files = \
197
197
        doc/en/user-reference/bzr_man.txt \
198
198
        doc/en/release-notes/NEWS.txt
199
 
txt_all := \
 
199
txt_all = \
200
200
        doc/en/tutorials/tutorial.txt \
201
201
        doc/en/tutorials/using_bazaar_with_launchpad.txt \
202
202
        doc/en/tutorials/centralized_workflow.txt \
209
209
        doc/en/upgrade-guide/index.txt \
210
210
        doc/index.txt \
211
211
        $(wildcard doc/index.*.txt)
212
 
txt_nohtml := \
 
212
txt_nohtml = \
213
213
        doc/en/user-guide/index.txt \
214
214
        doc/es/user-guide/index.txt \
215
215
        doc/ru/user-guide/index.txt
216
 
txt_files := $(filter-out $(txt_nohtml), $(txt_all))
217
 
htm_files := $(patsubst %.txt, %.html, $(txt_files)) 
 
216
txt_files = $(filter-out $(txt_nohtml), $(txt_all))
 
217
htm_files = $(patsubst %.txt, %.html, $(txt_files)) 
218
218
 
219
 
non_txt_files := \
 
219
non_txt_files = \
220
220
       doc/default.css \
221
221
       $(wildcard doc/*/bzr-en-quick-reference.svg) \
222
222
       $(wildcard doc/*/bzr-en-quick-reference.png) \
231
231
 
232
232
# doc/developers/*.txt files that should *not* be individually
233
233
# converted to HTML
234
 
dev_txt_nohtml := \
 
234
dev_txt_nohtml = \
235
235
        doc/developers/add.txt \
236
236
        doc/developers/annotate.txt \
237
237
        doc/developers/bundle-creation.txt \
257
257
        doc/developers/status.txt \
258
258
        doc/developers/uncommit.txt
259
259
 
260
 
dev_txt_all := $(wildcard $(addsuffix /*.txt, doc/developers))
261
 
dev_txt_files := $(filter-out $(dev_txt_nohtml), $(dev_txt_all))
262
 
dev_htm_files := $(patsubst %.txt, %.html, $(dev_txt_files)) 
 
260
dev_txt_all = $(wildcard $(addsuffix /*.txt, doc/developers))
 
261
dev_txt_files = $(filter-out $(dev_txt_nohtml), $(dev_txt_all))
 
262
dev_htm_files = $(patsubst %.txt, %.html, $(dev_txt_files)) 
263
263
 
264
264
doc/en/user-guide/index-plain.html: $(wildcard $(addsuffix /*.txt, doc/en/user-guide)) 
265
265
        $(rst2html) --stylesheet=../../default.css $(dir $@)index-plain.txt $@
301
301
docs-plain: $(ALL_DOCS)
302
302
 
303
303
# produce a tree containing just the final docs, ready for uploading to the web
304
 
HTMLDIR := html_docs
 
304
HTMLDIR = html_docs
305
305
html-plain: docs-plain
306
306
        $(PYTHON) tools/win32/ostools.py copytree $(WEB_DOCS) $(HTMLDIR)
307
307
 
327
327
# These are files that need to be copied into the build location to boostrap
328
328
# the build process.
329
329
# Note that the path is relative to tools/win32
330
 
BUILDOUT_FILES := buildout.cfg \
 
330
BUILDOUT_FILES = buildout.cfg \
331
331
        buildout-templates/bin/build-installer.bat.in \
332
332
        ostools.py bootstrap.py
333
333