2015-05-13 07:03:32 +00:00
|
|
|
# -*-makefile-gmake-*-
|
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
|
2005-07-15 22:51:23 +00:00
|
|
|
# modify it under the terms of the GNU General Public
|
1997-09-23 21:00:33 +00:00
|
|
|
# License as published by the Free Software Foundation; either
|
2008-06-08 10:38:33 +00:00
|
|
|
# version 2 of the License, or (at your option) any later version.
|
1997-09-23 21:00:33 +00:00
|
|
|
#
|
|
|
|
# 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
|
2005-07-15 22:51:23 +00:00
|
|
|
# General Public License for more details.
|
1997-09-23 21:00:33 +00:00
|
|
|
#
|
2005-07-15 22:51:23 +00:00
|
|
|
# You should have received a copy of the GNU General Public
|
1997-09-23 21:00:33 +00:00
|
|
|
# License along with this library; see the file COPYING.LIB.
|
|
|
|
# If not, write to the Free Software Foundation,
|
2005-05-22 03:32:16 +00:00
|
|
|
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
1997-09-23 21:00:33 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# 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
|
2015-05-13 07:03:32 +00:00
|
|
|
# Automatically run ./configure if needed to generate the makefiles
|
|
|
|
# which we need in order to do our job. If you need any special
|
|
|
|
# argument to ./configure, you can't rely on this rule, and you must
|
|
|
|
# always run ./configure manually.
|
|
|
|
before-all:: config.mak base.make
|
|
|
|
ifeq ($(_have_makefiles),)
|
|
|
|
./configure
|
|
|
|
# The prerequisites have been generated but there are no SUBPROJECTS
|
|
|
|
# defined because _have_makefiles has been defined to the empty string
|
|
|
|
# when make was invoked initially. Force make to reread the makefiles
|
|
|
|
# in order to continue with the compilation.
|
|
|
|
$(MAKE)
|
|
|
|
endif
|
1997-09-23 21:00:33 +00:00
|
|
|
|
|
|
|
# Things to do after compiling
|
|
|
|
# after-all::
|
|
|
|
|
2006-11-15 16:19:18 +00:00
|
|
|
$(DESTDIR)$(GNUSTEP_MAKEFILES)/Additional:
|
|
|
|
$(ECHO_CREATING)$(MKDIRS) $(DESTDIR)$(GNUSTEP_MAKEFILES)/Additional$(END_ECHO)
|
2001-03-16 22:29:21 +00:00
|
|
|
|
|
|
|
# Things to do before installing
|
2006-11-15 16:19:18 +00:00
|
|
|
before-install:: $(DESTDIR)$(GNUSTEP_MAKEFILES)/Additional
|
2003-10-17 13:13:33 +00:00
|
|
|
$(ECHO_NOTHING)$(INSTALL_DATA) base.make \
|
2006-11-15 16:19:18 +00:00
|
|
|
$(DESTDIR)$(GNUSTEP_MAKEFILES)/Additional/base.make$(END_ECHO)
|
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
|
2004-06-14 22:27:22 +00:00
|
|
|
after-uninstall::
|
2006-11-15 16:19:18 +00:00
|
|
|
$(ECHO_NOTHING)rm -f $(DESTDIR)$(GNUSTEP_MAKEFILES)/Additional/base.make$(END_ECHO)
|
2006-10-09 21:38:30 +00:00
|
|
|
|
1997-09-23 21:00:33 +00:00
|
|
|
# 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
|
2003-07-31 23:49:32 +00:00
|
|
|
after-distclean::
|
2003-10-17 13:13:33 +00:00
|
|
|
$(ECHO_NOTHING)\
|
|
|
|
rm -f config.status config.log config.cache TAGS config.mak base.make \
|
2011-03-13 12:52:37 +00:00
|
|
|
Headers/GNUstepBase/config.h \
|
|
|
|
Headers/GNUstepBase/GSConfig.h \
|
2003-10-17 13:13:33 +00:00
|
|
|
$(END_ECHO)
|
1997-09-23 21:00:33 +00:00
|
|
|
|
|
|
|
# Things to do before checking
|
|
|
|
# before-check::
|
|
|
|
|
|
|
|
# Things to do after checking
|
|
|
|
# after-check::
|
|
|
|
|
2015-05-13 07:03:32 +00:00
|
|
|
# If the generated makefiles are present but their prerequisites have
|
|
|
|
# changed, let config.status regenerate them. This is much faster and
|
|
|
|
# equally safe than running configure again, provided that configure
|
|
|
|
# has not been modified. Make sure to handle that case too.
|
|
|
|
ifeq ($(_have_makefiles),yes)
|
|
|
|
config.mak: config.status config.mak.in
|
|
|
|
@./$< $@
|
|
|
|
|
|
|
|
base.make: config.status base.make.in Version
|
|
|
|
# If Version is newer than the target, configure must be rerun so that
|
|
|
|
# its variables get AC_SUBST'ed and actually updated in base.make.
|
|
|
|
@if [ Version -nt $@ ]; then ./configure; else ./$< $@; fi
|
|
|
|
|
|
|
|
config.status: configure
|
|
|
|
@if [ -f $@ ]; then ./$@ --recheck; else ./$<; fi
|
|
|
|
else
|
|
|
|
# The makefiles are missing and will be generated by config.status.
|
|
|
|
config.mak base.make: ;
|
|
|
|
endif
|