X-Git-Url: http://git.jankratochvil.net/?p=www.jankratochvil.net.git;a=blobdiff_plain;f=Makefile-head.am;h=83234549ac5ff971cc764d111b49898ed5b9b81c;hp=40656bc1bcad2d28b60165b3c68f9765f732e498;hb=0c001b00860c2a42cfdff4067e9955705ec290f5;hpb=b4ddfba5b53a40e47285f8851e1ff7bb5419909b diff --git a/Makefile-head.am b/Makefile-head.am index 40656bc..8323454 100644 --- a/Makefile-head.am +++ b/Makefile-head.am @@ -19,31 +19,44 @@ # Set all needed variables to their empty values to prevent "variable `...' not defined" # Any further settings should be done exclusively by += operator EXTRA_DIST= -BUILT_SOURCES= CLEANFILES= MAINTAINERCLEANFILES= -noinst_DATA= +TESTS= # Force delete of target file if command fails. # Generally better behaviour but it requires GNU make. Harmless otherwise. .DELETE_ON_ERROR: -%.ppm: %.fig Makefile - fig2dev -L ppm -S4 -m1.75 -b10 $< | pnmgamma 0.4 >$@ +# This target is used for "httpd.conf.pl" generator. +MODPERL_PM= +EXTRA_DIST+=$(MODPERL_PM) +MODPERL_PM-print: $(MODPERL_PM) + @echo "MODPERL_PM:$(subdir):$(MODPERL_PM)" + @for subdir in . $(SUBDIRS);do \ + if test "$$subdir" = . -o "$$subdir" = intl -o "$$subdir" = po -o "$$subdir" = m4;then :;else \ + (cd "$$subdir" && $(MAKE) $(AM_MAKEFLAGS) $@) || exit 1; \ + fi; \ + done -%.gif: %.ppm - ppmquant -quiet 256 $< | ppmtogif -quiet -sort >$@ +# PiNG is our exchange format. Prevent: make: Circular %.ppm <- %.EXT dependency dropped. -# Prevent: make: Circular %.ppm <- %.gif dependency dropped. -#%.ppm: %.gif -# giftopnm $< >$@ +# Prevent gs(1) EPIPE as it writes about 2x more data out: ( ... ;cat >/dev/null) +%.png: %.fig Makefile + $(PATH_FIG2DEV) -L ppm -S4 -m1.75 -b10 $< | ($(PATH_PNMGAMMA) 0.4;cat >/dev/null) | $(PATH_PNMTOPNG) >$@ -%.png: %.ppm - pnmtopng $< >$@ +%.png: %-badgamma.ppm + $(PATH_PNMGAMMA) 0.4 <$< | $(PATH_PNMTOPNG) >$@ -%.ppm: %.png - pngtopnm $< >$@ +%.gif: %.png + $(PATH_PNGTOPNM) $< | $(PATH_PPMQUANT) -quiet 256 | $(PATH_PPMTOGIF) -quiet -sort >$@ %.png: %.dia $(top_srcdir)/dia-w.sh $(top_srcdir)/dia-w.sh --nosplash --export $@ $< +%.svg: %.dia $(top_srcdir)/dia-w.sh + $(top_srcdir)/dia-w.sh --nosplash --export $@ $< + +# Optionally: basename_svg_DPI=30 +%.png: %.svg + $(PATH_INKSCAPE) --export-png=$@ $(if $($*_svg_DPI),--export-dpi=$($*_svg_DPI)) --export-background=white $< +