## FILE: GNUmakefile.postamble
 #
 # Project              Tryst
 #
 # Creator              Chris B. Vetter
 # Maintainer           Chris B. Vetter
 # Creation Date        Mon Sep 11 14:42:49 CEST 2006
 #
 # Copyright (c) 2006
 #
 # Tryst is free software under the terms of a dual BSD/LGPL license.
 # For a full copyright description, see the COPYRIGHT file.
 #
 ############################################################################

#
# Things to do before compiling
#

before-all::
ifeq ($(doc), yes)
  ifneq ($(GNUSTEP_BASE_HAVE_LIBXML), 1)
	echo "ERROR:"
	echo "  Looks like your system does not have libxml installed."
	echo "  Documentation cannot be created."
	echo
	exit 1
  endif

	$(RM) -rf ${DOCUMENT_NAME}
	$(MKDIRS) ${DOCUMENT_NAME}

	cat ../Documentation/Templates/${DOCUMENT_NAME}.igsdoc |		\
		$(SED) -e 's/<version>x.x.x/<version>$(VERSION)/g'		\
		       -e 's/<date>x.x.x/<date>'"`date +'%B %d, %Y'`"'/g' > ${DOCUMENT_NAME}/${DOCUMENT_NAME}.gsdoc

	cat ../Documentation/Templates/Constants.igsdoc |			\
		$(SED) -e 's/<version>x.x.x/<version>$(VERSION)/g'		\
		       -e 's/<date>x.x.x/<date>'"`date +'%B %d, %Y'`"'/g' > ${DOCUMENT_NAME}/Constants.gsdoc

	cat ../Documentation/Templates/Functions.igsdoc |			\
		$(SED) -e 's/<version>x.x.x/<version>$(VERSION)/g'		\
		       -e 's/<date>x.x.x/<date>'"`date +'%B %d, %Y'`"'/g' > ${DOCUMENT_NAME}/Functions.gsdoc

	cat ../Documentation/Templates/Macros.igsdoc |				\
		$(SED) -e 's/<version>x.x.x/<version>$(VERSION)/g'		\
		       -e 's/<date>x.x.x/<date>'"`date +'%B %d, %Y'`"'/g' > ${DOCUMENT_NAME}/Macros.gsdoc

	cat ../Documentation/Templates/Types.igsdoc |				\
		$(SED) -e 's/<version>x.x.x/<version>$(VERSION)/g'		\
		       -e 's/<date>x.x.x/<date>'"`date +'%B %d, %Y'`"'/g' > ${DOCUMENT_NAME}/Types.gsdoc

	cat ../Documentation/Templates/Variables.igsdoc |			\
		$(SED) -e 's/<version>x.x.x/<version>$(VERSION)/g'		\
		       -e 's/<date>x.x.x/<date>'"`date +'%B %d, %Y'`"'/g' > ${DOCUMENT_NAME}/Variables.gsdoc

endif


#
# Things to do after compiling
#

after-all::

#
# Things to do before installing
#

before-install::
	if [ -d "$(GNUSTEP_INSTALLATION_DIR)" -a ! -w "$(GNUSTEP_INSTALLATION_DIR)" ];			\
	then												\
		echo;											\
		echo "ERROR:";										\
		echo "The software is configured to install itself into $(GNUSTEP_INSTALLATION_DIR)";	\
		echo "but you do not have permissions to write in that directory.";			\
		echo;											\
		echo "Either run \"$(MAKE)\" as root or run";						\
		echo;											\
		echo "  $(MAKE) GNUSTEP_INSTALLATION_DIR=\"$(GNUSTEP_USER_ROOT)\"";			\
		echo;											\
		exit 1;											\
	fi
	sync


#
# 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::
ifeq ($(doc), yes)
	$(RM) -rf ${DOCUMENT_NAME}
endif

#
# Things to do after cleaning
#

after-clean::

#
# Things to do before distcleaning
#

before-distclean::

#
# Things to do after distcleaning
#

after-distclean::

#
# Things to do before checking
#

before-check::

#
# Things to do after checking
#

after-check::

#
# End of File.


syntax highlighted by Code2HTML, v. 0.9.1