Skip to content

Commit f908464

Browse files
committed
[CSS2] Move more intermediate build products into build/
1 parent 0bfb701 commit f908464

1 file changed

Lines changed: 11 additions & 12 deletions

File tree

css2/Makefile

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ LN= ln
223223

224224
.SUFFIXES: .src .html .srd .idraw .gif .ps .subtoc .png .fig .pdf
225225

226-
%.subtoc: %.srd Project.cfg
226+
build/%.subtoc: build/%.srd Project.cfg
227227
@echo "=========== making" $@
228228
echo "<nav id=\"toc\">" >$@
229229
echo "<h2>Table of Contents</h2>" >>$@
@@ -235,15 +235,15 @@ LN= ln
235235
# at the cost of possibly incorrect xrefs in the other .html files
236236
#
237237
#%.html: %.subtoc Project.cfg
238-
%.html: %.subtoc $(MAINSRCS:.src=.srd) $(APPSRCS:.src=.srd) Project.cfg build/warning style/default.css #$(SPECSRCS:.src=.srd)
238+
%.html: build/%.subtoc $(addprefix build/, $(MAINSRCS:.src=.srd)) $(addprefix build/, $(APPSRCS:.src=.srd)) Project.cfg build/warning style/default.css #$(SPECSRCS:.src=.srd)
239239
@echo "=========== making" $@
240-
$(ADDLINKS) $(VALUEDB) $*.srd propinst-/propdef- value-inst-/value-def- |\
240+
$(ADDLINKS) $(VALUEDB) build/$*.srd propinst-/propdef- value-inst-/value-def- |\
241241
$(ADDIDXANCH) -r $@ $(INDEXDB) - |\
242242
$(ADDMARKUP) - |\
243243
$(ADDLONGDESC) - |\
244244
$(ADDNAVBAR) -r $@ |\
245245
$(INSAFTER) - build/warning /H1 - |\
246-
$(INSAFTER) - $*.subtoc /H1 - |\
246+
$(INSAFTER) - build/$*.subtoc /H1 - |\
247247
$(MKCHAIN) -r $@ - |\
248248
$(SED) -e "s|_THIS_VERSION_|$(THIS_VERSION)|g" \
249249
-e "s|_THE_LATEST_VERSION_|$(THE_LATEST_VERSION)|g" \
@@ -255,7 +255,7 @@ LN= ln
255255
-e "s|_THE_ID_|$(THE_ID)|g" \
256256
-e "s|_THE_UPDATE_DIR_|$(THE_UPDATE_DIR)|g" >$@
257257

258-
%.srd: %.src build/blocks.ok $(REFSRC:.src=.srd)
258+
build/%.srd: %.src build/blocks.ok $(addprefix build/, $(REFSRC:.src=.srd))
259259
@echo "=========== making" $@
260260
$(HIPP) $(INCLUDES) $< |\
261261
$(ADDCITE) -r $(REFS) $(REFSRCS) |\
@@ -383,12 +383,12 @@ $(PROPBLKSDIR)/blocks.ok: $(PROPSRC)
383383
touch $@
384384

385385

386-
cover.srd: cover.src build/contents.srb Makefile
386+
build/cover.srd: cover.src build/contents.srb Makefile
387387
@echo "=========== making" $@
388388
$(HIPP) $(INCLUDES) $< |\
389389
$(ADDCITE) -r $(REFS) $(REFSRCS) >$@
390390

391-
cover.html: cover.srd Project.cfg
391+
cover.html: build/cover.srd Project.cfg
392392
@echo "=========== making" $@
393393
$(ADDNAVBAR) -r $@ $< |\
394394
$(MKCHAIN) -r $@ - |\
@@ -403,7 +403,7 @@ cover.html: cover.srd Project.cfg
403403
-e "s|_THE_ID_|$(THE_ID)|g" \
404404
-e "s|_THE_UPDATE_DIR_|$(THE_UPDATE_DIR)|g" >$@
405405

406-
build/contents.srb: $(MAINSRCS:.src=.srd) $(APPSRCS:.src=.srd) $(REFSRCS:.src=.srd) $(INDEXSRCS:.src=.srd) Project.cfg
406+
build/contents.srb: $(addprefix build/, $(MAINSRCS:.src=.srd)) $(addprefix build/, $(APPSRCS:.src=.srd)) $(addprefix build/, $(REFSRCS:.src=.srd)) $(addprefix build/, $(INDEXSRCS:.src=.srd)) Project.cfg
407407
@echo "=========== making" $@
408408
$(MKTOC) -h 5 $(HEADINGDB) $@
409409

@@ -416,11 +416,11 @@ build/indexlist.srb: $(MAINSRCS) $(APPSRCS) $(INDEXDB)
416416
$(INDEXDB): $(MAINSRCS:.src=.html) $(APPSRCS:.src=.html) #$(SPECSRCS:.src=.html)
417417
touch $(INDEXDB)
418418

419-
indexlist.srd:: build/indexlist.srb #indexlist.src build/blocks.ok
419+
build/indexlist.srd:: build/indexlist.srb #indexlist.src build/blocks.ok
420420
# @echo "=========== making" $@
421421
# $(CP) $< $@
422422

423-
indexlist.html: indexlist.srd build/indexlist.srb Project.cfg build/warning
423+
indexlist.html: build/indexlist.srd build/indexlist.srb Project.cfg build/warning
424424
@echo "=========== making" $@
425425
$(ADDNAVBAR) -r $@ $< |\
426426
$(INSAFTER) - build/warning /H1 - |\
@@ -440,7 +440,7 @@ build/propidx.srb: $(PROPSRC)
440440
@echo "=========== making" $@
441441
$(MKPROPIDX) -r $@ $@ $(PROPSRC)
442442

443-
propidx.srd:: build/propidx.srb #propidx.src
443+
build/propidx.srd:: build/propidx.srb #propidx.src
444444
# @echo "=========== making" $@
445445
# $(HIPP) $(INCLUDES) $< $@
446446

@@ -535,7 +535,6 @@ checkx: build/checkx.out
535535

536536
clean:
537537
$(RM) $(SPECOBJS) $(PROPBLKSDIR)/* \
538-
$(SPECOBJS:.html=.srd) $(SPECOBJS:.html=.subtoc) \
539538
build/* css2.* linklint images/links.ok
540539

541540
realclean: clean

0 commit comments

Comments
 (0)