Version: 1.5.3 -> 1.5.4cvs
[mdsms.git] / Makefile-head.am
1 # $Id$
2 # automake source include to the begin of all Makefile.am's
3 # Copyright (C) 2003 Jan Kratochvil <project-mdsms@jankratochvil.net>
4
5 # This program is free software; you can redistribute it and/or modify
6 # it under the terms of the GNU General Public License as published by
7 # the Free Software Foundation; exactly version 2 of June 1991 is required
8
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12 # GNU General Public License for more details.
13
14 # You should have received a copy of the GNU General Public License
15 # along with this program; if not, write to the Free Software
16 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
17
18
19 # Set all needed variables to their empty values to prevent "variable `...' not defined"
20 # Any further settings should be done exclusively by += operator
21 EXTRA_DIST=
22 BUILT_SOURCES=
23 CLEANFILES=
24 MAINTAINERCLEANFILES=
25 # default DEFAULT_INCLUDES=' -I. -I$(srcdir)'.(dirnames of 'CONFIG_HEADER') ,
26 # we neeed such $(DEFAULT_INCLUDES) but we need to prefer our $(INCLUDES)
27 # thus we postpone them later by moving them to $(AM_CPPFLAGS).
28 # It prevent us the inclusion of own wrappers
29 # when we want direct include during (test) compilations
30 # in $(top_srcdir)/src/libcaptive/include/reactos/
31 # as -I. is always as one of the first '-I's in $(INCLUDES).
32 # It will be utilized in $(top_srcdir)/src/libcaptive/Makefile-libcaptive.am .
33 # It would be also possible to use some #include_next's but it is pretty
34 # hassle to guess the right ordering in such case.
35 # FIXME: $(addprefix ) and $(dir /) are GNU make dependent!
36 AM_CPPFLAGS=-I. -I$(srcdir) $(addprefix -I,$(dir $(CONFIG_HEADER)))
37 # 'DEFAULT_INCLUDES=' will drop its contents.
38 # 'DEFAULT_INCLUDES:=' will cause: automake-X.Y/am/compile.am: DEFAULT_INCLUDES was set with `:=' and is now set with `='
39 # %DEFAULT_INCLUDES% is permitted only in automake system files.
40 # No possibility to keep its state therefore we generate
41 # (I hope) the same contents in 'AM_CPPFLAGS=...' line above
42 DEFAULT_INCLUDES=
43 INCLUDES=
44 lib_LTLIBRARIES=
45 pkginclude_HEADERS=
46 bin_PROGRAMS=
47 sbin_PROGRAMS=
48 noinst_HEADERS=
49 # Prevent: noinst_DATA was already defined in condition TRUE, which implies condition MAINTAINER_MODE_TRUE
50 # You should only unconditionally do: noinst_DATA+=...
51 noinst_DATA=
52
53 # Custom variables
54 localedir=$(datadir)/locale
55
56 # Standard settings
57 INCLUDES+=-DLOCALEDIR=\"$(localedir)\"
58 INCLUDES+=-I$(top_srcdir)/intl
59
60 # Force delete of target file if command fails.
61 # Generally better behaviour but it requires GNU make. Harmless otherwise.
62 .DELETE_ON_ERROR:
63
64
65 # This target is used during ./autogen.pl POTFILES.in generation
66 distfiles: $(DISTFILES)
67         @if test -n "$(DISTFILES_PRINT)";then \
68                 echo -n ":DISTFILES:"; \
69                 for distfile in . $(DISTFILES);do \
70                         if test -n 1 \
71                                         -a "$$distfile" '!=' . \
72                                         -a "$$distfile" '!=' Makefile.am \
73                                         -a "$$distfile" '!=' Makefile.in \
74                                         ;then \
75                                 if echo " $(BUILT_SOURCES) "|grep -q " $$distfile ";then :;else \
76                                         echo -n " $(subdir)/$$distfile"; \
77                                         fi; \
78                                 fi; \
79                         done; \
80                 echo; \
81                 fi;
82         @for subdir in . $(SUBDIRS);do \
83                 if test "$$subdir" = . -o "$$subdir" = intl -o "$$subdir" = po -o "$$subdir" = m4;then :;else \
84                         (cd "$$subdir" && $(MAKE) $(AM_MAKEFLAGS) distfiles) || exit 1; \
85                         fi; \
86                 done
87