mirror of
https://github.com/gnustep/tools-make.git
synced 2025-04-23 22:33:28 +00:00
Add rules for test tools and applications.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/tools/make/trunk@2642 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
33175b10ba
commit
34a31cdaa9
11 changed files with 199 additions and 2 deletions
14
ChangeLog
14
ChangeLog
|
@ -1,3 +1,17 @@
|
|||
Fri Nov 14 12:51:16 1997 Scott Christley <scottc@net-community.com>
|
||||
|
||||
* test-application.make: New file.
|
||||
* test-tool.make: New file.
|
||||
* GNUmakefile.in: Install new files.
|
||||
* aggregate.make: Prevent multiple inclusions.
|
||||
* application.make: Likewise.
|
||||
* bundle.make: Likewise.
|
||||
* library.make: Likewise.
|
||||
* objc.make: Likewise.
|
||||
* rules.make: Likewise.
|
||||
* test-library.make: Likewise.
|
||||
* tool.make: Likewise.
|
||||
|
||||
Fri Nov 14 09:53:50 1997 Ovidiu Predescu <ovidiu@net-community.com>
|
||||
|
||||
* brain.make: Added defines for the GUI and backend libraries.
|
||||
|
|
|
@ -75,7 +75,7 @@ install: all
|
|||
for f in aggregate.make application.make bundle.make \
|
||||
common.make brain.make library.make rules.make target.make \
|
||||
tool.make test-library.make names.make objc.make \
|
||||
MediaBook.func; do \
|
||||
test-application.make test-tool.make MediaBook.func; do \
|
||||
$(INSTALL_DATA) $$f $(makedir); \
|
||||
done
|
||||
$(INSTALL_DATA) config.site $(prefix)/share
|
||||
|
@ -94,7 +94,7 @@ uninstall:
|
|||
for f in aggregate.make application.make bundle.make \
|
||||
common.make brain.make library.make rules.make target.make \
|
||||
tool.make test-library.make names.make objc.make \
|
||||
MediaBook.func; do \
|
||||
test-application.make test-tool.make MediaBook.func; do \
|
||||
rm -f $(makedir)/$$f; \
|
||||
done
|
||||
rm -f $(prefix)/share/config.site
|
||||
|
|
|
@ -20,6 +20,10 @@
|
|||
# If not, write to the Free Software Foundation,
|
||||
# 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
|
||||
# prevent multiple inclusions
|
||||
ifeq ($(AGGREGATE_MAKE_LOADED),)
|
||||
AGGREGATE_MAKE_LOADED=yes
|
||||
|
||||
#
|
||||
# Include in the common makefile rules
|
||||
#
|
||||
|
@ -40,3 +44,6 @@ internal-all internal-install internal-uninstall internal-clean \
|
|||
echo Making $$target in $$f...;\
|
||||
(cd $$f; $(MAKE) --no-keep-going $$target); \
|
||||
done)
|
||||
|
||||
endif
|
||||
# aggregate.make loaded
|
||||
|
|
|
@ -20,6 +20,10 @@
|
|||
# If not, write to the Free Software Foundation,
|
||||
# 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
|
||||
# prevent multiple inclusions
|
||||
ifeq ($(APPLICATION_MAKE_LOADED),)
|
||||
APPLICATION_MAKE_LOADED=yes
|
||||
|
||||
#
|
||||
# Include in the common makefile rules
|
||||
#
|
||||
|
@ -166,3 +170,6 @@ internal-app-distclean::
|
|||
static_profile_debug_obj *.app *.debug *.profile *.iconheader
|
||||
|
||||
endif
|
||||
|
||||
endif
|
||||
# application.make loaded
|
||||
|
|
|
@ -20,6 +20,10 @@
|
|||
# If not, write to the Free Software Foundation,
|
||||
# 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
|
||||
# prevent multiple inclusions
|
||||
ifeq ($(BUNDLE_MAKE_LOADED),)
|
||||
BUNDLE_MAKE_LOADED=yes
|
||||
|
||||
#
|
||||
# Include in the common makefile rules
|
||||
#
|
||||
|
@ -103,3 +107,5 @@ internal-bundle-distclean::
|
|||
|
||||
endif
|
||||
|
||||
endif
|
||||
# bundle.make loaded
|
||||
|
|
|
@ -20,6 +20,10 @@
|
|||
# If not, write to the Free Software Foundation,
|
||||
# 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
|
||||
# prevent multiple inclusions
|
||||
ifeq ($(LIBRARY_MAKE_LOADED),)
|
||||
LIBRARY_MAKE_LOADED=yes
|
||||
|
||||
#
|
||||
# Include in the common makefile rules
|
||||
#
|
||||
|
@ -159,3 +163,6 @@ internal-library-distclean::
|
|||
internal-library-check::
|
||||
|
||||
endif
|
||||
|
||||
endif
|
||||
# library.make loaded
|
||||
|
|
|
@ -19,6 +19,10 @@
|
|||
# If not, write to the Free Software Foundation,
|
||||
# 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
|
||||
# prevent multiple inclusions
|
||||
ifeq ($(OBJC_PROGRAM_MAKE_LOADED),)
|
||||
OBJC_PROGRAM_MAKE_LOADED=yes
|
||||
|
||||
#
|
||||
# The name of the ObjC program is in the OBJC_PROGRAM_NAME variable.
|
||||
#
|
||||
|
@ -104,3 +108,6 @@ internal-objc-program-distclean::
|
|||
static_profile_debug_obj
|
||||
|
||||
endif
|
||||
|
||||
endif
|
||||
# objc.make loaded
|
||||
|
|
|
@ -20,6 +20,10 @@
|
|||
# If not, write to the Free Software Foundation,
|
||||
# 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
|
||||
# prevent multiple inclusions
|
||||
ifeq ($(RULES_MAKE_LOADED),)
|
||||
RULES_MAKE_LOADED=yes
|
||||
|
||||
# This part is included the first time make is invoked. This part defines the
|
||||
# global targets and the following implicit rule which determines the
|
||||
# TARGET_TYPE of the next thing to be build in the following make invocation
|
||||
|
@ -220,3 +224,5 @@ $(GNUSTEP_OBJ_DIR):
|
|||
@$(GNUSTEP_MAKEFILES)/mkinstalldirs ./$(GNUSTEP_OBJ_DIR)
|
||||
endif
|
||||
|
||||
endif
|
||||
# rules.make loaded
|
||||
|
|
68
test-application.make
Normal file
68
test-application.make
Normal file
|
@ -0,0 +1,68 @@
|
|||
#
|
||||
# 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
|
||||
|
||||
#
|
||||
# Include in the common makefile rules
|
||||
#
|
||||
include $(GNUSTEP_SYSTEM_ROOT)/Makefiles/rules.make
|
||||
|
||||
# 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)
|
||||
|
||||
$(TEST_APP_NAME):
|
||||
@$(MAKE) --no-print-directory $@.all.app.variables
|
||||
|
||||
else
|
||||
|
||||
# We use the application.make rules for building
|
||||
include $(GNUSTEP_SYSTEM_ROOT)/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
|
68
test-tool.make
Normal file
68
test-tool.make
Normal file
|
@ -0,0 +1,68 @@
|
|||
#
|
||||
# test-tool.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_TOOL_MAKE_LOADED),)
|
||||
TEST_TOOL_MAKE_LOADED=yes
|
||||
|
||||
#
|
||||
# Include in the common makefile rules
|
||||
#
|
||||
include $(GNUSTEP_SYSTEM_ROOT)/Makefiles/rules.make
|
||||
|
||||
# building of test tools calls the tool.make rules
|
||||
ifeq ($(INTERNAL_tool_NAME),)
|
||||
|
||||
internal-all:: $(TEST_TOOL_NAME:=.all.tool.variables)
|
||||
|
||||
internal-clean:: $(TEST_TOOL_NAME:=.clean.tool.variables)
|
||||
|
||||
internal-distclean:: $(TEST_TOOL_NAME:=.distclean.tool.variables)
|
||||
|
||||
$(TEST_TOOL_NAME):
|
||||
@$(MAKE) --no-print-directory $@.all.tool.variables
|
||||
|
||||
else
|
||||
|
||||
# We use the tool.make rules for building
|
||||
include $(GNUSTEP_SYSTEM_ROOT)/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
|
||||
|
||||
endif
|
||||
# test-tool.make loaded
|
|
@ -25,6 +25,10 @@
|
|||
# xxx We need to prefix the target name when cross-compiling
|
||||
#
|
||||
|
||||
# prevent multiple inclusions
|
||||
ifeq ($(TOOL_MAKE_LOADED),)
|
||||
TOOL_MAKE_LOADED=yes
|
||||
|
||||
#
|
||||
# Include in the common makefile rules
|
||||
#
|
||||
|
@ -100,3 +104,6 @@ internal-tool-distclean::
|
|||
static_profile_debug_obj
|
||||
|
||||
endif
|
||||
|
||||
endif
|
||||
# tool.make loaded
|
||||
|
|
Loading…
Reference in a new issue