1997-11-14 22:50:41 +00:00
|
|
|
#
|
|
|
|
# test-application.make
|
|
|
|
#
|
|
|
|
# Makefile rules for dejagnu/GNUstep based testing
|
|
|
|
#
|
|
|
|
# Copyright (C) 1997 Free Software Foundation, Inc.
|
|
|
|
#
|
|
|
|
# Author: Scott Christley <scottc@net-community.com>
|
|
|
|
#
|
|
|
|
# This file is part of the GNUstep Makefile Package.
|
|
|
|
#
|
|
|
|
# This library is free software; you can redistribute it and/or
|
|
|
|
# modify it under the terms of the GNU General Public License
|
|
|
|
# as published by the Free Software Foundation; either version 2
|
|
|
|
# of the License, or (at your option) any later version.
|
|
|
|
#
|
|
|
|
# You should have received a copy of the GNU General Public
|
|
|
|
# License along with this library; see the file COPYING.LIB.
|
|
|
|
# If not, write to the Free Software Foundation,
|
|
|
|
# 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|
|
|
|
|
|
|
# prevent multiple inclusions
|
|
|
|
ifeq ($(TEST_APPLICATION_MAKE_LOADED),)
|
|
|
|
TEST_APPLICATION_MAKE_LOADED=yes
|
|
|
|
|
1999-02-15 09:20:19 +00:00
|
|
|
TEST_APP_NAME:=$(strip $(TEST_APP_NAME))
|
|
|
|
|
1997-11-14 22:50:41 +00:00
|
|
|
#
|
|
|
|
# Include in the common makefile rules
|
|
|
|
#
|
1998-02-06 19:15:05 +00:00
|
|
|
include $(GNUSTEP_MAKEFILES)/rules.make
|
1997-11-14 22:50:41 +00:00
|
|
|
|
|
|
|
# building of test applications calls the application.make rules
|
|
|
|
ifeq ($(INTERNAL_app_NAME),)
|
|
|
|
|
|
|
|
internal-all:: $(TEST_APP_NAME:=.all.app.variables)
|
|
|
|
|
|
|
|
internal-clean:: $(TEST_APP_NAME:=.clean.app.variables)
|
|
|
|
|
|
|
|
internal-distclean:: $(TEST_APP_NAME:=.distclean.app.variables)
|
|
|
|
|
1998-08-04 09:03:32 +00:00
|
|
|
$(TEST_APP_NAME)::
|
1998-01-09 22:05:03 +00:00
|
|
|
@$(MAKE) -f $(MAKEFILE_NAME) --no-print-directory $@.all.app.variables
|
1997-11-14 22:50:41 +00:00
|
|
|
|
1998-11-12 10:19:43 +00:00
|
|
|
# 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); )
|
|
|
|
|
1997-11-14 22:50:41 +00:00
|
|
|
else
|
|
|
|
|
|
|
|
# We use the application.make rules for building
|
1998-02-06 19:15:05 +00:00
|
|
|
include $(GNUSTEP_MAKEFILES)/application.make
|
1997-11-14 22:50:41 +00:00
|
|
|
|
|
|
|
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
|
1998-05-28 06:56:11 +00:00
|
|
|
|
|
|
|
## Local variables:
|
|
|
|
## mode: makefile
|
|
|
|
## End:
|