Rewritten

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/tools/make/trunk@10394 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Nicola Pero 2001-07-10 11:20:49 +00:00
parent 443b64410d
commit 54be8127cb
2 changed files with 25 additions and 58 deletions

View file

@ -1,11 +1,10 @@
#
# test-application.make
#
# Makefile rules for dejagnu/GNUstep based testing
#
# Copyright (C) 1997 Free Software Foundation, Inc.
# Copyright (C) 1997, 2001 Free Software Foundation, Inc.
#
# Author: Scott Christley <scottc@net-community.com>
# Author: Nicola Pero <nicola@brainstorm.co.uk>
#
# This file is part of the GNUstep Makefile Package.
#
@ -32,7 +31,7 @@ ifeq ($(RULES_MAKE_LOADED),)
include $(GNUSTEP_MAKEFILES)/rules.make
endif
# building of test applications calls the application.make rules
# building of test applications works as in application.make
ifeq ($(INTERNAL_app_NAME),)
internal-all:: $(TEST_APP_NAME:=.all.app.variables)
@ -41,15 +40,17 @@ internal-clean:: $(TEST_APP_NAME:=.clean.app.variables)
internal-distclean:: $(TEST_APP_NAME:=.distclean.app.variables)
internal-check:: $(TEST_APP_NAME:=.check.testapp.variables)
$(TEST_APP_NAME)::
@$(MAKE) -f $(MAKEFILE_NAME) --no-print-directory $@.all.app.variables
# if a subproject is the target, cd to it's dir and make it
$(SUBPROJECTS)::
@(target=`echo $@ | sed 's/internal-//'`; \
echo Making $$target in $$target...;\
(cd $$target; $(MAKE) -f $(MAKEFILE_NAME) --no-keep-going $$target \
after-all); )
# However, we don't install/uninstall test apps
internal-install::
@ echo Skipping installation of test apps...
internal-uninstall::
@ echo Skipping uninstallation of test apps...
else
@ -58,25 +59,7 @@ include $(GNUSTEP_MAKEFILES)/application.make
endif
# However we do not install test applications
ifeq ($(INTERNAL_testapp_NAME),)
internal-install:: $(TEST_APP_NAME:=.install.testapp.variables)
internal-uninstall:: $(TEST_APP_NAME:=.uninstall.testapp.variables)
internal-check:: $(TEST_APP_NAME:=.check.testapp.variables)
else
internal-install:: $(TEST_APP_NAME:=.install.testapp.variables)
internal-uninstall:: $(TEST_APP_NAME:=.uninstall.testapp.variables)
endif
endif
# test-application.make loaded
endif # test-application.make loaded
## Local variables:
## mode: makefile

View file

@ -1,11 +1,10 @@
#
# test-tool.make
#
# Makefile rules for dejagnu/GNUstep based testing
#
# Copyright (C) 1997 Free Software Foundation, Inc.
# Copyright (C) 1997, 2001 Free Software Foundation, Inc.
#
# Author: Scott Christley <scottc@net-community.com>
# Author: Nicola Pero <nicola@brainstorm.co.uk>
#
# This file is part of the GNUstep Makefile Package.
#
@ -32,7 +31,7 @@ ifeq ($(RULES_MAKE_LOADED),)
include $(GNUSTEP_MAKEFILES)/rules.make
endif
# building of test tools calls the tool.make rules
# building of test tools works as in tool.make
ifeq ($(INTERNAL_tool_NAME),)
internal-all:: $(TEST_TOOL_NAME:=.all.tool.variables)
@ -41,9 +40,18 @@ internal-clean:: $(TEST_TOOL_NAME:=.clean.tool.variables)
internal-distclean:: $(TEST_TOOL_NAME:=.distclean.tool.variables)
internal-check:: $(TEST_TOOL_NAME:=.check.tool.variables)
$(TEST_TOOL_NAME)::
@$(MAKE) -f $(MAKEFILE_NAME) --no-print-directory $@.all.tool.variables
# However, we don't install/uninstall test-tools
internal-install::
@ echo Skipping installation of test tools...
internal-uninstall::
@ echo Skipping uninstallation of test tools...
else
# We use the tool.make rules for building
@ -51,31 +59,7 @@ include $(GNUSTEP_MAKEFILES)/tool.make
endif
# However we do not install test tools
ifeq ($(INTERNAL_testtool_NAME),)
internal-install:: $(TEST_TOOL_NAME:=.install.testtool.variables)
internal-uninstall:: $(TEST_TOOL_NAME:=.uninstall.testtool.variables)
internal-check:: $(TEST_TOOL_NAME:=.check.testtool.variables)
else
internal-install:: $(TEST_TOOL_NAME:=.install.testtool.variables)
internal-uninstall:: $(TEST_TOOL_NAME:=.uninstall.testtool.variables)
endif
internal-testtool-install::
internal-testtool-uninstall::
internal-testtool-check::
endif
# test-tool.make loaded
endif # test-tool.make loaded
## Local variables:
## mode: makefile