Skip to content

Commit

Permalink
Restructured clean/distclean to use a heavy optimizing shortcut
Browse files Browse the repository at this point in the history
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/tools/make/trunk@10486 72102866-910b-0410-8b05-ffd578937521
  • Loading branch information
Nicola Pero committed Jul 16, 2001
1 parent 09f0c91 commit 1366fce
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 28 deletions.
26 changes: 11 additions & 15 deletions bundle.make
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@
#
# Makefile rules to build GNUstep-based bundles.
#
# Copyright (C) 1997 Free Software Foundation, Inc.
# Copyright (C) 1997, 2001 Free Software Foundation, Inc.
#
# Author: Scott Christley <scottc@net-community.com>
# Author: Ovidiu Predescu <ovidiu@net-community.com>
# Author: Nicola Pero <nicola@brainstorm.co.uk>
#
# This file is part of the GNUstep Makefile Package.
#
Expand All @@ -33,7 +34,8 @@ endif

# The name of the bundle is in the BUNDLE_NAME variable.
# The list of bundle resource file are in xxx_RESOURCE_FILES
# The list of localized bundle resource files is in xxx_LOCALIZED_RESOURCE_FILES
# The list of localized bundle resource files is in
# xxx_LOCALIZED_RESOURCE_FILES
# The list of languages the bundle supports is in xxx_LANGUAGES
# The list of bundle resource directories are in xxx_RESOURCE_DIRS
# The name of the principal class is xxx_PRINCIPAL_CLASS
Expand All @@ -55,9 +57,14 @@ internal-install:: $(BUNDLE_NAME:=.install.bundle.variables)

internal-uninstall:: $(BUNDLE_NAME:=.uninstall.bundle.variables)

internal-clean:: $(BUNDLE_NAME:=.clean.bundle.variables)
internal-clean:: $(BUNDLE_NAME:=.clean.bundle.subprojects)
rm -rf $(GNUSTEP_OBJ_DIR) \
$(addsuffix $(BUNDLE_EXTENSION),$(BUNDLE_NAME))

internal-distclean:: $(BUNDLE_NAME:=.distclean.bundle.variables)
internal-distclean:: $(BUNDLE_NAME:=.distclean.bundle.subprojects)
rm -rf shared_obj static_obj shared_debug_obj shared_profile_obj \
static_debug_obj static_profile_obj shared_profile_debug_obj \
static_profile_debug_obj

$(BUNDLE_NAME):
@$(MAKE) -f $(MAKEFILE_NAME) --no-print-directory \
Expand Down Expand Up @@ -285,17 +292,6 @@ ifneq ($(HEADER_FILES),)
endif
rm -rf $(BUNDLE_INSTALL_DIR)/$(BUNDLE_DIR_NAME)

#
# Cleaning targets
#
internal-bundle-clean::
rm -rf $(GNUSTEP_OBJ_DIR) $(BUNDLE_DIR_NAME)

internal-bundle-distclean::
rm -rf shared_obj static_obj shared_debug_obj shared_profile_obj \
static_debug_obj static_profile_obj shared_profile_debug_obj \
static_profile_debug_obj

endif

endif
Expand Down
20 changes: 7 additions & 13 deletions gswbundle.make
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,14 @@ internal-install:: $(GSWBUNDLE_NAME:=.install.bundle.variables)

internal-uninstall:: $(GSWBUNDLE_NAME:=.uninstall.bundle.variables)

internal-clean:: $(GSWBUNDLE_NAME:=.clean.bundle.variables)
internal-clean:: $(GSWBUNDLE_NAME:=.clean.bundle.subprojects)
rm -rf $(GNUSTEP_OBJ_DIR) \
$(addsuffix $(GSWBUNDLE_EXTENSION),$(BUNDLE_NAME))

internal-distclean:: $(GSWBUNDLE_NAME:=.distclean.bundle.variables)
internal-distclean:: $(GSWBUNDLE_NAME:=.distclean.bundle.subprojects)
rm -rf shared_obj static_obj shared_debug_obj shared_profile_obj \
static_debug_obj static_profile_obj shared_profile_debug_obj \
static_profile_debug_obj

$(GSWBUNDLE_NAME):
@$(MAKE) -f $(MAKEFILE_NAME) --no-print-directory \
Expand Down Expand Up @@ -285,17 +290,6 @@ ifneq ($(HEADER_FILES),)
endif
rm -rf $(GSWBUNDLE_INSTALL_DIR)/$(GSWBUNDLE_DIR_NAME)

#
# Cleaning targets
#
internal-bundle-clean::
rm -rf $(GNUSTEP_OBJ_DIR) $(GSWBUNDLE_DIR_NAME)

internal-bundle-distclean::
rm -rf shared_obj static_obj shared_debug_obj shared_profile_obj \
static_debug_obj static_profile_obj shared_profile_debug_obj \
static_profile_debug_obj

endif

endif
Expand Down

0 comments on commit 1366fce

Please sign in to comment.