Skip to content

Commit 1e00cda

Browse files
committed
[CSS2] fix building the images
This also removes a few duplicate source files for the images, all of which had diverged between their two copies; this goes with the one the builds the current committed *.png.
1 parent 6ee0b6e commit 1e00cda

4 files changed

Lines changed: 18 additions & 2635 deletions

File tree

css2/Makefile

Lines changed: 18 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,20 @@ SPECSRCS= $(SRCS0) $(MAINSRCS) $(APPSRCS)
117117

118118
SPECOBJS= $(SPECSRCS:.src=.html) $(REFS) $(INDEXSRCS:.src=.html)
119119

120-
#IMAGES = images/*.gif images/*.png
121-
IMAGES = images/*.png images/*.jpg
120+
IMAGESSRC = \
121+
$(wildcard images/*.eps) \
122+
$(wildcard images/*.fig) \
123+
$(wildcard images/*.gif) \
124+
$(wildcard images/*.idraw) \
125+
$(wildcard images/*.svg) \
126+
$(wildcard images/*.ps)
127+
128+
IMAGESBUILT = $(addsuffix .png, $(basename $(IMAGESSRC)))
129+
130+
IMAGES = \
131+
$(wildcard images/*.png) \
132+
$(IMAGESBUILT)
133+
122134
LONGDESCS = images/longdesc/*.html
123135
STYLESHEETS= style/*.css
124136

@@ -273,6 +285,8 @@ LN= ln
273285
%.png: %.eps; convert -density 96x96 $< $@
274286
%.png: %.ps; convert -density 96x96 $< $@
275287
%.png: %.idraw; convert -density 96x96 $< $@
288+
%.png: %.svg; convert -density 96x96 $< $@
289+
%.png: %.gif; convert -density 96x96 $< $@
276290
%.eps: %.fig; fig2dev -L eps -F -c $< $@
277291

278292
#.idraw.gif:
@@ -288,8 +302,7 @@ LN= ln
288302
# $(RM) $@
289303
# fig2dev -L eps $< | $(PSTOPNM) | $(PNMTOPNG_PIPE) >$@
290304

291-
all: build/blocks.ok $(SPECOBJS) images/pngs.ok \
292-
$(IMAGES)
305+
all: build/blocks.ok $(SPECOBJS) $(IMAGES)
293306

294307
build/warning:
295308
echo "<!-- warning -->" >$@
@@ -337,13 +350,6 @@ install-pdf: install css2.pdf
337350
install-all: install install-ps install-pdf css2.zip css2.txt
338351
$(CP) css2.zip css2.txt $(INSTALLDIR)
339352

340-
images/pngs.ok: images/*.idraw images/*.fig
341-
-@for f in images/*.idraw; do make images/`basename $$f .idraw`.gif; done
342-
-@for f in images/*.idraw; do make images/`basename $$f .idraw`.png; done
343-
-@for f in images/*.fig; do make images/`basename $$f .fig`.gif; done
344-
-@for f in images/*.fig; do make images/`basename $$f .fig`.png; done
345-
touch images/pngs.ok
346-
347353

348354
#### Special section to build PS file and single plain text file
349355

@@ -577,7 +583,7 @@ log:
577583
clean:
578584
$(RM) $(SPECOBJS) $(PROPBLKSDIR)/* \
579585
$(SPECOBJS:.html=.srd) $(SPECOBJS:.html=.subtoc) \
580-
build/* css2.* linklint images/links.ok images/pngs.ok
586+
build/* css2.* linklint images/links.ok
581587

582588
realclean: clean
583589

0 commit comments

Comments
 (0)