Build fixes needed for latest Riece pkg.
[packages] / meta-iterate.rules
1 # This file is part of XEmacs.
2 # Copyright (C) 2002, 2003 Ben Wing.
3
4 # XEmacs is free software; you can redistribute it and/or modify it
5 # under the terms of the GNU General Public License as published by the
6 # Free Software Foundation; either version 2, or (at your option) any
7 # later version.
8
9 # XEmacs is distributed in the hope that it will be useful, but WITHOUT
10 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
12 # for more details.
13
14 # You should have received a copy of the GNU General Public License
15 # along with XEmacs; see the file COPYING.  If not, write to
16 # the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17 # Boston, MA 02110-1301, USA.
18
19 #
20 # This is used by higher-level subdirectories that do not directly contain
21 # packages.  Subdirectories directly containing packages should use
22 # iterate.rules instead.
23 #
24
25 XEMACS_PACKAGES_BASE := $(shell while [ ! -f XEmacs.rules ]; do \
26                                     cd ..;      \
27                                 done;           \
28                                 pwd)
29
30 include ${XEMACS_PACKAGES_BASE}/meta-targets.rules
31
32 ITERATE:= $(SUBDIRS)
33
34 include ${XEMACS_PACKAGES_BASE}/iterate-1.rules
35
36 .PHONY: macro-list World
37
38 # At some point we might have dependencies here...
39
40 %.target:
41         [ -d $(*D) ] && $(MAKE) $(MFLAGS) -C $(*D) $(*F)
42
43 macro-list:
44         -rm -f macro.list
45         find . -type f -name \*.el | xargs awk -f gen-macro-list.awk > macro.list
46
47 World: extraclean install
48
49 # Local Variables:
50 # mode: Makefile
51 # end: