(id, ID): New target.
[platform/upstream/automake.git] / subdirs.am
1 # This directory's subdirectories are mostly independent; you can cd
2 # into them and run `make' without going through this Makefile.
3 # To change the values of `make' variables: instead of editing Makefiles,
4 # (1) if the variable is set in `config.status', edit `config.status'
5 #     (which will cause the Makefiles to be regenerated when you run `make');
6 # (2) otherwise, pass the desired values on the `make' command line.
7
8 @SET_MAKE@
9
10 all install install-info uninstall check info dvi id ID::
11         for subdir in $(SUBDIRS); do \
12           echo making $@ in $$subdir ; \
13           (cd $$subdir; $(MAKE) $@); \
14         done
15
16 tags TAGS::
17         tags=;                                  \
18         for subdir in $(SUBDIRS); do            \
19           (cd $$subdir && $(MAKE) TAGS);        \
20           if test -f $$subdir/TAGS; then        \
21             tags="$$tags -i $$subdir/TAGS";     \
22           fi;                                   \
23         done;                                   \
24         etags $$tags
25
26 mostlyclean: mostlyclean-recursive mostlyclean-local
27
28 clean: clean-recursive clean-local
29
30 distclean: distclean-recursive
31         $(MAKE) distclean-local
32                
33 maintainer-clean: maintainer-clean-recursive
34         @echo "This command is intended for maintainers to use;"
35         @echo "it deletes files that may require special tools to rebuild."
36         $(MAKE) realclean-local
37
38 mostlyclean-recursive clean-recursive distclean-recursive maintainer-clean-recursive:
39         for subdir in $(SUBDIRS); do \
40           (cd $$subdir; $(MAKE) `echo $@ | sed s/-recursive//`); \
41         done
42
43 mostlyclean-local:
44
45 clean-local: mostlyclean-local
46
47 distclean-local: clean-local
48         rm -f Makefile config.cache config.log config.status
49         rm -f ${CONFIG_HEADER} stamp-h
50
51 maintainer-clean-local: distclean-local
52         rm -f TAGS
53
54
55 # Tell versions [3.59,3.63) of GNU make to not export all variables.
56 # Otherwise a system limit (for SysV at least) may be exceeded.
57 .NOEXPORT:
58