# $Id$ # automake source include to the begin of all Makefile.am's # Copyright (C) 2003 Jan Kratochvil # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; exactly version 2 of June 1991 is required # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # Set all needed variables to their empty values to prevent "variable `...' not defined" # Any further settings should be done exclusively by += operator EXTRA_DIST= CLEANFILES= MAINTAINERCLEANFILES= TESTS= # Force delete of target file if command fails. # Generally better behaviour but it requires GNU make. Harmless otherwise. .DELETE_ON_ERROR: # 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 # PiNG is our exchange format. Prevent: make: Circular %.ppm <- %.EXT dependency dropped. # 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: %-badgamma.ppm $(PATH_PNMGAMMA) 0.4 <$< | $(PATH_PNMTOPNG) >$@ %.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 $<