2001-01-29 19:38:39 +00:00
|
|
|
# -*-makefile-*-
|
1997-09-23 21:00:33 +00:00
|
|
|
# Makefile.postamble
|
|
|
|
#
|
|
|
|
# Copyright (C) 1997 Free Software Foundation, Inc.
|
|
|
|
#
|
|
|
|
# Author: Scott Christley <scottc@net-community.com>
|
|
|
|
#
|
|
|
|
# This file is part of the GNUstep Base Library.
|
|
|
|
#
|
|
|
|
# This library is free software; you can redistribute it and/or
|
|
|
|
# modify it under the terms of the GNU Library General Public
|
|
|
|
# License as published by the Free Software Foundation; either
|
|
|
|
# version 2 of the License, or (at your option) any later version.
|
|
|
|
#
|
|
|
|
# This library is distributed in the hope that it will be useful,
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
# Library General Public License for more details.
|
|
|
|
#
|
|
|
|
# If you are interested in a warranty or support for this source code,
|
|
|
|
# contact Scott Christley at scottc@net-community.com
|
|
|
|
#
|
|
|
|
# You should have received a copy of the GNU Library 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.
|
|
|
|
|
|
|
|
#
|
|
|
|
# Makefile.postamble
|
|
|
|
#
|
|
|
|
# Project specific makefile rules
|
|
|
|
#
|
|
|
|
# Uncomment the targets you want.
|
|
|
|
# The double colons (::) are important, do not make them single colons
|
|
|
|
# otherwise the normal makefile rules will not be performed.
|
|
|
|
#
|
|
|
|
|
|
|
|
# Things to do before compiling
|
1999-07-09 02:18:50 +00:00
|
|
|
before-all:: header-links
|
1997-09-23 21:00:33 +00:00
|
|
|
|
|
|
|
# Things to do after compiling
|
|
|
|
# after-all::
|
|
|
|
|
2001-03-16 22:33:38 +00:00
|
|
|
$(INSTALL_ROOT_DIR)$(GNUSTEP_MAKEFILES)/Additional:
|
2001-03-10 22:25:13 +00:00
|
|
|
$(MKDIRS) $(INSTALL_ROOT_DIR)$(GNUSTEP_MAKEFILES)/Additional
|
2001-03-16 22:29:21 +00:00
|
|
|
|
|
|
|
# Things to do before installing
|
2001-03-16 22:33:38 +00:00
|
|
|
before-install:: $(INSTALL_ROOT_DIR)$(GNUSTEP_MAKEFILES)/Additional
|
2001-01-29 19:38:39 +00:00
|
|
|
$(INSTALL_DATA) base.make \
|
2001-03-10 22:25:13 +00:00
|
|
|
$(INSTALL_ROOT_DIR)$(GNUSTEP_MAKEFILES)/Additional/base.make
|
1997-09-23 21:00:33 +00:00
|
|
|
|
|
|
|
# Things to do after installing
|
|
|
|
# after-install::
|
|
|
|
|
|
|
|
# Things to do before uninstalling
|
|
|
|
# before-uninstall::
|
|
|
|
|
|
|
|
# Things to do after uninstalling
|
|
|
|
# after-uninstall::
|
|
|
|
|
|
|
|
# Things to do before cleaning
|
|
|
|
# before-clean::
|
|
|
|
|
|
|
|
# Things to do after cleaning
|
|
|
|
# after-clean::
|
|
|
|
|
|
|
|
# Things to do before distcleaning
|
|
|
|
# before-distclean::
|
|
|
|
|
|
|
|
# Things to do after distcleaning
|
2001-07-17 14:07:42 +00:00
|
|
|
after-distclean:: remove-header-links
|
2001-01-31 19:02:09 +00:00
|
|
|
rm -f config.status config.log config.cache TAGS config.mak base.make
|
2000-09-13 19:52:42 +00:00
|
|
|
rm -f Headers/gnustep/base/config.h \
|
|
|
|
Headers/gnustep/base/GSConfig.h \
|
|
|
|
Headers/gnustep/base/preface.h
|
1997-09-23 21:00:33 +00:00
|
|
|
|
|
|
|
# Things to do before checking
|
|
|
|
# before-check::
|
|
|
|
|
|
|
|
# Things to do after checking
|
|
|
|
# after-check::
|
|
|
|
|
2001-07-17 14:07:42 +00:00
|
|
|
.PHONY: header-links remove-header-links
|
|
|
|
|
2001-03-13 22:44:53 +00:00
|
|
|
ifeq ($(GNUSTEP_TARGET_OS), mingw32)
|
2000-09-12 03:58:43 +00:00
|
|
|
header-links: $(HEADER_LINK_DEPENDS)
|
2001-03-13 19:05:10 +00:00
|
|
|
-rm -rf Headers/Foundation
|
2000-09-12 03:58:43 +00:00
|
|
|
-mkdir Headers/Foundation
|
|
|
|
cp -f Headers/gnustep/base/*.h Headers/Foundation
|
2001-07-17 14:07:42 +00:00
|
|
|
remove-header-links:
|
|
|
|
-rm -rf Headers/Foundation
|
2000-09-12 03:58:43 +00:00
|
|
|
|
|
|
|
else
|
1999-07-09 02:18:50 +00:00
|
|
|
header-links: $(HEADER_LINK_DEPENDS)
|
|
|
|
-rm -f Headers/Foundation
|
2000-09-12 07:13:16 +00:00
|
|
|
-rm -f Source/Foundation
|
1999-07-09 02:18:50 +00:00
|
|
|
$(LN_S) gnustep/base Headers/Foundation
|
2001-07-17 14:07:42 +00:00
|
|
|
remove-header-links:
|
|
|
|
-rm -f Headers/Foundation
|
2000-09-12 03:58:43 +00:00
|
|
|
endif
|
1999-07-09 02:18:50 +00:00
|
|
|
|
2002-01-29 10:58:47 +00:00
|
|
|
base.make: base.make.in
|
2001-12-01 11:34:12 +00:00
|
|
|
./configure
|
|
|
|
|
2002-01-29 10:58:47 +00:00
|
|
|
config.mak: config.mak.in
|
2001-12-01 11:34:12 +00:00
|
|
|
./configure
|
|
|
|
|
1998-02-09 19:06:40 +00:00
|
|
|
# Regenerate automatically generated files
|
|
|
|
regenerate: stamp-regenerate
|
|
|
|
|
|
|
|
stamp-regenerate: ChangeLog configure
|
1997-09-27 15:26:51 +00:00
|
|
|
for i in $(SUBPROJECTS); do \
|
1998-02-09 19:06:40 +00:00
|
|
|
(cd $$i; $(MAKE) $(MAKEDEFINES) regenerate); \
|
1997-09-23 21:00:33 +00:00
|
|
|
done
|
1998-02-09 19:06:40 +00:00
|
|
|
touch stamp-regenerate
|