# $Id$ # automake source include to the begin of all Makefile.am's # Copyright (C) 2004 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 # defined WANT_GTK_DOC if you plan to include macros/Makefile-gtk-doc.am # 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= INCLUDES= bin_PROGRAMS= # Custom variables localedir=$(datadir)/locale # Standard settings INCLUDES+=-DLOCALEDIR=\"$(localedir)\" INCLUDES+=-I$(top_srcdir)/intl # 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 during ./autogen.pl POTFILES.in generation distfiles: $(DISTFILES) @if test -n "$(DISTFILES_PRINT)";then \ echo -n ":DISTFILES:"; \ for distfile in . $(DISTFILES);do \ if test -n 1 \ -a "$$distfile" '!=' . \ -a "$$distfile" '!=' Makefile.am \ -a "$$distfile" '!=' Makefile.in \ ;then \ if echo " $(BUILT_SOURCES) "|grep -q " $$distfile ";then :;else \ echo -n " $(subdir)/$$distfile"; \ fi; \ fi; \ done; \ echo; \ fi; @for subdir in . $(SUBDIRS);do \ if test "$$subdir" = . -o "$$subdir" = intl -o "$$subdir" = po -o "$$subdir" = m4;then :;else \ (cd "$$subdir" && $(MAKE) $(AM_MAKEFLAGS) distfiles) || exit 1; \ fi; \ done dist-hook: for i in _built_sources_pad $(BUILT_SOURCES);do \ $(RM) $(distdir)/$$i; \ done if HAVE_PERL %.pod: %.pod.pl $(PERL) $< >$@ endif if HAVE_POD2MAN %.1: %.pod $(POD2MAN) --section=1 $< >$@ endif