summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>1993-07-21 21:03:50 +0000
committerRoland McGrath <roland@gnu.org>1993-07-21 21:03:50 +0000
commit001642a3bfc6a1fc4f54d04eeae1028c1dbb2848 (patch)
treee8d0d5720cb7f1e3f825eef4e0f873b49e5b96e6 /Makefile
parentabf79809c0c4b5a1a8eb89007e77816f3b5dcb43 (diff)
Formerly Makefile.~74~
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 7 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 174dea4a66..13635f0bb9 100644
--- a/Makefile
+++ b/Makefile
@@ -76,6 +76,7 @@ else
$(objpfx)munch-init.c: munch.awk munch-tmpl.c $(+subdir_inits)
awk -f $< subdirs='$(+init_subdirs)' $(word 2,$^) > $@-t
mv $@-t $@
+generated := $(generated) $(objpfx)munch-init.c
endif
aux := sysdep $(+init) version start
@@ -166,10 +167,14 @@ clean:
# dependency of this target so that libc.a will be removed before the
# subdirectories are dealt with and so they won't try to remove object
# files from it when it's going to be removed anyway.
- @$(MAKE) subdir_clean
+ @$(MAKE) subdir_clean no_deps=t
distclean: clean
- -rm -f $(addprefix $(objpfx),config.status config.make)
+ -rm -f $(addprefix $(objpfx),config.status config.make \
+ sysd-Makefile sysd-dirs)
+ifdef objdir
+ -rm -f $(objpfx)Makefile
+endif
.PHONY: echo_subdirs
echo_subdirs:;@echo '$(subdirs)'