Eliminate use of stamp file when building tools.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/tools/make/trunk@2535 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Scott Christley 1997-10-20 16:11:37 +00:00
parent 34dbd0a3bd
commit 0ef9173e0e
3 changed files with 9 additions and 7 deletions

View file

@ -1,3 +1,8 @@
Mon Oct 20 08:48:02 1997 Scott Christley <scottc@net-community.com>
* rules.make: (%.tool): Rename to %.buildtool.
* tool.make: Eliminate use of stamp file.
Mon Oct 20 08:26:01 1997 Scott Christley <scottc@net-community.com>
* debugapp is like openapp except it runs gdb for the app.

View file

@ -92,7 +92,7 @@ $(GNUSTEP_OBJ_DIR)/%${OEXT} : %.m
RESOURCE_FILES="$($*_RESOURCES)" \
RESOURCE_DIRS="$($*_RESOURCE_DIRS)"
%.tool : FORCE
%.buildtool : FORCE
@echo Making $*...
@$(MAKE) --no-print-directory internal-tool-all \
TOOL_NAME=$* \

View file

@ -29,20 +29,17 @@ include $(GNUSTEP_SYSTEM_ROOT)/Makefiles/rules.make
#
# xxx We need to prefix the target name when cross-compiling
#
TOOL_LIST := $(TOOL_NAME:=.tool)
TOOL_LIST := $(TOOL_NAME:=.buildtool)
TOOL_FILE = $(TOOL_LIST)
TOOL_STAMPS := $(foreach tool,$(TOOL_NAME),stamp-tool-$(tool))
TOOL_STAMPS := $(addprefix $(GNUSTEP_OBJ_DIR)/,$(TOOL_STAMPS))
#
# Internal targets
#
$(GNUSTEP_OBJ_DIR)/stamp-tool-% : $(C_OBJ_FILES) $(OBJC_OBJ_FILES)
$(TOOL_NAME) : $(C_OBJ_FILES) $(OBJC_OBJ_FILES)
$(LD) $(ALL_LDFLAGS) $(LDOUT)$(TOOL_NAME) \
$(C_OBJ_FILES) $(OBJC_OBJ_FILES) \
$(ALL_LIB_DIRS) $(ALL_TOOL_LIBS)
touch $@
#
# Compilation targets
@ -51,7 +48,7 @@ internal-all:: $(GNUSTEP_OBJ_DIR) $(TOOL_LIST)
internal-tool-all:: build-tool
build-tool:: $(GNUSTEP_OBJ_DIR)/stamp-tool-$(TOOL_NAME)
build-tool:: $(TOOL_NAME)
#
# Cleaning targets