Browse Source

Fix the 'make clean' target

Eric Andersen 24 years ago
parent
commit
3901d1d358
1 changed files with 4 additions and 3 deletions
  1. 4 3
      test/Makefile

+ 4 - 3
test/Makefile

@@ -24,10 +24,11 @@ TOPDIR=../
 include $(TOPDIR)Rules.mak
 
 ifeq ($(TARGET_ARCH), $(NATIVE_ARCH))
-	DIRS = assert ctype pwd_grp signal silly stdlib string 
+	DIRS = args assert ctype pwd_grp signal silly stdlib string unistd 
 else
 	DIRS =
 endif
+ALL_SUBDIRS = args assert ctype pwd_grp signal silly stdlib string unistd
 
 all: subdirs
 
@@ -38,12 +39,12 @@ clean: subdirs_clean
 	rm -f *.[oa] *~ core
 
 subdirs: $(patsubst %, _dir_%, $(DIRS))
-subdirs_clean: $(patsubst %, _dirclean_%, $(DIRS))
+subdirs_clean: $(patsubst %, _dirclean_%, $(ALL_SUBDIRS))
 
 $(patsubst %, _dir_%, $(DIRS)) : dummy
 	$(MAKE) -C $(patsubst _dir_%, %, $@)
 
-$(patsubst %, _dirclean_%, $(DIRS)) : dummy
+$(patsubst %, _dirclean_%, $(ALL_SUBDIRS)) : dummy
 	$(MAKE) -C $(patsubst _dirclean_%, %, $@) clean
 
 .PHONY: dummy