~ubuntu-branches/ubuntu/breezy/gnustep-base/breezy

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
#
#  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
# before-all::

# After building local documentation, we need to run the special makefile
# in the source directory to generate library reference documentation from
# the source code.
after-all::
ifeq ($(HAVE_LIBXML),1)
	$(MAKE) -C ../Source -f DocMakefile
	$(MAKE) -C ../Tools -f DocMakefile
endif

# Things to do before installing
# before-install::

# Install the library reference documentation manually
#
after-install::
ifeq ($(HAVE_LIBXML),1)
	rm -rf $(REF_DOC_INSTALL_DIR)/Base/Reference
	rm -rf $(REF_DOC_INSTALL_DIR)/BaseAdditions/Reference
	rm -rf $(REF_DOC_INSTALL_DIR)/Tools/Reference
	$(MKDIRS) $(REF_DOC_INSTALL_DIR)/Base/Reference
	$(MKDIRS) $(REF_DOC_INSTALL_DIR)/BaseAdditions/Reference
	$(MKDIRS) $(REF_DOC_INSTALL_DIR)/Tools/Reference
	(cd Base; $(TAR) cf - .) | \
	  (cd $(REF_DOC_INSTALL_DIR)/Base/Reference; $(TAR) xf -)
	(cd BaseAdditions; $(TAR) cf - .) | \
	  (cd $(REF_DOC_INSTALL_DIR)/BaseAdditions/Reference; $(TAR) xf -)
	(cd BaseTools; $(TAR) cf - .) | \
	  (cd $(REF_DOC_INSTALL_DIR)/Tools/Reference; $(TAR) xf -)
ifneq ($(CHOWN_TO),)
	$(CHOWN) -R $(CHOWN_TO) \
	  $(REF_DOC_INSTALL_DIR/Base)
	  $(REF_DOC_INSTALL_DIR/BaseAdditions)
	  $(REF_DOC_INSTALL_DIR/Tools)
endif
endif
	cp -f HtmlNav/index.html $(REF_DOC_INSTALL_DIR)/..
	cp -f HtmlNav/style.css $(REF_DOC_INSTALL_DIR)/..
	cp -f HtmlNav/gnustep-header14.jpg $(REF_DOC_INSTALL_DIR)/..
	cp -f HtmlNav/masthead-bg.jpg $(REF_DOC_INSTALL_DIR)/..


# Things to do before uninstalling
# before-uninstall::

# Things to do after uninstalling
after-uninstall::
	rm -rf $(REF_DOC_INSTALL_DIR)

# Things to do before cleaning
# before-clean::

# Things to do after cleaning
after-clean::
ifeq ($(HAVE_LIBXML),1)
	$(MAKE) -C ../Source -f DocMakefile clean
	$(MAKE) -C ../Tools -f DocMakefile clean
endif
	rm -rf Base
	rm -rf BaseAdditions
	rm -rf BaseTools

# 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::

version.texi: ../Version
	rm -f version.texi
	echo '@set GNUSTEP-BASE-VERSION' $(GNUSTEP_BASE_VERSION) \
		> version.texi
	echo '@set GCC-VERSION $(GCC_VERSION)' \
		>> version.texi
	if [ $(GNUSTEP_BASE_FTP_MACHINE) ]; then \
	  echo '@set GNUSTEP-BASE-FTP-MACHINE $(GNUSTEP_BASE_FTP_MACHINE)' \
		>> version.texi; fi
	if [ $(GNUSTEP_BASE_FTP_DIRECTORY) ]; then \
	  echo '@set GNUSTEP-BASE-FTP-DIRECTORY $(GNUSTEP_BASE_FTP_DIRECTORY)' \
		>> version.texi; fi
	if [ $(GNUSTEP_BASE_SNAP_FTP_MACHINE) ]; then \
	  echo '@set GNUSTEP-BASE-SNAP-FTP-MACHINE \
		$(GNUSTEP_BASE_SNAP_FTP_MACHINE)' \
		>> version.texi; fi
	if [ $(GNUSTEP_BASE_SNAP_FTP_DIRECTORY) ]; then \
	  echo '@set GNUSTEP-BASE-SNAP-FTP-DIRECTORY \
		$(GNUSTEP_BASE_SNAP_FTP_DIRECTORY)' \
		>> version.texi; fi

regenerate: $(DOCUMENT_TEXT_NAME)
	mv $(TOP_DOC_FILES) ..