1# 2# GNUmakefile.postamble 3# 4# Copyright (C) 2002 Free Software Foundation, Inc. 5# 6# Author: Adam Fedor <fedor@gnu.org> 7# 8# This file is part of the GNUstep Gui Library. 9# 10# This library is free software; you can redistribute it and/or 11# modify it under the terms of the GNU Lesser General Public 12# License as published by the Free Software Foundation; either 13# version 2 of the License, or (at your option) any later version. 14# 15# This library is distributed in the hope that it will be useful, 16# but WITHOUT ANY WARRANTY; without even the implied warranty of 17# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 18# Lesser General Public License for more details. 19# 20# You should have received a copy of the GNU Lesser General Public 21# License along with this library; see the file COPYING.LIB. 22# If not, see <http://www.gnu.org/licenses/> or write to the 23# Free Software Foundation, 51 Franklin Street, Fifth Floor, 24# Boston, MA 02110-1301, USA. 25 26# Things to do before compiling 27# before-all:: 28 29# After building local documentation, we need to run the special makefile 30# in the source directory to generate library reference documentation from 31# the source code. 32after-all:: 33 $(MAKE) -C ../Source -f DocMakefile 34 35# Things to do before installing 36# before-install:: 37 38# Install the library reference documentation manually 39# 40after-install:: 41 rm -rf $(GNUSTEP_DOC)/$(Gui_DOC_INSTALL_DIR) 42 $(MKINSTALLDIRS) $(GNUSTEP_DOC)/$(Gui_DOC_INSTALL_DIR) 43 (cd Gui; $(TAR) cf - .) | \ 44 (cd $(GNUSTEP_DOC)/$(Gui_DOC_INSTALL_DIR); $(TAR) xf -) 45 rm -rf $(GNUSTEP_DOC)/$(Gui_DOC_INSTALL_DIR)/CVS 46 rm -rf $(GNUSTEP_DOC)/$(GuiAdditions_DOC_INSTALL_DIR) 47 $(MKINSTALLDIRS) $(GNUSTEP_DOC)/$(GuiAdditions_DOC_INSTALL_DIR) 48 (cd GuiAdditions; $(TAR) cf - .) | \ 49 (cd $(GNUSTEP_DOC)/$(GuiAdditions_DOC_INSTALL_DIR); $(TAR) xf -) 50 rm -rf $(GNUSTEP_DOC)/$(GuiAdditions_DOC_INSTALL_DIR)/CVS 51 ( cd $(GNUSTEP_DOC)/$(GuiUser_DOC_INSTALL_DIR) ; \ 52 mv GuiUser/* . ; \ 53 rm -rf GuiUser ) 54 if [ ! -f $(GNUSTEP_DOC_MAN) ]; then \ 55 $(MKINSTALLDIRS) $(GNUSTEP_DOC_MAN); \ 56 fi; \ 57 if [ ! -f $(GNUSTEP_DOC_MAN)/man1 ]; then \ 58 $(MKINSTALLDIRS) $(GNUSTEP_DOC_MAN)/man1; \ 59 fi; \ 60 for file in $(MAN1_PAGES) __done; do \ 61 if [ $$file != __done ]; then \ 62 $(INSTALL_DATA) $$file $(GNUSTEP_DOC_MAN)/man1/$$file; \ 63 which gzip && rm -f $(GNUSTEP_DOC_MAN)/man1/$$file.gz \ 64 && gzip -9 $(GNUSTEP_DOC_MAN)/man1/$$file; \ 65 fi; \ 66 done; 67 68# Things to do before uninstalling 69# before-uninstall:: 70 71# Things to do after uninstalling 72after-uninstall:: 73 rm -rf $(REF_DOC_INSTALL_DIR) 74 75# Things to do before cleaning 76# before-clean:: 77 78# Things to do after cleaning 79after-clean:: 80 $(MAKE) -C ../Source -f DocMakefile clean 81 rm -rf Gui 82 rm -rf GuiAdditions 83 84# Things to do before distcleaning 85# before-distclean:: 86 87# Things to do after distcleaning 88# after-distclean:: 89 90# Things to do before checking 91# before-check:: 92 93# Things to do after checking 94# after-check:: 95 96regenerate: $(DOCUMENT_TEXT_NAME) 97 mv -f $(TOP_DOC_FILES) .. 98 99version.texi: ../Version 100 rm -f version.texi 101 echo '@set GNUSTEP-GUI-VERSION' $(GNUSTEP_GUI_VERSION) \ 102 > version.texi 103 echo '@set GNUSTEP-GUI-GCC $(GNUSTEP_GUI_GCC)' \ 104 >> version.texi 105 echo '@set GNUSTEP-GUI-BASE $(GNUSTEP_GUI_BASE)' \ 106 >> version.texi 107 echo '@set GNUSTEP-GUI-LIBTIFF $(GNUSTEP_GUI_LIBTIFF)' \ 108 >> version.texi 109 if [ $(GNUSTEP_GUI_FTP_MACHINE) ]; then \ 110 echo '@set GNUSTEP-GUI-FTP-MACHINE $(GNUSTEP_GUI_FTP_MACHINE)' \ 111 >> version.texi; fi 112 if [ $(GNUSTEP_GUI_FTP_DIRECTORY) ]; then \ 113 echo '@set GNUSTEP-GUI-FTP-DIRECTORY $(GNUSTEP_GUI_FTP_DIRECTORY)' \ 114 >> version.texi; fi 115 116