2002-05-02 15:07:49 +00:00
# @configure_input@
1997-09-16 01:07:48 +00:00
#
1997-10-28 03:13:18 +00:00
# Main GNUmakefile for the GNUstep GNUmakefile Package.
1997-09-16 01:07:48 +00:00
#
2008-01-14 15:22:14 +00:00
# Copyright (C) 1997-2008 Free Software Foundation, Inc.
1997-09-16 01:07:48 +00:00
#
2002-10-10 17:35:42 +00:00
# Author: Scott Christley <scottc@net-community.com>
2008-01-14 15:22:14 +00:00
# Author: Nicola Pero <nicola.pero@meta-innovation.com>
1997-09-16 01:07:48 +00:00
#
# 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
2007-10-30 14:18:41 +00:00
# as published by the Free Software Foundation; either version 3
1997-09-16 01:07:48 +00:00
# of the License, or (at your option) any later version.
#
# You should have received a copy of the GNU General Public
2007-07-13 10:11:48 +00:00
# License along with this library; see the file COPYING.
1997-09-16 01:07:48 +00:00
# If not, write to the Free Software Foundation,
2005-05-22 03:20:14 +00:00
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
1997-09-16 01:07:48 +00:00
2008-01-14 15:22:14 +00:00
# Disable all built-in suffixes for performance.
.SUFFIXES:
# Disable all built-in rules with a vague % as target, for performance.
%: %.c
%: %.cpp
%: %.cc
%: %.C
(%): %
%:: %,v
%:: RCS/%,v
%:: RCS/%
%:: s.%
%:: SCCS/s.%
1997-09-16 01:07:48 +00:00
#
1997-10-28 03:13:18 +00:00
# I've thought about using the Makefile package files
# to install the GNUmakefile package, a cool little recursion,
1997-09-16 01:07:48 +00:00
# but there is nothing to made, and the files get installed
# in a special directory, so it was simpler this way.
#
2006-09-18 20:29:28 +00:00
include config-noarch.make
1997-09-25 19:26:02 +00:00
include config.make
2006-07-05 17:23:22 +00:00
2001-02-19 15:29:22 +00:00
# To install everything inside a temporary directory (say as part of
# building a binary package - deb or rpm), use something like `make
2006-09-28 00:31:59 +00:00
# install DESTDIR=/var/tmp/gnustep-make'
DESTDIR =
2001-02-19 15:29:22 +00:00
2006-09-28 00:31:59 +00:00
# 'special_prefix' is an old alias for DESTDIR.
ifneq ($(special_prefix),)
2008-01-14 15:22:14 +00:00
ifeq ($(GNUSTEP_MAKE_STRICT_V2_MODE),yes)
$(error "ERROR: special_prefix is deprecated. Please use DESTDIR instead")
else
$(warning "WARNING: special_prefix is deprecated. Please use DESTDIR instead")
endif
2006-09-28 00:31:59 +00:00
DESTDIR = $(special_prefix)
endif
2007-02-16 04:22:26 +00:00
override GNUSTEP_CONFIG_FILE = $(DESTDIR)@GNUSTEP_CONFIG_FILE@
override GNUSTEP_CONFIG_FILE_DIR = $(dir $(GNUSTEP_CONFIG_FILE))
tooldir = $(DESTDIR)@GNUSTEP_SYSTEM_TOOLS@
2006-09-28 00:31:59 +00:00
makedir = $(DESTDIR)@GNUSTEP_MAKEFILES@
2007-12-17 14:38:14 +00:00
mandir = $(DESTDIR)@GNUSTEP_SYSTEM_DOC_MAN@
1997-09-16 01:07:48 +00:00
srcdir = @srcdir@
2002-01-21 17:17:17 +00:00
VPATH = @srcdir@
2011-02-16 09:46:28 +00:00
testdir=$(makedir)/TestFramework
1997-09-16 01:07:48 +00:00
2007-02-16 04:22:26 +00:00
override GNUSTEP_IS_FLATTENED = @GNUSTEP_IS_FLATTENED@
override GNUSTEP_TARGET_CPU = @clean_target_cpu@
override GNUSTEP_TARGET_VENDOR = @clean_target_vendor@
override GNUSTEP_TARGET_OS = @clean_target_os@
1997-09-18 01:36:07 +00:00
2007-02-16 04:22:26 +00:00
override GNUSTEP_LIB_COMBO = @ac_cv_library_combo@
2000-12-05 16:11:55 +00:00
2006-10-02 15:54:56 +00:00
ifeq ($(GNUSTEP_IS_FLATTENED), no)
2016-06-25 07:12:41 +00:00
override GNUSTEP_TARGET_DIR = $(GNUSTEP_TARGET_CPU)-$(GNUSTEP_TARGET_OS)
2007-02-16 04:22:26 +00:00
override GNUSTEP_TARGET_LDIR = $(GNUSTEP_TARGET_DIR)/$(GNUSTEP_LIB_COMBO)
override MAYBE_LIBRARY_COMBO = $(GNUSTEP_LIB_COMBO)
2016-05-13 09:53:44 +00:00
override MAKE_CONFIG_DIR = $(GNUSTEP_TARGET_LDIR)
2000-12-05 16:11:55 +00:00
else
2007-02-16 04:22:26 +00:00
override GNUSTEP_TARGET_DIR = .
override GNUSTEP_TARGET_LDIR = .
override MAYBE_LIBRARY_COMBO = .
2016-06-25 07:12:41 +00:00
override MAKE_CONFIG_DIR = .
2000-12-05 16:11:55 +00:00
endif
2003-07-29 11:56:20 +00:00
export GNUSTEP_TARGET_DIR
export GNUSTEP_TARGET_LDIR
export MAYBE_LIBRARY_COMBO
1997-10-03 22:02:27 +00:00
INSTALL = @INSTALL@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_DATA = @INSTALL_DATA@
2000-06-13 15:14:23 +00:00
2002-10-04 13:56:01 +00:00
VERTAG = $(subst .,_,$(GNUSTEP_MAKE_VERSION))
2001-01-16 03:17:45 +00:00
2006-03-14 04:40:03 +00:00
SVNPREFIX=svn+ssh://svn.gna.org/svn/gnustep/tools/make
2000-06-13 15:14:23 +00:00
MAKE_FILES = aggregate.make application.make bundle.make service.make \
2007-12-12 00:27:17 +00:00
common.make empty.make library-combo.make java.make jni.make library.make \
2010-02-12 22:00:05 +00:00
messages.make parallel-subdirectories.make rules.make serial-subdirectories.make \
target.make names.make resource-set.make \
2001-12-08 17:01:14 +00:00
tool.make ctool.make test-library.make \
2000-08-07 22:06:04 +00:00
objc.make test-application.make test-tool.make subproject.make \
2001-10-15 23:18:51 +00:00
palette.make gswapp.make gswbundle.make clibrary.make \
2008-01-17 02:44:27 +00:00
documentation.make java-tool.make framework.make \
2007-02-18 06:02:43 +00:00
native-library.make spec-rules.template \
2007-02-12 22:59:16 +00:00
tar-exclude-list gnustep-make-help
1997-10-03 22:02:27 +00:00
2002-02-20 15:36:29 +00:00
MASTER_MAKE_FILES = \
2010-02-12 22:00:05 +00:00
source-distribution.make rpm.make rules.make \
2002-02-20 15:36:29 +00:00
application.make bundle.make clibrary.make ctool.make \
2002-02-27 16:27:35 +00:00
documentation.make framework.make gswapp.make gswbundle.make \
2013-09-20 02:26:44 +00:00
library.make nsis.make deb.make objc.make java.make java-tool.make palette.make \
2010-02-12 22:00:05 +00:00
parallel-subdirectories.make resource-set.make serial-subdirectories.make \
service.make subproject.make test-application.make \
2002-02-27 16:56:30 +00:00
test-library.make test-tool.make tool.make
2002-01-30 16:50:17 +00:00
2002-02-20 15:36:29 +00:00
INSTANCE_MAKE_FILES = \
rules.make \
application.make bundle.make clibrary.make ctool.make \
2002-02-27 16:27:35 +00:00
documentation.make framework.make gswapp.make gswbundle.make \
2002-02-27 16:35:30 +00:00
library.make objc.make java.make java-tool.make palette.make \
2002-03-04 18:32:25 +00:00
resource-set.make service.make subproject.make test-application.make \
2002-02-27 16:56:30 +00:00
test-library.make test-tool.make tool.make
2002-01-30 16:50:17 +00:00
2002-12-15 15:47:17 +00:00
INSTANCE_SHARED_MAKE_FILES = bundle.make headers.make java.make \
2016-07-10 17:35:05 +00:00
pkgconfig.make stamp-string.make strings.make
2002-02-08 15:32:39 +00:00
2002-11-04 12:33:21 +00:00
INSTANCE_DOC_MAKE_FILES = autogsdoc.make gsdoc.make install_files.make \
javadoc.make latex.make texi.make
2011-02-07 20:41:58 +00:00
TEST_FRAMEWORK_FILES = \
2011-02-13 12:47:05 +00:00
GNUmakefile.in Testing.h ObjectTesting.h README \
example1.m example2.m example3.m example4.m example5.m \
2011-02-22 13:24:05 +00:00
example6.m example7.m example8.m example9.m
2011-02-07 20:41:58 +00:00
2008-01-15 14:35:36 +00:00
# Decide which version of the GNUstep.conf file we are going to
# install; the standard one, or the strict gnustep-make v2 one ?
ifeq ($(GNUSTEP_MAKE_STRICT_V2_MODE),yes)
GNUSTEP_DOT_CONF_FILE = GNUstep-strict-v2.conf
else
GNUSTEP_DOT_CONF_FILE = GNUstep.conf
endif
# You can type 'make messages=yes' to see exactly which commands are
# being executed. Else we only print a summary description.
2002-10-10 17:35:42 +00:00
ifeq ($(messages),yes)
EC =
else
EC = @
endif
2001-12-13 14:31:33 +00:00
2014-05-05 00:47:20 +00:00
# To produce a signed Debian source and binary package,
# call 'make debsign=yes'.
ifeq ($(debsign),yes)
DEBUILD_ARGS = -nc
else
DEBUILD_ARGS = -us -uc -nc
endif
2014-05-06 01:29:07 +00:00
# Version code that will be used in 'svn-export' target. Expand immediately;
# it should be constant in the script.
2014-05-11 01:07:59 +00:00
DATE_TIME_VERSION := $(shell date +%Y%m%d%H%M)
2014-05-06 01:29:07 +00:00
# Revision; potentially expensive so expand when used.
SVN_REVISION = $(shell svn info . | sed -ne 's/^Revision: //p')
# Used to override version of .tar.gz that will be copied and used as .orig.tar.gz.
ifeq ($(DEB_TARBALL_VERSION), )
DEB_TARBALL_VERSION = $(GNUSTEP_MAKE_VERSION)
endif
2006-09-08 11:19:09 +00:00
all: generated-files
2008-05-24 12:17:44 +00:00
$(EC)(echo "Thanks. All is ready: type '$(MAKE) install' to install gnustep-make.")
2006-09-08 11:19:09 +00:00
2006-09-08 18:36:20 +00:00
install: generated-files
2007-02-16 04:22:26 +00:00
$(EC)(echo "Creating system tools directory: $(tooldir)"; \
2007-12-20 04:02:20 +00:00
"$(srcdir)/mkinstalldirs" "$(tooldir)"; \
2002-10-10 17:35:42 +00:00
echo "Creating makefile directories in: $(makedir)"; \
2007-12-20 04:02:20 +00:00
"$(srcdir)/mkinstalldirs" \
"$(makedir)" \
"$(makedir)/$(GNUSTEP_TARGET_DIR)" \
"$(makedir)/$(GNUSTEP_TARGET_LDIR)" \
"$(makedir)/Additional" \
"$(makedir)/Auxiliary" \
"$(makedir)/Master" \
"$(makedir)/Instance" \
"$(makedir)/Instance/Shared" \
2011-02-07 20:41:58 +00:00
"$(makedir)/Instance/Documentation" \
2011-02-16 09:46:28 +00:00
"$(testdir)")
2005-10-12 16:47:33 +00:00
$(EC)(echo "Installing GNUstep configuration file in $(GNUSTEP_CONFIG_FILE)"; \
2007-12-20 04:02:20 +00:00
"$(srcdir)/mkinstalldirs" "$(GNUSTEP_CONFIG_FILE_DIR)"; \
2008-01-15 14:35:36 +00:00
$(INSTALL_DATA) $(GNUSTEP_DOT_CONF_FILE) "$(GNUSTEP_CONFIG_FILE)")
2006-09-08 11:19:09 +00:00
$(EC)(echo "Installing gnustep-make support software")
2002-10-10 17:35:42 +00:00
$(EC)(for f in config.guess config.sub install-sh mkinstalldirs \
2002-01-21 17:49:03 +00:00
clean_cpu.sh clean_os.sh \
2007-02-19 12:37:13 +00:00
clean_vendor.sh cpu.sh os.sh vendor.sh \
print_unique_pathlist.sh \
2007-02-14 13:19:38 +00:00
relative_path.sh strip_makefiles.sh; do \
2007-12-20 04:02:20 +00:00
$(INSTALL_PROGRAM) -m 755 "$(srcdir)/$$f" "$(makedir)"; \
2002-10-10 17:35:42 +00:00
done)
2007-12-20 04:02:20 +00:00
$(EC)($(INSTALL_DATA) GNUstep.sh "$(makedir)"; \
$(INSTALL_DATA) GNUstep.csh "$(makedir)"; \
$(INSTALL_DATA) filesystem.sh "$(makedir)"; \
$(INSTALL_DATA) filesystem.csh "$(makedir)"; \
$(INSTALL_DATA) "$(srcdir)/GNUstep-reset.sh" "$(makedir)"; \
$(INSTALL_PROGRAM) -m 755 fixpath.sh "$(makedir)"; \
$(INSTALL_PROGRAM) -m 755 openapp "$(tooldir)"; \
$(INSTALL_PROGRAM) -m 755 "$(srcdir)/debugapp" "$(tooldir)"; \
$(INSTALL_PROGRAM) -m 755 opentool "$(tooldir)"; \
$(INSTALL_PROGRAM) -m 755 gnustep-config "$(tooldir)")
2002-10-10 17:35:42 +00:00
$(EC)(echo "Installing makefiles"; \
for f in $(MAKE_FILES); do \
2007-12-20 04:02:20 +00:00
$(INSTALL_DATA) "$(srcdir)/$$f" "$(makedir)"; \
2002-10-10 17:35:42 +00:00
done; \
for f in $(MASTER_MAKE_FILES); do \
2007-12-20 04:02:20 +00:00
$(INSTALL_DATA) "$(srcdir)/Master/$$f" "$(makedir)/Master"; \
2002-10-10 17:35:42 +00:00
done; \
for f in $(INSTANCE_MAKE_FILES); do \
2007-12-20 04:02:20 +00:00
$(INSTALL_DATA) "$(srcdir)/Instance/$$f" "$(makedir)/Instance"; \
2002-10-10 17:35:42 +00:00
done; \
for f in $(INSTANCE_SHARED_MAKE_FILES); do \
2007-12-20 04:02:20 +00:00
$(INSTALL_DATA) "$(srcdir)/Instance/Shared/$$f" \
"$(makedir)/Instance/Shared"; \
2002-10-10 17:35:42 +00:00
done; \
2002-11-04 12:33:21 +00:00
for f in $(INSTANCE_DOC_MAKE_FILES); do \
2007-12-20 04:02:20 +00:00
$(INSTALL_DATA) "$(srcdir)/Instance/Documentation/$$f" \
"$(makedir)/Instance/Documentation"; \
2002-11-04 12:33:21 +00:00
done; \
2008-01-17 02:44:27 +00:00
$(INSTALL_PROGRAM) -m 755 "$(srcdir)/app-wrapper.template" "$(makedir)"; \
$(INSTALL_PROGRAM) -m 755 "$(srcdir)/java-executable.template" "$(makedir)"; \
$(INSTALL_PROGRAM) -m 755 executable.template "$(makedir)"; \
2007-12-20 04:02:20 +00:00
$(INSTALL_DATA) "$(srcdir)/nsi-app.template" "$(makedir)"; \
2014-04-07 00:42:20 +00:00
$(INSTALL_DATA) -m 755 "$(srcdir)/bake_debian_files.sh" "$(makedir)"; \
2007-12-20 04:02:20 +00:00
$(INSTALL_DATA) config-noarch.make "$(makedir)"; \
$(INSTALL_DATA) filesystem.make "$(makedir)"; \
2016-05-13 09:53:44 +00:00
$(INSTALL_DATA) config.make "$(makedir)/$(MAKE_CONFIG_DIR)")
2011-02-07 20:41:58 +00:00
$(EC)(echo "Installing Test Framework scripts"; \
2011-02-08 18:12:34 +00:00
$(INSTALL_PROGRAM) -m 755 TestFramework/gnustep-tests "$(tooldir)"; \
2011-03-14 10:13:14 +00:00
$(INSTALL_PROGRAM) -m 755 $(srcdir)/TestFramework/Summary.sh "$(testdir)")
2011-02-07 20:41:58 +00:00
$(EC)(echo "Installing Test Framework support files"; \
for f in $(TEST_FRAMEWORK_FILES); do \
2011-02-16 09:46:28 +00:00
$(INSTALL_DATA) "$(srcdir)/TestFramework/$$f" "$(testdir)"; \
2011-02-07 20:41:58 +00:00
done)
2008-01-15 14:35:36 +00:00
$(EC)(echo "Installing (and compressing) manpages"; \
2007-12-20 04:02:20 +00:00
"$(srcdir)/mkinstalldirs" "$(mandir)/man1" \
"$(mandir)/man7"; \
2007-12-26 22:00:52 +00:00
$(INSTALL_DATA) "$(srcdir)/Documentation/debugapp.1" "$(mandir)/man1"; \
2016-05-13 09:53:44 +00:00
which gzip > /dev/null 2>&1 && rm -f "$(mandir)/man1/debugapp.1.gz" && gzip -9 -n "$(mandir)/man1/debugapp.1"; \
2007-12-26 22:00:52 +00:00
$(INSTALL_DATA) "$(srcdir)/Documentation/gnustep-config.1" "$(mandir)/man1"; \
2016-05-13 09:53:44 +00:00
which gzip > /dev/null 2>&1 && rm -f "$(mandir)/man1/gnustep-config.1.gz" && gzip -9 -n "$(mandir)/man1/gnustep-config.1"; \
2014-07-29 10:12:46 +00:00
$(INSTALL_DATA) "$(srcdir)/Documentation/gnustep-tests.1" "$(mandir)/man1"; \
2016-05-13 09:53:44 +00:00
which gzip > /dev/null 2>&1 && rm -f "$(mandir)/man1/gnustep-tests.1.gz" && gzip -9 -n "$(mandir)/man1/gnustep-tests.1"; \
2007-12-20 04:02:20 +00:00
$(INSTALL_DATA) "$(srcdir)/Documentation/openapp.1" "$(mandir)/man1"; \
2016-05-13 09:53:44 +00:00
which gzip > /dev/null 2>&1 && rm -f "$(mandir)/man1/openapp.1.gz" && gzip -9 -n "$(mandir)/man1/openapp.1"; \
2007-12-26 22:00:52 +00:00
$(INSTALL_DATA) "$(srcdir)/Documentation/opentool.1" "$(mandir)/man1"; \
2016-05-13 09:53:44 +00:00
which gzip > /dev/null 2>&1 && rm -f "$(mandir)/man1/opentool.1.gz" && gzip -9 -n "$(mandir)/man1/opentool.1"; \
2007-12-20 04:02:20 +00:00
$(INSTALL_DATA) "$(srcdir)/Documentation/GNUstep.7" "$(mandir)/man7"; \
2016-05-13 09:53:44 +00:00
which gzip > /dev/null 2>&1 && rm -f "$(mandir)/man7/GNUstep.7.gz" && gzip -9 -n "$(mandir)/man7/GNUstep.7"; \
2007-12-26 22:00:52 +00:00
$(INSTALL_DATA) "$(srcdir)/Documentation/library-combo.7" "$(mandir)/man7"; \
2016-05-13 09:53:44 +00:00
which gzip > /dev/null 2>&1 && rm -f "$(mandir)/man7/library-combo.7.gz" && gzip -9 -n "$(mandir)/man7/library-combo.7")
2003-10-13 18:34:36 +00:00
$(EC)(if [ "@GNUSTEP_STRIP_MAKEFILES@" = "strip" ]; then \
echo "Stripping makefiles and shell scripts..."; \
2007-12-20 04:02:20 +00:00
cd "$(makedir)"; ./strip_makefiles.sh; \
2003-10-13 18:34:36 +00:00
fi)
2014-05-05 00:47:20 +00:00
$(EC)(if [ "@GNUSTEP_INSTALL_LD_SO_CONF@" = "yes" ] ; then \
echo "Installing ld.so.conf.d/gnustep-make.conf due to custom prefix..."; \
"$(srcdir)/mkinstalldirs" $(DESTDIR)/etc/ld.so.conf.d ; \
$(INSTALL_DATA) gnustep-make-ld.so.conf "$(DESTDIR)/etc/ld.so.conf.d/gnustep-make.conf"; \
\
fi)
1997-09-16 01:07:48 +00:00
uninstall:
2007-12-26 22:00:52 +00:00
rm -f "$(mandir)/man1/debugapp.1" "$(mandir)/man1/debugapp.1.gz"; \
rm -f "$(mandir)/man1/gnustep-config.1" "$(mandir)/man1/gnustep-config.1.gz"; \
2014-07-29 10:12:46 +00:00
rm -f "$(mandir)/man1/gnustep-tests.1" "$(mandir)/man1/gnustep-tests.1.gz"; \
2007-12-20 04:02:20 +00:00
rm -f "$(mandir)/man1/openapp.1" "$(mandir)/man1/openapp.1.gz"; \
2007-12-26 22:00:52 +00:00
rm -f "$(mandir)/man1/opentool.1" "$(mandir)/man1/opentool.1.gz"; \
2007-12-20 04:02:20 +00:00
rm -f "$(mandir)/man7/GNUstep.7" "$(mandir)/man7/GNUstep.7.gz"; \
2007-12-26 22:00:52 +00:00
rm -f "$(mandir)/man7/library-combo.7" "$(mandir)/man7/library-combo.7.gz"
-rmdir "$(mandir)/man1"
-rmdir "$(mandir)/man7"
-rmdir "$(mandir)"
1997-11-13 21:28:59 +00:00
for f in config.guess config.sub install-sh mkinstalldirs \
2002-01-21 17:49:03 +00:00
clean_cpu.sh clean_os.sh \
2008-10-21 14:45:48 +00:00
clean_vendor.sh cpu.sh os.sh vendor.sh \
print_unique_pathlist.sh fixpath.sh \
2007-02-19 12:37:13 +00:00
filesystem.sh filesystem.csh \
2004-06-14 18:23:00 +00:00
GNUstep.sh GNUstep.csh GNUstep-reset.sh \
relative_path.sh strip_makefiles.sh; do \
2007-12-20 04:02:20 +00:00
rm -f "$(makedir)/$$f"; \
1997-11-13 21:28:59 +00:00
done
2007-12-20 04:02:20 +00:00
rm -f "$(tooldir)/openapp"; \
rm -f "$(tooldir)/debugapp"; \
rm -f "$(tooldir)/opentool"; \
rm -f "$(tooldir)/gnustep-config"; \
2011-02-08 18:12:34 +00:00
rm -f "$(tooldir)/gnustep-tests"; \
2011-02-16 09:46:28 +00:00
rm -f "$(testdir)/Summary.sh"; \
2000-06-13 15:14:23 +00:00
for f in $(MAKE_FILES); do \
2007-12-20 04:02:20 +00:00
rm -f "$(makedir)/$$f"; \
1997-11-13 21:28:59 +00:00
done
2004-06-14 18:23:00 +00:00
for f in $(MASTER_MAKE_FILES); do \
2007-12-20 04:02:20 +00:00
rm -f "$(makedir)/Master/$$f"; \
2004-06-14 18:23:00 +00:00
done
for f in $(INSTANCE_MAKE_FILES); do \
2007-12-20 04:02:20 +00:00
rm -f "$(makedir)/Instance/$$f"; \
2004-06-14 18:23:00 +00:00
done
for f in $(INSTANCE_SHARED_MAKE_FILES); do \
2007-12-20 04:02:20 +00:00
rm -f "$(makedir)/Instance/Shared/$$f"; \
2004-06-14 18:23:00 +00:00
done
for f in $(INSTANCE_DOC_MAKE_FILES); do \
2007-12-20 04:02:20 +00:00
rm -f "$(makedir)/Instance/Documentation/$$f"; \
2004-06-14 18:23:00 +00:00
done
2011-02-07 20:41:58 +00:00
for f in $(TEST_FRAMEWORK_FILES); do \
2011-02-16 09:46:28 +00:00
rm -f "$(testdir)/$$f"; \
2011-02-07 20:41:58 +00:00
done
2007-12-20 04:02:20 +00:00
rm -f "$(makedir)/executable.template"
rm -f "$(makedir)/app-wrapper.template"
2008-01-17 02:44:27 +00:00
rm -f "$(makedir)/java-executable.template"
2007-12-20 04:02:20 +00:00
rm -f "$(makedir)/nsi-app.template"
2014-04-07 00:42:20 +00:00
rm -f "$(makedir)/bake_debian_files.sh"
2007-12-20 04:02:20 +00:00
rm -f "$(makedir)/config-noarch.make"
rm -f "$(makedir)/filesystem.make"
2016-05-13 09:53:44 +00:00
rm -f "$(makedir)/$(MAKE_CONFIG_DIR)/config.make"
2007-12-17 14:38:14 +00:00
rm -f "$(GNUSTEP_CONFIG_FILE)"
2007-12-26 22:00:52 +00:00
-rmdir "$(GNUSTEP_CONFIG_FILE_DIR)"
2011-02-16 09:46:28 +00:00
-rmdir "$(testdir)"
2009-01-07 11:41:57 +00:00
-rmdir "$(makedir)/Instance/Documentation"
-rmdir "$(makedir)/Instance/Shared"
-rmdir "$(makedir)/Instance"
-rmdir "$(makedir)/Master"
-rmdir "$(makedir)/Auxiliary"
-rmdir "$(makedir)/Additional"
-rmdir "$(makedir)/$(GNUSTEP_TARGET_LDIR)"
-rmdir "$(makedir)/$(GNUSTEP_TARGET_DIR)"
-rmdir "$(makedir)/$(GNUSTEP_TARGET_CPU)"
2016-05-13 09:53:44 +00:00
-rmdir "$(makedir)/$(GNUSTEP_LIB_COMBO)"
2009-01-07 11:41:57 +00:00
-rmdir "$(makedir)"
-rmdir "$(tooldir)"
2002-10-10 17:35:42 +00:00
1997-09-16 01:07:48 +00:00
clean:
2014-01-16 07:30:10 +00:00
(cd Documentation; $(MAKE) distclean)
2006-09-08 11:19:09 +00:00
rm -f *~ Master/*~ Instance/*~ Instance/Shared/*~
1997-09-16 01:07:48 +00:00
distclean: clean
2014-01-16 07:30:10 +00:00
(cd Documentation; $(MAKE) distclean)
2006-09-18 20:29:28 +00:00
rm -f GNUmakefile config-noarch.make config.make config.h
1997-09-16 01:07:48 +00:00
rm -f config.cache config.log config.status
2007-01-16 16:40:24 +00:00
rm -f openapp opentool executable.template
2007-02-12 16:42:23 +00:00
rm -f GNUstep.sh GNUstep.csh fixpath.sh gnustep-config
2007-02-14 02:38:15 +00:00
rm -f filesystem.make filesystem.sh filesystem.csh
2008-01-15 14:35:36 +00:00
rm -f gnustep-make.spec GNUstep.conf GNUstep-strict-v2.conf
2007-12-15 02:59:42 +00:00
rm -f config-precomp-test.out config-precomp-test.h.gch config-precomp-test.log
2014-04-07 00:42:20 +00:00
rm -f debian_dist/
1997-09-16 01:07:48 +00:00
2014-01-10 10:25:47 +00:00
docs:
2014-01-12 07:19:13 +00:00
(cd Documentation; $(MAKE))
2014-01-10 10:25:47 +00:00
install-docs:
2014-01-12 07:19:13 +00:00
(cd Documentation; $(MAKE) install)
2014-01-10 10:25:47 +00:00
install-all: install install-docs
2006-03-14 04:40:03 +00:00
svn-tag:
svn copy $(SVNPREFIX)/trunk $(SVNPREFIX)/tags/make-$(VERTAG) \
2006-03-14 04:42:20 +00:00
-m "Tag version $(VERTAG)"
2006-03-14 04:40:03 +00:00
2007-11-07 20:06:34 +00:00
svn-tag-stable:
svn copy $(SVNPREFIX)/branches/stable $(SVNPREFIX)/tags/make-$(VERTAG) \
-m "Tag version $(VERTAG)"
2006-03-14 04:40:03 +00:00
svn-dist:
svn export $(SVNPREFIX)/tags/make-$(VERTAG) \
gnustep-make-$(GNUSTEP_MAKE_VERSION)
tar --gzip -cf gnustep-make-$(GNUSTEP_MAKE_VERSION).tar.gz gnustep-make-$(GNUSTEP_MAKE_VERSION)
2006-03-14 04:42:20 +00:00
rm -rf gnustep-make-$(GNUSTEP_MAKE_VERSION)
2006-03-14 04:40:03 +00:00
2006-12-05 11:38:10 +00:00
svn-snapshot:
svn export $(SVNPREFIX)/trunk \
2014-05-11 01:07:59 +00:00
gnustep-make-$(GNUSTEP_MAKE_VERSION)~svn$(SVN_REVISION)
tar --gzip -cf gnustep-make-$(GNUSTEP_MAKE_VERSION)~svn$(SVN_REVISION).tar.gz gnustep-make-$(GNUSTEP_MAKE_VERSION)~svn$(SVN_REVISION)
echo $(GNUSTEP_MAKE_VERSION)~svn$(SVN_REVISION) > svn-snapshot-tarball-version
rm -rf gnustep-make-$(GNUSTEP_MAKE_VERSION)~svn$(SVN_REVISION)
2006-12-05 11:38:10 +00:00
2014-04-07 00:42:20 +00:00
svn-export:
@echo Note: any local changes are included.
svn export . \
2014-05-11 01:07:59 +00:00
gnustep-make-$(GNUSTEP_MAKE_VERSION)~svn$(SVN_REVISION)~date$(DATE_TIME_VERSION)
tar --gzip -cf gnustep-make-$(GNUSTEP_MAKE_VERSION)~svn$(SVN_REVISION)~date$(DATE_TIME_VERSION).tar.gz gnustep-make-$(GNUSTEP_MAKE_VERSION)~svn$(SVN_REVISION)~date$(DATE_TIME_VERSION)
echo $(GNUSTEP_MAKE_VERSION)~svn$(SVN_REVISION)~date$(DATE_TIME_VERSION) > svn-export-tarball-version
rm -rf gnustep-make-$(GNUSTEP_MAKE_VERSION)~svn$(SVN_REVISION)~date$(DATE_TIME_VERSION)
2014-04-07 00:42:20 +00:00
2001-02-14 16:02:17 +00:00
cvs-tag:
cvs -z3 rtag make-$(VERTAG) make
2001-01-16 03:17:45 +00:00
cvs-dist:
cvs -z3 export -r make-$(VERTAG) make
2001-01-17 14:41:15 +00:00
mv make gnustep-make-$(GNUSTEP_MAKE_VERSION)
tar --gzip -cf gnustep-make-$(GNUSTEP_MAKE_VERSION).tar.gz gnustep-make-$(GNUSTEP_MAKE_VERSION)
rm -rf gnustep-make-$(GNUSTEP_MAKE_VERSION)
cvs-snapshot:
cvs -z3 export -D now make
mv make gnustep-make-$(GNUSTEP_MAKE_VERSION)
tar --gzip -cf gnustep-make-$(GNUSTEP_MAKE_VERSION).tar.gz gnustep-make-$(GNUSTEP_MAKE_VERSION)
rm -rf gnustep-make-$(GNUSTEP_MAKE_VERSION)
2017-12-07 21:39:12 +00:00
ifeq ($(GIT_TAG_SIGN), )
GIT_TAG_ANNOTATION_FLAGS = -a
else
ifeq ($(GIT_TAG_SIGN), yes)
GIT_TAG_ANNOTATION_FLAGS = -s
else
GIT_TAG_ANNOTATION_FLAGS = -u $(GIT_TAG_SIGN)
endif
endif
git-tag-stable:
echo "*Error* tagging stable branch in Git is not supported at this time." && exit 1
ifeq ($(GIT_TAG_ANNOUNCE_FILE),)
git-tag:
git tag \
$(GIT_TAG_ANNOTATION_FLAGS) \
make-$(VERTAG) \
-m "Release $(GNUSTEP_MAKE_VERSION)."
else
ifneq ($(GIT_TAG_ANNOUNCE_OMIT_PREFACE),yes)
2017-12-10 16:11:16 +00:00
.INTERMEDIATE += git-tag-announce-file_$(GNUSTEP_MAKE_VERSION).tmp
git-tag-announce-file_$(GNUSTEP_MAKE_VERSION).tmp: $(GIT_TAG_ANNOUNCE_FILE)
printf "Release $(GNUSTEP_MAKE_VERSION).\n\n" > $@
cat $(GIT_TAG_ANNOUNCE_FILE) >> $@
2017-12-07 21:39:12 +00:00
2017-12-10 16:11:16 +00:00
git-tag: git-tag-announce-file_$(GNUSTEP_MAKE_VERSION).tmp
2017-12-07 21:39:12 +00:00
git tag \
$(GIT_TAG_ANNOTATION_FLAGS) \
make-$(VERTAG) \
2017-12-10 16:11:16 +00:00
-F $<
2017-12-07 21:39:12 +00:00
else
git-tag:
git tag \
$(GIT_TAG_ANNOTATION_FLAGS) \
make-$(VERTAG) \
-F $(GIT_TAG_ANNOUNCE_FILE)
endif
endif
git-dist:
git archive --format=tar.gz make-$(VERTAG) -o gnustep-make-$(GNUSTEP_MAKE_VERSION).tar.gz --prefix=gnustep-make-$(GNUSTEP_MAKE_VERSION)/
2019-10-29 14:46:49 +00:00
hg-tag:
hg tag -m "Release $(PACKAGE_VERSION)" make-$(VERTAG)
hg-dist:
hg archive -r make-$(VERTAG) -p gnustep-make-$(GNUSTEP_MAKE_VERSION)/ \
gnustep-make-$(GNUSTEP_MAKE_VERSION).tar.gz
2001-03-19 14:15:58 +00:00
test-RPM_TOPDIR:
@(if [ -z "$(RPM_TOPDIR)" ]; then \
echo "Error - RPM_TOPDIR variable not set."; \
echo "You need to set it to the top of your rpm directory tree"; \
exit 1; \
fi)
2002-10-14 11:15:41 +00:00
# The check for rpmbuild is for old RPM versions which didn't have
# rpmbuild and used 'rpm -ba' instead. It can be removed when we are
# reasonably sure no more old RPM versions (not having rpmbuild), are
# still around.
2011-03-16 10:25:42 +00:00
rpm: test-RPM_TOPDIR svn-dist
cp gnustep-make-$(GNUSTEP_MAKE_VERSION).tar.gz $(RPM_TOPDIR)/SOURCES/
2001-01-17 14:41:15 +00:00
cp gnustep-make.spec $(RPM_TOPDIR)/SPECS/
cd $(RPM_TOPDIR)/SPECS/
2002-10-14 11:15:41 +00:00
if which rpmbuild > /dev/null 2>/dev/null; then \
rpmbuild="rpmbuild"; \
else \
if which rpm > /dev/null 2>/dev/null; then \
rpmbuild="rpm"; \
else \
echo "Error: You don't have rpm installed!"; \
rpmbuild="rpmbuild"; \
fi; \
fi; \
$${rpmbuild} -ba gnustep-make.spec
2001-01-16 03:17:45 +00:00
2014-05-06 01:29:07 +00:00
debclean:
2014-04-07 00:42:20 +00:00
-rm -rf debian_dist
2014-05-06 01:29:07 +00:00
deb: debian_dist/gnustep-make_$(DEB_TARBALL_VERSION)_any.deb
2014-05-11 01:07:59 +00:00
debian_dist/gnustep-make_$(DEB_TARBALL_VERSION)_any.deb:
$(EC)(if [ ! -e "debian_dist/gnustep-make-$(DEB_TARBALL_VERSION)/debian/control" ] ; then \
echo "Please manually run 'make debfiles' first." ; \
echo "Intentionally not automatically depending to ease customization between steps." ; \
fi)
2014-05-06 01:29:07 +00:00
cd debian_dist/gnustep-make-$(DEB_TARBALL_VERSION)/ && EDITOR=/bin/true dpkg-source --commit -q . gnustep-make-automatic
cd debian_dist/gnustep-make-$(DEB_TARBALL_VERSION)/ && debuild $(DEBUILD_ARGS) -S
cd debian_dist/gnustep-make-$(DEB_TARBALL_VERSION)/ && debuild $(DEBUILD_ARGS) -b
debfiles: debian_dist/gnustep-make_$(DEB_TARBALL_VERSION).orig.tar.gz
cd debian_dist && tar xfz gnustep-make_$(DEB_TARBALL_VERSION).orig.tar.gz
PACKAGE_NAME="gnustep-make" VERSION=$(DEB_TARBALL_VERSION) DEB_MAINTAINER="GNUstep Developers <gnustep-dev@gnu.org>" DEB_ARCHITECTURE=any /bin/bash bake_debian_files.sh debian_dist/gnustep-make-$(DEB_TARBALL_VERSION)/
# Manual export is required to permit user to override .orig.tar.gz during the build process.
# We also allow user to make a choice of where to grab .orig.tar.gz from.
debian_dist/gnustep-make_$(DEB_TARBALL_VERSION).orig.tar.gz:
$(EC)(if [ ! -e gnustep-make-$(DEB_TARBALL_VERSION).tar.gz ] ; then \
echo "Please manually create gnustep-make-$(DEB_TARBALL_VERSION).tar.gz." ; \
echo "Some available make targets:" ; \
echo " * svn-dist" ; \
echo " * svn-snapshot" ; \
echo " * svn-export" ; \
fi)
2014-04-07 00:42:20 +00:00
mkdir -p debian_dist
2014-05-06 01:29:07 +00:00
cp gnustep-make-$(DEB_TARBALL_VERSION).tar.gz debian_dist/gnustep-make_$(DEB_TARBALL_VERSION).orig.tar.gz
2013-09-20 02:26:44 +00:00
2007-02-14 02:38:15 +00:00
generated-files: GNUmakefile GNUstep.sh GNUstep.csh fixpath.sh config-noarch.make config.make \
openapp opentool gnustep-make.spec executable.template gnustep-config \
2014-05-05 00:47:20 +00:00
filesystem.make filesystem.sh filesystem.csh GNUstep.conf GNUstep-strict-v2.conf \
gnustep-make-ld.so.conf
1997-10-30 22:43:44 +00:00
1997-10-28 03:13:18 +00:00
GNUmakefile: GNUmakefile.in config.status
1997-09-16 01:07:48 +00:00
$(SHELL) config.status
1997-10-30 22:43:44 +00:00
GNUstep.sh: GNUstep.sh.in
$(SHELL) config.status
1998-04-06 03:01:59 +00:00
GNUstep.csh: GNUstep.csh.in
$(SHELL) config.status
2007-02-14 03:13:38 +00:00
GNUstep.conf: GNUstep.conf.in
$(SHELL) config.status
2008-01-15 14:35:36 +00:00
GNUstep-strict-v2.conf: GNUstep-strict-v2.conf.in
$(SHELL) config.status
2003-05-15 09:26:34 +00:00
fixpath.sh: fixpath.sh.in
$(SHELL) config.status
2007-02-14 02:38:15 +00:00
filesystem.make: filesystem.make.in
$(SHELL) config.status
filesystem.sh: filesystem.sh.in
$(SHELL) config.status
filesystem.csh: filesystem.csh.in
$(SHELL) config.status
2006-09-18 20:29:28 +00:00
config-noarch.make: config-noarch.make.in Version
$(SHELL) config.status --recheck
config.make: config.make.in
2001-10-25 09:46:16 +00:00
$(SHELL) config.status --recheck
1997-10-30 22:43:44 +00:00
openapp: openapp.in
$(SHELL) config.status
1999-02-18 06:22:33 +00:00
opentool: opentool.in
$(SHELL) config.status
2001-03-18 14:54:50 +00:00
2001-10-25 09:46:16 +00:00
gnustep-make.spec: gnustep-make.spec.in Version
$(SHELL) config.status --recheck
2001-03-18 14:54:50 +00:00
executable.template: executable.template.in
2001-03-19 14:15:58 +00:00
$(SHELL) config.status
2007-02-12 16:42:23 +00:00
gnustep-config: gnustep-config.in
$(SHELL) config.status
2014-05-05 00:47:20 +00:00
gnustep-make-ld.so.conf: gnustep-make-ld.so.conf.in
$(SHELL) config.status