Update for recent build tools
[mdsms.git] / Makefile-head.am
diff --git a/Makefile-head.am b/Makefile-head.am
new file mode 100644 (file)
index 0000000..2001544
--- /dev/null
@@ -0,0 +1,87 @@
+# $Id$
+# automake source include to the begin of all Makefile.am's
+# Copyright (C) 2003 Jan Kratochvil <project-mdsms@jankratochvil.net>
+# 
+# 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=
+BUILT_SOURCES=
+CLEANFILES=
+MAINTAINERCLEANFILES=
+# default DEFAULT_INCLUDES=' -I. -I$(srcdir)'.(dirnames of 'CONFIG_HEADER') ,
+# we neeed such $(DEFAULT_INCLUDES) but we need to prefer our $(INCLUDES)
+# thus we postpone them later by moving them to $(AM_CPPFLAGS).
+# It prevent us the inclusion of own wrappers
+# when we want direct include during (test) compilations
+# in $(top_srcdir)/src/libcaptive/include/reactos/
+# as -I. is always as one of the first '-I's in $(INCLUDES).
+# It will be utilized in $(top_srcdir)/src/libcaptive/Makefile-libcaptive.am .
+# It would be also possible to use some #include_next's but it is pretty
+# hassle to guess the right ordering in such case.
+# FIXME: $(addprefix ) and $(dir /) are GNU make dependent!
+AM_CPPFLAGS=-I. -I$(srcdir) $(addprefix -I,$(dir $(CONFIG_HEADER)))
+# 'DEFAULT_INCLUDES=' will drop its contents.
+# 'DEFAULT_INCLUDES:=' will cause: automake-X.Y/am/compile.am: DEFAULT_INCLUDES was set with `:=' and is now set with `='
+# %DEFAULT_INCLUDES% is permitted only in automake system files.
+# No possibility to keep its state therefore we generate
+# (I hope) the same contents in 'AM_CPPFLAGS=...' line above
+DEFAULT_INCLUDES=
+INCLUDES=
+lib_LTLIBRARIES=
+pkginclude_HEADERS=
+bin_PROGRAMS=
+sbin_PROGRAMS=
+noinst_HEADERS=
+# Prevent: noinst_DATA was already defined in condition TRUE, which implies condition MAINTAINER_MODE_TRUE
+# You should only unconditionally do: noinst_DATA+=...
+noinst_DATA=
+
+# 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
+