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
|
|
|
#
|
2002-10-10 17:35:42 +00:00
|
|
|
# Copyright (C) 1997-2002 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>
|
|
|
|
# Author: Nicola Pero <n.pero@mi.flashnet.it>
|
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
|
|
|
|
# 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,
|
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
|
|
|
|
|
|
|
#
|
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.
|
|
|
|
#
|
|
|
|
|
1997-09-25 19:26:02 +00:00
|
|
|
include config.make
|
|
|
|
|
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
|
|
|
|
# install special_prefix=/var/tmp/gnustep-make'
|
|
|
|
special_prefix =
|
|
|
|
|
2005-10-13 01:36:52 +00:00
|
|
|
GNUSTEP_CONFIG_FILE = $(special_prefix)@GNUSTEP_CONFIG_FILE@
|
2005-10-12 16:47:33 +00:00
|
|
|
GNUSTEP_CONFIG_FILE_DIR = $(dir $(GNUSTEP_CONFIG_FILE))
|
2005-10-12 21:07:28 +00:00
|
|
|
GNUSTEP_SYSTEM_ROOT = $(special_prefix)@GNUSTEP_SYSTEM_ROOT@
|
2001-03-06 15:44:47 +00:00
|
|
|
GNUSTEP_LOCAL_ROOT = $(special_prefix)@GNUSTEP_LOCAL_ROOT@
|
|
|
|
GNUSTEP_NETWORK_ROOT = $(special_prefix)@GNUSTEP_NETWORK_ROOT@
|
1997-09-16 01:07:48 +00:00
|
|
|
srcdir = @srcdir@
|
2002-01-21 17:17:17 +00:00
|
|
|
VPATH = @srcdir@
|
1997-09-16 01:07:48 +00:00
|
|
|
|
2002-10-04 13:56:01 +00:00
|
|
|
GNUSTEP_FLATTENED = @GNUSTEP_FLATTENED@
|
|
|
|
GNUSTEP_TARGET_CPU = @clean_target_cpu@
|
|
|
|
GNUSTEP_TARGET_VENDOR = @clean_target_vendor@
|
|
|
|
GNUSTEP_TARGET_OS = @clean_target_os@
|
1997-09-18 01:36:07 +00:00
|
|
|
|
2002-10-04 13:56:01 +00:00
|
|
|
GNUSTEP_LIB_COMBO = @ac_cv_library_combo@
|
2000-12-05 16:11:55 +00:00
|
|
|
|
|
|
|
ifeq ($(GNUSTEP_FLATTENED),)
|
|
|
|
GNUSTEP_TARGET_DIR = $(GNUSTEP_TARGET_CPU)/$(GNUSTEP_TARGET_OS)
|
|
|
|
GNUSTEP_TARGET_LDIR = $(GNUSTEP_TARGET_DIR)/$(GNUSTEP_LIB_COMBO)
|
2003-07-29 11:56:20 +00:00
|
|
|
MAYBE_LIBRARY_COMBO = $(GNUSTEP_LIB_COMBO)
|
2000-12-05 16:11:55 +00:00
|
|
|
else
|
|
|
|
GNUSTEP_TARGET_DIR = .
|
|
|
|
GNUSTEP_TARGET_LDIR = .
|
2003-07-29 11:56:20 +00:00
|
|
|
MAYBE_LIBRARY_COMBO = .
|
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
|
|
|
|
|
2005-10-12 20:45:14 +00:00
|
|
|
makedir = @GNUSTEP_MAKEFILES@
|
2001-02-19 15:29:22 +00:00
|
|
|
tooldir = $(GNUSTEP_SYSTEM_ROOT)/Tools
|
1997-09-16 01:07:48 +00:00
|
|
|
|
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
|
|
|
|
2000-06-13 15:14:23 +00:00
|
|
|
MAKE_FILES = aggregate.make application.make bundle.make service.make \
|
2001-12-08 17:01:14 +00:00
|
|
|
common.make library-combo.make java.make jni.make library.make \
|
2002-06-13 16:11:31 +00:00
|
|
|
messages.make rules.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 \
|
2002-01-21 17:49:03 +00:00
|
|
|
documentation.make \
|
2001-04-27 09:57:40 +00:00
|
|
|
java-executable.template java-tool.make framework.make \
|
2003-10-19 14:24:07 +00:00
|
|
|
native-library.make spec-rules.template spec-debug-rules.template \
|
2004-09-02 16:14:21 +00:00
|
|
|
spec-debug-alone-rules.template \
|
|
|
|
tar-exclude-list
|
1997-10-03 22:02:27 +00:00
|
|
|
|
2002-02-20 15:36:29 +00:00
|
|
|
MASTER_MAKE_FILES = \
|
|
|
|
aggregate.make source-distribution.make rpm.make 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-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 \
|
|
|
|
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
|
|
|
|
|
2005-10-13 02:42:10 +00:00
|
|
|
all: generated-files which_lib$(EXEEXT)
|
1997-09-26 20:44:59 +00:00
|
|
|
|
2002-03-01 11:03:33 +00:00
|
|
|
# Please note that you should use a bit of care in the following rule,
|
2002-03-01 11:05:24 +00:00
|
|
|
# because it must work in a directory which is not the source
|
2002-03-01 11:03:33 +00:00
|
|
|
# directory - so for example $<, rather than which_lib.c, must be
|
|
|
|
# used. (I mean: 'cd core/make; cd ..; mkdir make-build; cd
|
|
|
|
# make-build; ../make/configure --disable-import; make;' must work)
|
2002-02-28 15:01:51 +00:00
|
|
|
which_lib$(EXEEXT): which_lib.c config.h
|
2002-03-01 11:03:33 +00:00
|
|
|
$(CC) @CFLAGS@ -Wall -I. -o $@ $<
|
2002-02-28 15:01:51 +00:00
|
|
|
|
2002-10-10 17:35:42 +00:00
|
|
|
ifeq ($(messages),yes)
|
|
|
|
EC =
|
|
|
|
else
|
|
|
|
EC = @
|
|
|
|
endif
|
2001-12-13 14:31:33 +00:00
|
|
|
|
2003-06-17 03:50:41 +00:00
|
|
|
move_obsolete:
|
2003-04-28 02:29:49 +00:00
|
|
|
$(EC)(echo "Moving paths from old heirarchy: "; \
|
2005-11-28 21:07:45 +00:00
|
|
|
$(srcdir)/move_obsolete_paths.sh "$(GNUSTEP_SYSTEM_ROOT)" "$(GNUSTEP_LOCAL_ROOT)" "$(GNUSTEP_USER_ROOT)")
|
2003-06-17 03:50:41 +00:00
|
|
|
|
|
|
|
install: all @GNUSTEP_MOVE_OBSOLETE@
|
|
|
|
$(EC)(echo "Creating system domain: $(GNUSTEP_SYSTEM_ROOT)"; \
|
2005-11-28 21:07:45 +00:00
|
|
|
$(srcdir)/create_domain_dir_tree.sh "$(GNUSTEP_SYSTEM_ROOT)"; \
|
2002-10-10 17:35:42 +00:00
|
|
|
echo "Creating local and network dirs: $(GNUSTEP_LOCAL_ROOT), $(GNUSTEP_NETWORK_ROOT)"; \
|
2005-11-28 21:07:45 +00:00
|
|
|
$(srcdir)/mkinstalldirs "$(GNUSTEP_LOCAL_ROOT)" "$(GNUSTEP_NETWORK_ROOT)";\
|
2002-10-10 17:35:42 +00:00
|
|
|
echo "Creating makefile directories in: $(makedir)"; \
|
|
|
|
$(srcdir)/mkinstalldirs \
|
|
|
|
$(makedir) \
|
1997-09-18 01:36:07 +00:00
|
|
|
$(makedir)/$(GNUSTEP_TARGET_CPU) \
|
1997-09-22 22:49:02 +00:00
|
|
|
$(makedir)/$(GNUSTEP_TARGET_DIR) \
|
2001-01-29 19:34:40 +00:00
|
|
|
$(makedir)/Additional \
|
2002-10-09 11:19:48 +00:00
|
|
|
$(makedir)/Auxiliary \
|
2002-01-30 16:50:17 +00:00
|
|
|
$(makedir)/Master \
|
|
|
|
$(makedir)/Instance \
|
2002-11-04 12:33:21 +00:00
|
|
|
$(makedir)/Instance/Shared \
|
|
|
|
$(makedir)/Instance/Documentation)
|
2005-10-12 16:47:33 +00:00
|
|
|
$(EC)(echo "Installing GNUstep configuration file in $(GNUSTEP_CONFIG_FILE)"; \
|
2005-11-28 21:07:45 +00:00
|
|
|
$(srcdir)/mkinstalldirs "$(GNUSTEP_CONFIG_FILE_DIR)"; \
|
|
|
|
$(INSTALL_DATA) GNUstep.conf "$(GNUSTEP_CONFIG_FILE)")
|
|
|
|
-$(EC) rm -f "$(GNUSTEP_SYSTEM_ROOT)/Makefiles"
|
2002-10-10 17:35:42 +00:00
|
|
|
$(EC)(echo "Installing gnustep-make support software"; \
|
|
|
|
$(INSTALL_PROGRAM) -m 755 which_lib$(EXEEXT) \
|
|
|
|
$(makedir)/$(GNUSTEP_TARGET_DIR))
|
|
|
|
$(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 \
|
2003-04-06 00:32:41 +00:00
|
|
|
clean_vendor.sh cpu.sh GNUstep-reset.sh \
|
2001-01-12 18:29:47 +00:00
|
|
|
ld_lib_path.sh os.sh transform_paths.sh vendor.sh \
|
2004-03-15 13:55:11 +00:00
|
|
|
ld_lib_path.csh relative_path.sh strip_makefiles.sh; do \
|
2002-10-10 17:35:42 +00:00
|
|
|
$(INSTALL_PROGRAM) -m 755 $(srcdir)/$$f $(makedir); \
|
|
|
|
done)
|
2005-10-13 02:42:10 +00:00
|
|
|
$(EC)($(INSTALL_PROGRAM) -m 755 GNUstep.sh $(makedir); \
|
2002-10-10 17:35:42 +00:00
|
|
|
$(INSTALL_PROGRAM) -m 755 GNUstep.csh $(makedir); \
|
2003-04-11 10:46:24 +00:00
|
|
|
$(INSTALL_PROGRAM) -m 755 fixpath.sh $(makedir); \
|
2002-10-10 17:35:42 +00:00
|
|
|
$(INSTALL_PROGRAM) -m 755 openapp $(tooldir); \
|
|
|
|
$(INSTALL_PROGRAM) -m 755 debugapp $(tooldir); \
|
2004-03-15 13:55:11 +00:00
|
|
|
$(INSTALL_PROGRAM) -m 755 opentool $(tooldir))
|
2002-10-10 17:35:42 +00:00
|
|
|
$(EC)(echo "Installing makefiles"; \
|
|
|
|
for f in $(MAKE_FILES); do \
|
|
|
|
$(INSTALL_DATA) $(srcdir)/$$f $(makedir); \
|
|
|
|
done; \
|
|
|
|
for f in $(MASTER_MAKE_FILES); do \
|
|
|
|
$(INSTALL_DATA) $(srcdir)/Master/$$f $(makedir)/Master; \
|
|
|
|
done; \
|
|
|
|
for f in $(INSTANCE_MAKE_FILES); do \
|
|
|
|
$(INSTALL_DATA) $(srcdir)/Instance/$$f $(makedir)/Instance; \
|
|
|
|
done; \
|
|
|
|
for f in $(INSTANCE_SHARED_MAKE_FILES); do \
|
|
|
|
$(INSTALL_DATA) $(srcdir)/Instance/Shared/$$f \
|
|
|
|
$(makedir)/Instance/Shared; \
|
|
|
|
done; \
|
2002-11-04 12:33:21 +00:00
|
|
|
for f in $(INSTANCE_DOC_MAKE_FILES); do \
|
|
|
|
$(INSTALL_DATA) $(srcdir)/Instance/Documentation/$$f \
|
|
|
|
$(makedir)/Instance/Documentation; \
|
|
|
|
done; \
|
2002-10-10 17:35:42 +00:00
|
|
|
$(INSTALL_DATA) executable.template $(makedir); \
|
|
|
|
$(INSTALL_DATA) config.make $(makedir)/$(GNUSTEP_TARGET_DIR))
|
2002-11-06 15:28:08 +00:00
|
|
|
$(EC)($(srcdir)/mkinstalldirs $(GNUSTEP_SYSTEM_ROOT)/share; \
|
|
|
|
$(INSTALL_DATA) $(srcdir)/config.site $(GNUSTEP_SYSTEM_ROOT)/share)
|
2003-10-13 18:34:36 +00:00
|
|
|
$(EC)(if [ "@GNUSTEP_STRIP_MAKEFILES@" = "strip" ]; then \
|
|
|
|
echo "Stripping makefiles and shell scripts..."; \
|
|
|
|
cd $(makedir); ./strip_makefiles.sh; \
|
|
|
|
fi)
|
1997-09-16 01:07:48 +00:00
|
|
|
|
2002-02-20 16:19:11 +00:00
|
|
|
#
|
|
|
|
# NICOLA - Need to clean the following message and print it at the end
|
|
|
|
# of the install rule
|
|
|
|
#
|
|
|
|
# @echo ""
|
|
|
|
# @echo "IMPORTANT: you need to execute a shell initialization script"
|
|
|
|
# @echo "before you can use gnustep-make. The command to run the shell"
|
|
|
|
# @echo "initialization script is:"
|
|
|
|
# @echo ". $(makedir)/GNUstep.sh"
|
|
|
|
# @echo "(be careful to put the space after the dot)"
|
|
|
|
# @echo "Please run it now."
|
|
|
|
# @echo ""
|
2002-01-21 17:17:17 +00:00
|
|
|
|
1997-09-16 01:07:48 +00:00
|
|
|
uninstall:
|
1998-12-15 20:27:09 +00:00
|
|
|
rm -f $(makedir)/$(GNUSTEP_TARGET_DIR)/which_lib$(EXEEXT)
|
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 \
|
1997-11-13 21:28:59 +00:00
|
|
|
clean_vendor.sh cpu.sh ld_lib_path.sh os.sh \
|
1998-04-06 03:01:59 +00:00
|
|
|
transform_paths.sh vendor.sh \
|
2002-03-10 13:28:15 +00:00
|
|
|
ld_lib_path.csh fixpath.sh \
|
2004-06-14 18:23:00 +00:00
|
|
|
GNUstep.sh GNUstep.csh GNUstep-reset.sh \
|
|
|
|
relative_path.sh strip_makefiles.sh; do \
|
1997-11-13 21:28:59 +00:00
|
|
|
rm -f $(makedir)/$$f; \
|
|
|
|
done
|
|
|
|
rm -f $(tooldir)/openapp; \
|
|
|
|
rm -f $(tooldir)/debugapp; \
|
1999-02-18 06:22:33 +00:00
|
|
|
rm -f $(tooldir)/opentool; \
|
2000-06-13 15:14:23 +00:00
|
|
|
for f in $(MAKE_FILES); do \
|
1997-11-13 21:28:59 +00:00
|
|
|
rm -f $(makedir)/$$f; \
|
|
|
|
done
|
2004-06-14 18:23:00 +00:00
|
|
|
for f in $(MASTER_MAKE_FILES); do \
|
|
|
|
rm -f $(makedir)/Master/$$f; \
|
|
|
|
done
|
|
|
|
for f in $(INSTANCE_MAKE_FILES); do \
|
|
|
|
rm -f $(makedir)/Instance/$$f; \
|
|
|
|
done
|
|
|
|
for f in $(INSTANCE_SHARED_MAKE_FILES); do \
|
|
|
|
rm -f $(makedir)/Instance/Shared/$$f; \
|
|
|
|
done
|
|
|
|
for f in $(INSTANCE_DOC_MAKE_FILES); do \
|
|
|
|
rm -f $(makedir)/Instance/Documentation/$$f; \
|
|
|
|
done
|
2002-01-21 17:17:17 +00:00
|
|
|
rm -f $(makedir)/executable.template
|
2001-02-19 15:29:22 +00:00
|
|
|
rm -f $(GNUSTEP_SYSTEM_ROOT)/share/config.site
|
1997-11-13 21:28:59 +00:00
|
|
|
rm -f $(makedir)/$(GNUSTEP_TARGET_DIR)/config.make
|
2004-06-14 18:23:00 +00:00
|
|
|
-for f in $(makedir)/$(GNUSTEP_TARGET_CPU) \
|
|
|
|
$(makedir)/$(GNUSTEP_TARGET_DIR) \
|
|
|
|
$(makedir)/Additional \
|
|
|
|
$(makedir)/Auxiliary \
|
|
|
|
$(makedir)/Master \
|
|
|
|
$(makedir)/Instance/Shared \
|
|
|
|
$(makedir)/Instance/Documentation \
|
|
|
|
$(makedir)/Instance; do \
|
|
|
|
rmdir $$f; \
|
|
|
|
done
|
2002-10-10 17:35:42 +00:00
|
|
|
# To really uninstall all of GNUstep, a 'rm -Rf ${GNUSTEP_ROOT}' should do.
|
|
|
|
|
1997-09-16 01:07:48 +00:00
|
|
|
clean:
|
2005-10-13 02:42:10 +00:00
|
|
|
rm -f *~ which_lib$(EXEEXT) \
|
2002-02-28 15:01:51 +00:00
|
|
|
Master/*~ Instance/*~ Instance/Shared/*~
|
1997-09-16 01:07:48 +00:00
|
|
|
|
|
|
|
distclean: clean
|
2002-01-11 12:30:17 +00:00
|
|
|
rm -f GNUmakefile config.make config.h
|
1997-09-16 01:07:48 +00:00
|
|
|
rm -f config.cache config.log config.status
|
2001-04-13 19:49:16 +00:00
|
|
|
rm -f openapp
|
|
|
|
rm -f debugapp
|
|
|
|
rm -f opentool
|
|
|
|
rm -f executable.template
|
|
|
|
rm -f GNUstep.sh
|
|
|
|
rm -f GNUstep.csh
|
2002-11-04 12:49:18 +00:00
|
|
|
rm -f fixpath.sh
|
2001-04-13 19:49:16 +00:00
|
|
|
rm -f gnustep-make.spec
|
2004-09-03 20:34:35 +00:00
|
|
|
rm -f GNUsteprc
|
1997-09-16 01:07:48 +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)
|
|
|
|
|
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.
|
2002-10-16 03:31:46 +00:00
|
|
|
rpm: test-RPM_TOPDIR dist
|
2001-02-19 15:29:22 +00:00
|
|
|
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
|
|
|
|
2003-05-15 09:26:34 +00:00
|
|
|
generated-files: GNUmakefile GNUstep.sh GNUstep.csh fixpath.sh config.h config.make debugapp openapp opentool gnustep-make.spec executable.template
|
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
|
|
|
|
|
2003-05-15 09:26:34 +00:00
|
|
|
fixpath.sh: fixpath.sh.in
|
|
|
|
$(SHELL) config.status
|
|
|
|
|
1997-10-30 22:43:44 +00:00
|
|
|
config.h: config.h.in
|
|
|
|
$(SHELL) config.status
|
|
|
|
|
2001-10-25 09:46:16 +00:00
|
|
|
config.make: config.make.in Version
|
|
|
|
$(SHELL) config.status --recheck
|
1997-10-30 22:43:44 +00:00
|
|
|
|
|
|
|
debugapp: debugapp.in
|
|
|
|
$(SHELL) config.status
|
|
|
|
|
|
|
|
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
|