Simplified make clean; fixed make clean by setting app extension

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/tools/make/trunk@10477 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Nicola Pero 2001-07-13 17:34:25 +00:00
parent 36ad069a1a
commit 7c1876bd00

View file

@ -24,6 +24,16 @@ TEST_APPLICATION_MAKE_LOADED=yes
TEST_APP_NAME:=$(strip $(TEST_APP_NAME))
ifeq ($(profile), yes)
APP_EXTENSION = profile
else
ifeq ($(debug), yes)
APP_EXTENSION = debug
else
APP_EXTENSION = app
endif
endif
#
# Include in the common makefile rules
#
@ -37,11 +47,7 @@ ifeq ($(INTERNAL_app_NAME),)
internal-all:: $(TEST_APP_NAME:=.all.app.variables)
internal-clean:: $(TEST_APP_NAME:=.clean.app.subprojects)
ifeq ($(GNUSTEP_FLATTENED),)
rm -rf $(GNUSTEP_OBJ_PREFIX)/$(GNUSTEP_TARGET_LDIR)
else
rm -rf $(GNUSTEP_OBJ_PREFIX)
endif
rm -rf $(GNUSTEP_OBJ_DIR)
ifeq ($(OBJC_COMPILER), NeXT)
rm -f *.iconheader
for f in *.$(APP_EXTENSION); do \