| 1 |
# |
| 2 |
# GNUmakefile.postamble |
| 3 |
# |
| 4 |
# Copyright (C) 2024 Free Software Foundation, Inc. |
| 5 |
# |
| 6 |
# Author: Adam Fedor <[email protected]> |
| 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. |
| 32 |
after-all:: |
| 33 |
|
| 34 |
# Things to do before installing |
| 35 |
# before-install:: |
| 36 |
|
| 37 |
# Install the library reference documentation manually |
| 38 |
# |
| 39 |
after-install:: |
| 40 |
|
| 41 |
# Things to do before uninstalling |
| 42 |
# before-uninstall:: |
| 43 |
|
| 44 |
# Things to do after uninstalling |
| 45 |
after-uninstall:: |
| 46 |
rm -rf $(REF_DOC_INSTALL_DIR) |
| 47 |
|
| 48 |
# Things to do before cleaning |
| 49 |
# before-clean:: |
| 50 |
|
| 51 |
# Things to do after cleaning |
| 52 |
after-clean:: |
| 53 |
|
| 54 |
# Things to do before distcleaning |
| 55 |
# before-distclean:: |
| 56 |
|
| 57 |
# Things to do after distcleaning |
| 58 |
# after-distclean:: |
| 59 |
|
| 60 |
# Things to do before checking |
| 61 |
# before-check:: |
| 62 |
|
| 63 |
# Things to do after checking |
| 64 |
# after-check:: |
| 65 |
|
| 66 |
regenerate: $(DOCUMENT_TEXT_NAME) |
| 67 |
mv -f $(TOP_DOC_FILES) .. |
| 68 |
|
| 69 |
version.texi: ../Version |
| 70 |
rm -f version.texi |
| 71 |
echo '@set GNUSTEP-GUI-VERSION' $(GNUSTEP_GUI_VERSION) \ |
| 72 |
> version.texi |
| 73 |
echo '@set GNUSTEP-GUI-GCC $(GNUSTEP_GUI_GCC)' \ |
| 74 |
>> version.texi |
| 75 |
echo '@set GNUSTEP-GUI-BASE $(GNUSTEP_GUI_BASE)' \ |
| 76 |
>> version.texi |
| 77 |
echo '@set GNUSTEP-GUI-LIBTIFF $(GNUSTEP_GUI_LIBTIFF)' \ |
| 78 |
>> version.texi |
| 79 |
if [ $(GNUSTEP_GUI_FTP_MACHINE) ]; then \ |
| 80 |
echo '@set GNUSTEP-GUI-FTP-MACHINE $(GNUSTEP_GUI_FTP_MACHINE)' \ |
| 81 |
>> version.texi; fi |
| 82 |
if [ $(GNUSTEP_GUI_FTP_DIRECTORY) ]; then \ |
| 83 |
echo '@set GNUSTEP-GUI-FTP-DIRECTORY $(GNUSTEP_GUI_FTP_DIRECTORY)' \ |
| 84 |
>> version.texi; fi |
| 85 |
|