SCM

SCM Repository

[xemacs] Annotation of /XEmacs/packages/XEmacs.rules
ViewVC logotype

Annotation of /XEmacs/packages/XEmacs.rules

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.45 - (view) (download)

1 : ben 1.24 # Common Makefile material for package Makefiles
2 : steve 1.1 # Copyright (C) 1997 Free Software Foundation Inc.
3 : ben 1.43 # Copyright (C) 2002, 2003 Ben Wing.
4 : steve 1.1
5 :     # This file is part of XEmacs.
6 :    
7 :     # XEmacs is free software; you can redistribute it and/or modify it
8 :     # under the terms of the GNU General Public License as published by the
9 :     # Free Software Foundation; either version 2, or (at your option) any
10 :     # later version.
11 :    
12 :     # XEmacs is distributed in the hope that it will be useful, but WITHOUT
13 :     # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
14 :     # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
15 :     # for more details.
16 :    
17 :     # You should have received a copy of the GNU General Public License
18 :     # along with XEmacs; see the file COPYING. If not, write to
19 :     # the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
20 :     # Boston, MA 02111-1307, USA.
21 :    
22 : andreasj 1.17 # Requires XEmacs 21.0-beta19 or greater and GNU Make 3.78 or greater.
23 : steve 1.1
24 : ben 1.43 # Settings that a Makefile can specify (all settings need to be done
25 :     # BEFORE including XEmacs.rules; if you need something from Local.rules
26 :     # in order to determine the settings properly -- e.g. BUILD_WITHOUT_MULE --
27 :     # include Local.rules.inc at the top of your Makefile):
28 :     #
29 :     # At the top of every Makefile:
30 :     # -----------------------------
31 :     #
32 :     # VERSION = 1.10
33 :     # MAINTAINER = Joe Shmoe <joe@shmoe.org>, or
34 :     # MAINTAINER = XEmacs Development Team <xemacs-beta@xemacs.org>
35 :     # PACKAGE = my-package
36 :     # PKG_TYPE = regular or single-file (each file is a separate package)
37 :     # REQUIRES = list of packages that must be available to compile the .elcs
38 :     # CATEGORY = standard, mule, or unsupported
39 :     #
40 :     # Optionally:
41 :     # -----------
42 :     #
43 :     # AUTHOR_VERSION = 1.4.9
44 :     # PACKAGE_SUPPRESS = calls to `package-suppress' to indicate packages that
45 :     # should be available only in particular versions of XEmacs, e.g.:
46 :     #
47 :     # PACKAGE_SUPPRESS = \
48 :     # (package-suppress 'xemacs-base \"regexp-opt\" '(emacs-version>= 21 5 11)) \
49 :     # (package-suppress 'xemacs-base \"easy-mmode\" '(emacs-version>= 21 5 11))
50 :     #
51 :     #
52 :     # Lisp files:
53 :     # -----------
54 :     #
55 :     # ELCS = .elc files to compile
56 :     # ELCS_1 = more .elc files to compile, to be installed in a subdirectory of
57 :     # lisp/
58 :     # ELCS_1_DEST = name of subdirectory to install them into; include
59 :     # $(PACKAGE) in the name
60 :     # EARLY_GENERATED_LISP = additional .el files that will be generated before
61 :     # any byte-compilation (use this for autoloads-type files); rules must be
62 :     # given to build them
63 :     # GENERATED_LISP = additional .el files that will be generated at
64 :     # byte-compilation time; rules must be given to build them
65 :     # PRELOADS = additional command-line arguments needed when compiling .elcs
66 :     # AUTOLOAD_PATH = subdirectory in source tree where .elcs are located (this
67 :     # is where auto-autoloads.el, etc. will be placed)
68 :     #
69 :     # Doc files (see below):
70 :     # ----------------------
71 :     #
72 :     # (1) The preferred way:
73 :     #
74 :     # EXPLICIT_DOCS, STANDARD_DOCS, EXTRA_TEXI_FILES, EXTRA_HTML_FILES,
75 :     # DOCS_TEXINFO_EXTENSION, DOCS_TXI_EXTENSION
76 :     #
77 :     # (2) The hard way:
78 :     #
79 :     # TEXI_FILES, INFO_FILES, INFO_DEP, HTML_FILES, HTML_DEP
80 :     #
81 :     # Also: EXTRA_DOC_FILES
82 :     #
83 :     # Other files to build:
84 :     # ---------------------
85 :     #
86 :     # EXTRA_DEPENDENCIES = additional files to build; rules must be given to
87 :     # build them
88 :     #
89 :     # Files to install, besides the .elcs, docs, ChangeLog and _pkg.el:
90 :     # -----------------------------------------------------------------
91 :     #
92 :     # EXTRA_SOURCES = files installed under lisp/$(PACKAGE)
93 :     # LIBSRC_FILES = files installed under lib-src/
94 :     # DATA_FILES, DATA_DEST = files installed under a subdirectory of etc/; include
95 :     # $(PACKAGE) in the name
96 :     # DATA_1_FILES, DATA_1_DEST ... DATA_35_FILES, DATA_35_DEST = files to be
97 :     # installed in other subdirectories of etc/
98 :    
99 : andreasj 1.17 XEMACS_PACKAGES_BASE := $(shell while [ ! -f XEmacs.rules ]; do \
100 :     cd ..; \
101 :     done; \
102 :     pwd)
103 : steve 1.1
104 : ben 1.43 include ${XEMACS_PACKAGES_BASE}/Local.rules.inc
105 : steveb 1.7
106 : steveb 1.14 # Ensure vanilla locale when building
107 : andreasj 1.17 override LANG := C
108 : steve 1.4
109 : steveb 1.11 # Only in rare cases will you need to override this
110 : andreasj 1.17 ifeq ($(AUTOLOAD_PATH),)
111 : steveb 1.11 AUTOLOAD_PATH = .
112 :     endif
113 :    
114 : ben 1.43 # Set this in the package Makefile if necessary (BEFORE including this file)
115 : youngs 1.44 EARLY_GENERATED_LISP ?= $(AUTOLOAD_PATH)/auto-autoloads.el $(AUTOLOAD_PATH)/custom-load.el
116 : ben 1.43 ifeq ($(XEMACS_21_5),t)
117 : youngs 1.44 ifeq ($(EARLY_GENERATED_LISP),$(AUTOLOAD_PATH)/auto-autoloads.el $(AUTOLOAD_PATH)/custom-load.el)
118 : ben 1.43 EARLY_GENERATED_LISP += $(AUTOLOAD_PATH)/custom-defines.el
119 : youngs 1.44 endif
120 : ben 1.43 endif
121 :    
122 :     EARLY_GENERATED_ELCS = $(EARLY_GENERATED_LISP:.el=.elc)
123 :     GENERATED_ELCS = $(GENERATED_LISP:.el=.elc)
124 : steveb 1.9
125 :     # SOURCE_FILES_TO_COPY = *.el*
126 : steveb 1.11 SOURCE_FILES_TO_COPY = $(ELCS) $(ELCS:.elc=.el) \
127 :     $(MULE_ELCS) $(MULE_ELCS:.elc=.el) \
128 : ben 1.43 $(EARLY_GENERATED_ELCS) $(EARLY_GENERATED_LISP) \
129 :     $(GENERATED_ELCS) $(GENERATED_LISP) $(AUTOLOAD_PATH)/_pkg.el
130 : steveb 1.8
131 : steve 1.1 # Non configurable portion follows
132 :    
133 : steveb 1.9 MANIFEST = pkginfo/MANIFEST.$(PACKAGE)
134 : andreasj 1.17 # This might be a sublevel PWD; that is intentional. Use
135 :     # ${XEMACS_PACKAGES_BASE} for the toplevel directory.
136 :     PWD := $(shell pwd)
137 : steveb 1.9
138 : steve 1.1 .SUFFIXES:
139 : ben 1.43 .SUFFIXES: .html .info .txi .texi .texinfo .dvi .ps .pdf .elc .el
140 : steve 1.1
141 : scop 1.41 # STAGING is the top of the directory tree where a particular package's
142 :     # files are installed, or where tarballs are installed using `make bindist'.
143 :    
144 :     # 'make bindist' needs STAGING to be set to NONMULE_INSTALLED_PACKAGES_ROOT
145 :     # if we are building a Mule package so we don't end up with 2 package-index
146 : youngs 1.42 # files.
147 : scop 1.41
148 : youngs 1.42 ifeq ('$(MAKECMDGOALS)','bindist')
149 :     STAGING:= $(NONMULE_INSTALLED_PACKAGES_ROOT)
150 : scop 1.41 else
151 : youngs 1.42 ifeq ('$(CATEGORY)','mule')
152 :     STAGING:= $(MULE_INSTALLED_PACKAGES_ROOT)
153 : scop 1.41 else
154 :     STAGING:= $(NONMULE_INSTALLED_PACKAGES_ROOT)
155 :     endif
156 :     endif
157 :    
158 : ben 1.43 #####################################
159 :     # Handle docs #
160 :     #####################################
161 :    
162 : scop 1.41 # If something goes wrong and $(STAGING) is blank, the commands below will
163 :     # attempt to install files into absolute paths /lisp/* and /etc/* -- not
164 :     # a good idea at all.
165 :    
166 :     check-staging:
167 :     ifeq ($(STAGING),)
168 :     $(error STAGING is not set; potential major filesystem trashing! Fix this)
169 :     endif
170 :    
171 : ben 1.43 check-mule:
172 :     ifeq ($(CATEGORY),mule)
173 :     ifneq ($(BUILD_WITHOUT_MULE),)
174 :     $(error This package needs Mule support in order to be compiled)
175 :     endif
176 :     endif
177 :    
178 :     # Possibilities for building the docs:
179 :     #
180 :     # (1) EXPLICIT_DOCS = <texi files>
181 :     # Build the specified .texi files. Info and HTML files automatically
182 :     # computed from the .texi files.
183 :     # (2) STANDARD_DOCS = t
184 :     # Same as EXPLICIT_DOCS = $(PACKAGE).texi
185 :     # (3) Manual: Specify TEXI_FILES, INFO_FILES, INFO_DEP, HTML_FILES, and
186 :     # HTML_DEP by yourself. Do not explicitly add any doc targets to
187 :     # compile::.
188 :     #
189 :     # When EXPLICIT_DOCS or STANDARD_DOCS is given:
190 :     #
191 :     # (1) you can specify other .texi files included in the files specified in
192 :     # EXPLICIT_DOCS using EXTRA_TEXI_FILES (they will be listed as
193 :     # dependencies of the info and html files)
194 :     # (2) you can specify extra .html output files using EXTRA_HTML_FILES
195 :     # (3) you can use `DOCS_TEXINFO_EXTENSION = t' to indicate that the
196 :     # explicitly specified docs have .texinfo as the extension instead of
197 :     # .texi. Similarly for `DOCS_TXI_EXTENSION = t'.
198 :     #
199 :     # You can also specify EXTRA_DOC_FILES in all cases to indicate extra files
200 :     # to be copied into the man/ directory at installation time.
201 :    
202 :     ifeq ($(STANDARD_DOCS),t)
203 :     EXPLICIT_DOCS = $(PACKAGE).texi
204 :     endif
205 :    
206 :     ifneq ($(EXPLICIT_DOCS),)
207 :     ifeq ($(DOCS_TEXINFO_EXTENSION),t)
208 :     EXPLICIT_DOCS_AS_TEXI=$(EXPLICIT_DOCS:%.texinfo=%.texi)
209 :     else
210 :     ifeq ($(DOCS_TXI_EXTENSION),t)
211 :     EXPLICIT_DOCS_AS_TEXI=$(EXPLICIT_DOCS:%.txi=%.texi)
212 :     else
213 :     EXPLICIT_DOCS_AS_TEXI=$(EXPLICIT_DOCS)
214 :     endif
215 :     endif
216 :     TEXI_FILES = $(EXPLICIT_DOCS) $(EXTRA_TEXI_FILES)
217 :     INFO_FILES = $(EXPLICIT_DOCS_AS_TEXI:%.texi=%.info*)
218 :     INFO_DEP = $(EXPLICIT_DOCS_AS_TEXI:%.texi=%.info)
219 :    
220 :     $(INFO_DEP): $(EXTRA_TEXI_FILES)
221 :    
222 :     mostlyclean::
223 :     rm -f $(EXPLICIT_DOCS_AS_TEXI:%.texi=%.toc) \
224 :     $(EXPLICIT_DOCS_AS_TEXI:%.texi=%.aux) \
225 :     $(EXPLICIT_DOCS_AS_TEXI:%.texi=%.oaux) \
226 :     $(EXPLICIT_DOCS_AS_TEXI:%.texi=%.log) \
227 :     $(EXPLICIT_DOCS_AS_TEXI:%.texi=%.cp) \
228 :     $(EXPLICIT_DOCS_AS_TEXI:%.texi=%.cps) \
229 :     $(EXPLICIT_DOCS_AS_TEXI:%.texi=%.fn) \
230 :     $(EXPLICIT_DOCS_AS_TEXI:%.texi=%.fns) \
231 :     $(EXPLICIT_DOCS_AS_TEXI:%.texi=%.tp) \
232 :     $(EXPLICIT_DOCS_AS_TEXI:%.texi=%.tps) \
233 :     $(EXPLICIT_DOCS_AS_TEXI:%.texi=%.vr) \
234 :     $(EXPLICIT_DOCS_AS_TEXI:%.texi=%.vrs) \
235 :     $(EXPLICIT_DOCS_AS_TEXI:%.texi=%.pg) \
236 :     $(EXPLICIT_DOCS_AS_TEXI:%.texi=%.pgs) \
237 :     $(EXPLICIT_DOCS_AS_TEXI:%.texi=%.ky) \
238 :     $(EXPLICIT_DOCS_AS_TEXI:%.texi=%.kys)
239 :    
240 :     clean::
241 :     rm -f $(EXPLICIT_DOCS_AS_TEXI:%.texi=%.dvi) \
242 :     $(EXPLICIT_DOCS_AS_TEXI:%.texi=%.ps)
243 :    
244 :     HTML_FILES = $(EXPLICIT_DOCS_AS_TEXI:%.texi=%*.html) $(EXTRA_HTML_FILES)
245 :     HTML_DEP = $(EXPLICIT_DOCS_AS_TEXI:%.texi=%_toc.html)
246 :    
247 :     $(HTML_DEP): $(EXTRA_TEXI_FILES)
248 :    
249 :     endif
250 : youngs 1.33
251 : ben 1.43 html: $(HTML_DEP)
252 :    
253 :     FORMAT_INFO_USING_XEMACS_NO_SAVE_ARGS = -eval '(setq load-path (append (list "$(XEMACS_PACKAGES_BASE)/xemacs-packages/texinfo" "$(XEMACS_PACKAGES_BASE)/xemacs-packages/xemacs-base") load-path))' -l informat -l texinfmt -f texinfo-format-buffer
254 :    
255 :     FORMAT_INFO_USING_XEMACS_ARGS = $(FORMAT_INFO_USING_XEMACS_NO_SAVE_ARGS) -f save-buffer
256 :    
257 :     FORMAT_INFO_USING_XEMACS = \
258 :     $(XEMACS) $(BATCH) -insert $< $(FORMAT_INFO_USING_XEMACS_ARGS)
259 :    
260 :     FORMAT_MULE_INFO_USING_XEMACS = \
261 : scop 1.41 $(XEMACS) $(BATCH) -insert $< \
262 : youngs 1.33 -eval '(unless (featurep (quote mule)) (kill-emacs 0))' \
263 : ben 1.43 -eval '(cd "$(<D)")' \
264 :     $(FORMAT_INFO_USING_XEMACS_NO_SAVE_ARGS) \
265 : youngs 1.33 -eval '(setq file-coding-system (quote iso-2022-7))' \
266 :     -eval '(save-buffer 0)'
267 :    
268 : ben 1.43 # makeinfo doesn't seem able to handle Mule-formatted files correctly, so
269 :     # we need to use the texinfo package. #### Switch to UTF-8 and this should
270 :     # go away.
271 :     ifeq ($(COMPILE_INFO_AS_MULE),t)
272 :     FORMAT_INFO = $(FORMAT_MULE_INFO_USING_XEMACS)
273 :     else
274 :     FORMAT_INFO = cd $(@D) && $(MAKEINFO) $(MAKEINFO_FLAGS) -o $(@F) $(<F)
275 :     endif
276 :    
277 :     %-ja.info: %-ja.texi
278 :     $(FORMAT_MULE_INFO_USING_XEMACS)
279 :    
280 :     %.info: %.txi
281 :     $(FORMAT_INFO)
282 : steve 1.1 %.info: %.texi
283 : ben 1.43 $(FORMAT_INFO)
284 :     %.info: %.texinfo
285 :     $(FORMAT_INFO)
286 :    
287 :     ## Make sure to cd into the directory before running texi2html because it
288 :     ## puts its results in the current directory, not the directory of the
289 :     ## source file.
290 :    
291 :     # V 1.56k (with Cygwin) does not allow -p flag. Works fine without it.
292 :     #RUN_TEXI2HTML = cd $(@D) && $(TEXI2HTML) $(TEXI2HTML_FLAGS) -p $(<F)
293 :     RUN_TEXI2HTML = cd $(@D) && $(TEXI2HTML) $(TEXI2HTML_FLAGS) $(<F)
294 : steve 1.1
295 : ben 1.43 %_toc.html: %.txi
296 :     $(RUN_TEXI2HTML)
297 :     %_toc.html: %.texi
298 :     $(RUN_TEXI2HTML)
299 :     %_toc.html: %.texinfo
300 :     $(RUN_TEXI2HTML)
301 :    
302 :     # #### I'm not sure if this is correct. xslt-process seems to think it
303 :     # needs to be run twice.
304 :     ifneq ($(TEXI2DVI),)
305 :     RUN_TEXI2DVI = cd $(@D) && $(TEXI2DVI) $(<F) && $(TEXI2DVI) $(<F)
306 :     else
307 :     RUN_TEXI2DVI = -
308 : youngs 1.30 endif
309 : ben 1.43
310 :     %.dvi: %.txi
311 :     $(RUN_TEXI2DVI)
312 :     %.dvi: %.texi
313 :     $(RUN_TEXI2DVI)
314 :     %.dvi: %.texinfo
315 :     $(RUN_TEXI2DVI)
316 :    
317 :     ifneq ($(TEXI2PDF),)
318 :     RUN_TEXI2PDF = cd $(@D) && $(TEXI2PDF) $(<F)
319 :     else
320 :     RUN_TEXI2PDF = -
321 : youngs 1.30 endif
322 : youngs 1.27
323 : ben 1.43 %.pdf: %.txi
324 :     $(RUN_TEXI2PDF)
325 :     %.pdf: %.texi
326 :     $(RUN_TEXI2PDF)
327 :     %.pdf: %.texinfo
328 :     $(RUN_TEXI2PDF)
329 :    
330 :     ifneq ($(DVIPS),)
331 :     RUN_DVIPS = cd $(@D) && $(DVIPS) -o $(@F) $(<F)
332 :     else
333 :     RUN_DVIPS = -
334 :     endif
335 : youngs 1.27
336 : ben 1.43 %.ps: %.dvi
337 :     $(RUN_DVIPS)
338 : youngs 1.27
339 : adrian 1.19 ifeq ($(XEMACS_NATIVE_NT),t)
340 : ben 1.24 # Convert UNIX-path (containing output of `pwd') to windows-path, so
341 :     # that XEmacs native NT can handle it.
342 : adrian 1.19 PACKAGE_COMPILE = \
343 :     "$(shell cygpath --windows $(XEMACS_PACKAGES_BASE)/package-compile.el)"
344 : ben 1.24 PACKAGE_CLEAN = \
345 :     "$(shell cygpath --windows $(XEMACS_PACKAGES_BASE)/package-clean.el)"
346 : adrian 1.26 PACKAGE_NET_PACKAGES = \
347 :     "$(shell cygpath --windows $(XEMACS_PACKAGES_BASE)/package-net-packages.el)"
348 :     PACKAGE_STAGING = \
349 :     "$(shell cygpath --windows $(STAGING))"
350 : adrian 1.19 else
351 :     PACKAGE_COMPILE = $(XEMACS_PACKAGES_BASE)/package-compile.el
352 : ben 1.24 PACKAGE_CLEAN = $(XEMACS_PACKAGES_BASE)/package-clean.el
353 : adrian 1.26 PACKAGE_NET_PACKAGES = $(XEMACS_PACKAGES_BASE)/package-net-packages.el
354 :     PACKAGE_STAGING = $(STAGING)
355 : adrian 1.19 endif
356 :    
357 : ben 1.43 # Behaves like an XEmacs with the required packages set up
358 : scop 1.41 BOOT_XEMACS= $(XEMACS) -no-autoloads $(BATCH) -l $(PACKAGE_COMPILE) -- $(REQUIRES) -- $(PRELOADS)
359 : youngs 1.31
360 : steve 1.1 %.elc: %.el
361 : youngs 1.31 $(BOOT_XEMACS) -f batch-byte-compile $<
362 : steve 1.1
363 : ben 1.43 # compile must be :: because some packages (e.g. psgml-dtd?) put separate
364 :     # commands that apply only to those particular dependencies.
365 :     compile:: check-mule
366 :    
367 :     # Build the generated stuff if we're in the top-level of a package directory
368 :     # but not otherwise.
369 :     ifneq ($(PACKAGE),)
370 : scop 1.41 compile:: $(AUTOLOAD_PATH)/_pkg.el
371 : ben 1.43 endif
372 :    
373 :     ## first, the byte-compile the files generated earlier (auto-autoloads.el,
374 :     ## etc.), now that we have all of them and hence can handle dependencies.
375 :     ## then, generate and compile the other generated files.
376 :     compile:: $(EARLY_GENERATED_ELCS) $(GENERATED_ELCS)
377 :    
378 :     ## now compile the main Lisp
379 :     compile:: $(ELCS) $(ELCS_1)
380 :    
381 :     ## now the docs, info format.
382 :     compile:: $(INFO_DEP)
383 :    
384 :     ## now the docs, html format (maybe).
385 :     ifeq ($(INSTALL_HTML),t)
386 :     compile:: html
387 :     endif
388 :    
389 :     ## now, any extra dependencies specified by the Makefiles.
390 :     compile:: $(EXTRA_DEPENDENCIES)
391 : steveb 1.13
392 : scop 1.39 dist:: binkit package-info
393 : steve 1.1
394 : ben 1.43 mostlyclean::
395 : steve 1.1
396 : ben 1.43 clean:: mostlyclean
397 :     rm -f $(GENERATED_ELCS) $(EARLY_GENERATED_ELCS) $(ELCS) $(ELCS_1) \
398 :     $(HTML_FILES) $(INFO_FILES) $(DEPENDS_FILE_NAME) $(EXTRA_DEPENDENCIES)
399 : steve 1.1
400 : ben 1.43 # distclean is what you use when making a distribution. everything that
401 :     # can get rebuilt should be killed. everything.
402 : steve 1.1
403 : ben 1.43 distclean:: clean
404 :     rm -f $(GENERATED_LISP) $(EARLY_GENERATED_LISP) package-info $(AUTOLOAD_PATH)/_pkg.el
405 : ben 1.28
406 : ben 1.43 # extraclean means distclean plus removal of backup files, etc.
407 :     extraclean: distclean
408 :     rm -f core *~ .*~ .\#*
409 : ben 1.28
410 : ben 1.43 # [[ elcclean is for when you want to rebuild after having made a small
411 : ben 1.28 # change, e.g. you cvs updated and got new versions of some files.
412 :     # The problem is that if you just `make', you may have the situation
413 :     # where a file that needs to be compiled depends on some other
414 :     # just-updated .el file, and in particular on the features that were
415 :     # added in the update. In such a case, the .elc file is out-of-date
416 :     # w.r.t the .el file, and you'd get the .elc file (missing the
417 :     # necessary features), and error. So we remove the minimum number of
418 :     # .elc required to ensure that the build will always succeed
419 : ben 1.43 # correctly. ]]
420 :    
421 :     # This is less of an issue now that we ignore out-of-date .elc files. --ben
422 : steve 1.1
423 : ben 1.24 elcclean:
424 : scop 1.41 $(XEMACS) $(BATCH) -l $(PACKAGE_CLEAN)
425 : ben 1.24
426 : ben 1.43 GENERATED_ELC_DEPENDENCIES = $(ELCS:.elc=.el) $(ELCS_1:.elc=.el)
427 :    
428 :     ifeq ($(XEMACS_21_5),t)
429 :     $(AUTOLOAD_PATH)/auto-autoloads.el : $(GENERATED_ELC_DEPENDENCIES) $(AUTOLOAD_PATH)/_pkg.el
430 :     $(XEMACS) $(BATCH) -no-autoloads \
431 :     -l autoload -f batch-update-directory-autoloads \
432 :     $(PACKAGE) $(AUTOLOAD_PATH)
433 :     @rm -f $(AUTOLOAD_PATH)/auto-autoloads.el~
434 :    
435 :     $(AUTOLOAD_PATH)/custom-defines.el : $(GENERATED_ELC_DEPENDENCIES)
436 :     $(XEMACS) $(BATCH) -no-autoloads \
437 :     -l autoload -f batch-update-directory-custom-defines \
438 :     $(PACKAGE) $(AUTOLOAD_PATH)
439 :     @rm -f $(AUTOLOAD_PATH)/custom-defines.el~
440 :    
441 : adrian 1.19 else
442 :     AUTOLOAD_PACKAGE_NAME = (setq autoload-package-name \"$(PACKAGE)\")
443 : youngs 1.34 AUTOLOAD_FILE = (setq generated-autoload-file \
444 :     \"$(AUTOLOAD_PATH)/auto-autoloads.el\")
445 : adrian 1.19
446 : ben 1.43 $(AUTOLOAD_PATH)/auto-autoloads.el : $(GENERATED_ELC_DEPENDENCIES) $(AUTOLOAD_PATH)/_pkg.el
447 : scop 1.41 $(XEMACS) $(BATCH) -no-autoloads \
448 : adrian 1.19 -eval "$(AUTOLOAD_PACKAGE_NAME)" \
449 : youngs 1.34 -eval "$(AUTOLOAD_FILE)" \
450 : youngs 1.35 -l autoload -f batch-update-autoloads $^
451 : steveb 1.11 @rm -f $(AUTOLOAD_PATH)/auto-autoloads.el~
452 : ben 1.43 endif
453 : steve 1.1
454 : ben 1.43 $(AUTOLOAD_PATH)/custom-load.el : $(GENERATED_ELC_DEPENDENCIES)
455 :     $(XEMACS) $(BATCH) -no-autoloads -l cus-dep \
456 : steveb 1.11 -f Custom-make-dependencies $(AUTOLOAD_PATH)
457 : ben 1.43 @rm -f $(AUTOLOAD_PATH)/custom-load.el~
458 : steve 1.1
459 : andreasj 1.17 pkg_tar = $(STAGING)/$(PACKAGE)-$(VERSION)-pkg.tar
460 :    
461 : adrian 1.19 ifeq ($(XEMACS_NATIVE_NT),t)
462 : ben 1.24 # Convert UNIX-path (containing output of `pwd') to windows-path,
463 : adrian 1.19 # so that XEmacs native NT can handle it.
464 :     PKG_TAR_GZ = "$(shell cygpath --windows $(pkg_tar)).gz"
465 : adrian 1.22 PACKAGE_INFO = "$(shell cygpath --windows $(STAGING)/$(PACKAGE_INDEX))"
466 : adrian 1.19 else
467 :     PKG_TAR_GZ = $(pkg_tar).gz
468 : adrian 1.22 PACKAGE_INFO = $(STAGING)/$(PACKAGE_INDEX)
469 : adrian 1.19 endif
470 :    
471 : andreasj 1.17 # Make the $(pkg_tar).gz first, then the $(pkg_tar).bz2
472 : steveb 1.12 package-info : package-info.in Makefile $(AUTOLOAD_PATH)/_pkg.el \
473 : andreasj 1.17 $(pkg_tar).gz $(pkg_tar).bz2
474 : scop 1.41 $(XEMACS) $(BATCH) \
475 : youngs 1.25 -l package-info.elc -f batch-update-package-info \
476 : adrian 1.19 '$(VERSION)' $(PKG_TAR_GZ) \
477 : steve 1.4 '$(REQUIRES)' \
478 :     '$(AUTHOR_VERSION)' '$(MAINTAINER)' '$(CATEGORY)'
479 : scop 1.41 $(XEMACS) $(BATCH) \
480 : steveb 1.11 -l ../../hack-package-index.el -f batch-hack-package-index \
481 : scop 1.41 $(PACKAGE) package-info $(PACKAGE_INFO) $(CATEGORY)
482 : steveb 1.11
483 : andreasj 1.17 ifeq ($(BUILD_TARS),t)
484 :     $(pkg_tar): $(STAGING)/$(MANIFEST)
485 :     @(cd $(STAGING); \
486 :     rm -f $(pkg_tar)*)
487 :    
488 :     (cd $(STAGING); \
489 : youngs 1.34 $(TAR) $(EXCLUDES) --create --owner=0 --group=0 --file $(pkg_tar) \
490 : andreasj 1.17 `cat $(MANIFEST)`)
491 :    
492 :    
493 :     $(pkg_tar).gz: $(pkg_tar)
494 :     ifneq ($(BZIP2),) # need to leave behind the .tar for bzip2 to find.
495 :     (cd $(STAGING); \
496 :     gzip -cv9 $(pkg_tar) > $(pkg_tar).gz;)
497 :     else # BZIP2 is ''
498 :     (cd $(STAGING); \
499 :     gzip -v9 $(pkg_tar);)
500 :     endif
501 :    
502 :     ifneq ($(BZIP2),)
503 :     $(pkg_tar).bz2: $(pkg_tar)
504 :     (cd $(STAGING); \
505 :     $(BZIP2) -v9 $(pkg_tar);)
506 :     else # Don't build a .tar.bz2
507 :     $(pkg_tar).bz2:
508 :    
509 :     .PHONY: $(pkg_tar).bz2
510 :     endif # BZIP2 ?
511 :    
512 :     else # when BUILD_TARS is ''
513 :     # Touch the file so the package-index can be generated
514 :     $(pkg_tar) $(pkg_tar).gz $(pkg_tar).bz2 :
515 :     touch $@
516 :     endif # BUILD_TARS ?
517 :    
518 : steve 1.1
519 : steveb 1.12 $(AUTOLOAD_PATH)/_pkg.el: Makefile
520 :     @echo Creating $(AUTOLOAD_PATH)/_pkg.el
521 :     @echo ";;;###autoload" > $(AUTOLOAD_PATH)/_pkg.el
522 :     @echo "(package-provide '$(PACKAGE)" >> $(AUTOLOAD_PATH)/_pkg.el
523 :     @echo " :version $(VERSION)" >> $(AUTOLOAD_PATH)/_pkg.el
524 :     @echo " :type '$(PKG_TYPE))" >> $(AUTOLOAD_PATH)/_pkg.el
525 : ben 1.43 ifneq ($(PACKAGE_SUPPRESS),)
526 :     @echo "" >> $(AUTOLOAD_PATH)/_pkg.el
527 :     @echo ";;;###autoload" >> $(AUTOLOAD_PATH)/_pkg.el
528 :     @echo "(when (fboundp 'package-suppress)" >> $(AUTOLOAD_PATH)/_pkg.el
529 :     @echo " $(PACKAGE_SUPPRESS)" >> $(AUTOLOAD_PATH)/_pkg.el
530 :     @echo ")" >> $(AUTOLOAD_PATH)/_pkg.el
531 :     endif
532 : steve 1.1
533 : ben 1.43 .PHONY: binkit-with-html bindist install autoloads
534 : steve 1.3
535 : youngs 1.45 bindist: compile binkit package-info setup-info
536 : youngs 1.25
537 :     setup-info:
538 : scop 1.41 $(XEMACS) $(BATCH) -l $(PACKAGE_NET_PACKAGES) \
539 : adrian 1.26 -l $(PACKAGE_INFO) \
540 : scop 1.41 -f package-net-packages-batch-convert-index-to-ini $(PACKAGE_STAGING) $(CATEGORY)
541 : steve 1.1
542 : youngs 1.45 install: compile binkit
543 : steveb 1.11
544 : ben 1.43 ## Do not byte-compile as that could require stuff from elsewhere, and you
545 :     ## get dependency circles.
546 :     autoloads: $(EARLY_GENERATED_LISP)
547 : andreasj 1.17
548 : ben 1.43 binkit-1: check-staging
549 : andreasj 1.17 (if test -d $(STAGING); then \
550 :     cd $(STAGING); \
551 :     if test -f $(MANIFEST); then \
552 : steveb 1.11 rm -rf `cat $(MANIFEST)`; \
553 : andreasj 1.17 fi; \
554 : steveb 1.11 fi;)
555 : ben 1.43 ifneq ($(PACKAGE),)
556 : steveb 1.11 @-mkdir -p $(STAGING)/lisp/$(PACKAGE)
557 : ben 1.43 endif
558 : andreasj 1.17 ifneq ($(ELCS_1),)
559 : steveb 1.11 @-mkdir -p $(STAGING)/lisp/$(ELCS_1_DEST)
560 :     endif
561 : andreasj 1.17 ifneq ($(INFO_FILES),)
562 : steveb 1.11 @-mkdir -p $(STAGING)/info
563 :     @-mkdir -p $(STAGING)/man/$(PACKAGE)
564 :     endif
565 : andreasj 1.17 ifneq ($(DATA_FILES),)
566 : steveb 1.11 @-mkdir -p $(STAGING)/etc/$(DATA_DEST)
567 :     endif
568 : andreasj 1.17 ifneq ($(DATA_1_FILES),)
569 : steveb 1.11 @-mkdir -p $(STAGING)/etc/$(DATA_1_DEST)
570 :     endif
571 : andreasj 1.17 ifneq ($(DATA_2_FILES),)
572 : steveb 1.11 @-mkdir -p $(STAGING)/etc/$(DATA_2_DEST)
573 :     endif
574 : andreasj 1.17 ifneq ($(DATA_3_FILES),)
575 : steveb 1.11 @-mkdir -p $(STAGING)/etc/$(DATA_3_DEST)
576 :     endif
577 : andreasj 1.17 ifneq ($(DATA_4_FILES),)
578 : steveb 1.11 @-mkdir -p $(STAGING)/etc/$(DATA_4_DEST)
579 :     endif
580 : andreasj 1.17 ifneq ($(DATA_5_FILES),)
581 : steveb 1.11 @-mkdir -p $(STAGING)/etc/$(DATA_5_DEST)
582 :     endif
583 : andreasj 1.17 ifneq ($(DATA_6_FILES),)
584 : steveb 1.16 @-mkdir -p $(STAGING)/etc/$(DATA_6_DEST)
585 :     endif
586 : andreasj 1.17 ifneq ($(DATA_7_FILES),)
587 : steveb 1.16 @-mkdir -p $(STAGING)/etc/$(DATA_7_DEST)
588 :     endif
589 : andreasj 1.17 ifneq ($(DATA_8_FILES),)
590 : steveb 1.16 @-mkdir -p $(STAGING)/etc/$(DATA_8_DEST)
591 :     endif
592 : michaels 1.20 ifneq ($(DATA_9_FILES),)
593 :     @-mkdir -p $(STAGING)/etc/$(DATA_9_DEST)
594 :     endif
595 :     ifneq ($(DATA_10_FILES),)
596 :     @-mkdir -p $(STAGING)/etc/$(DATA_10_DEST)
597 :     endif
598 :     ifneq ($(DATA_11_FILES),)
599 :     @-mkdir -p $(STAGING)/etc/$(DATA_11_DEST)
600 :     endif
601 :     ifneq ($(DATA_12_FILES),)
602 :     @-mkdir -p $(STAGING)/etc/$(DATA_12_DEST)
603 :     endif
604 :     ifneq ($(DATA_13_FILES),)
605 :     @-mkdir -p $(STAGING)/etc/$(DATA_13_DEST)
606 :     endif
607 :     ifneq ($(DATA_14_FILES),)
608 :     @-mkdir -p $(STAGING)/etc/$(DATA_14_DEST)
609 :     endif
610 :     ifneq ($(DATA_15_FILES),)
611 :     @-mkdir -p $(STAGING)/etc/$(DATA_15_DEST)
612 :     endif
613 :     ifneq ($(DATA_16_FILES),)
614 :     @-mkdir -p $(STAGING)/etc/$(DATA_16_DEST)
615 :     endif
616 :     ifneq ($(DATA_17_FILES),)
617 :     @-mkdir -p $(STAGING)/etc/$(DATA_17_DEST)
618 :     endif
619 :     ifneq ($(DATA_18_FILES),)
620 :     @-mkdir -p $(STAGING)/etc/$(DATA_18_DEST)
621 :     endif
622 :     ifneq ($(DATA_19_FILES),)
623 :     @-mkdir -p $(STAGING)/etc/$(DATA_19_DEST)
624 :     endif
625 :     ifneq ($(DATA_20_FILES),)
626 :     @-mkdir -p $(STAGING)/etc/$(DATA_20_DEST)
627 :     endif
628 :     ifneq ($(DATA_21_FILES),)
629 :     @-mkdir -p $(STAGING)/etc/$(DATA_21_DEST)
630 :     endif
631 :     ifneq ($(DATA_22_FILES),)
632 :     @-mkdir -p $(STAGING)/etc/$(DATA_22_DEST)
633 :     endif
634 :     ifneq ($(DATA_23_FILES),)
635 :     @-mkdir -p $(STAGING)/etc/$(DATA_23_DEST)
636 :     endif
637 :     ifneq ($(DATA_24_FILES),)
638 :     @-mkdir -p $(STAGING)/etc/$(DATA_24_DEST)
639 :     endif
640 :     ifneq ($(DATA_25_FILES),)
641 :     @-mkdir -p $(STAGING)/etc/$(DATA_25_DEST)
642 :     endif
643 :     ifneq ($(DATA_26_FILES),)
644 :     @-mkdir -p $(STAGING)/etc/$(DATA_26_DEST)
645 :     endif
646 : youngs 1.29 ifneq ($(DATA_27_FILES),)
647 :     @-mkdir -p $(STAGING)/etc/$(DATA_27_DEST)
648 :     endif
649 :     ifneq ($(DATA_28_FILES),)
650 :     @-mkdir -p $(STAGING)/etc/$(DATA_28_DEST)
651 :     endif
652 :     ifneq ($(DATA_29_FILES),)
653 :     @-mkdir -p $(STAGING)/etc/$(DATA_29_DEST)
654 :     endif
655 :     ifneq ($(DATA_30_FILES),)
656 :     @-mkdir -p $(STAGING)/etc/$(DATA_30_DEST)
657 :     endif
658 :     ifneq ($(DATA_31_FILES),)
659 :     @-mkdir -p $(STAGING)/etc/$(DATA_31_DEST)
660 :     endif
661 :     ifneq ($(DATA_32_FILES),)
662 :     @-mkdir -p $(STAGING)/etc/$(DATA_32_DEST)
663 :     endif
664 :     ifneq ($(DATA_33_FILES),)
665 :     @-mkdir -p $(STAGING)/etc/$(DATA_33_DEST)
666 :     endif
667 :     ifneq ($(DATA_34_FILES),)
668 :     @-mkdir -p $(STAGING)/etc/$(DATA_34_DEST)
669 :     endif
670 :     ifneq ($(DATA_35_FILES),)
671 :     @-mkdir -p $(STAGING)/etc/$(DATA_35_DEST)
672 :     endif
673 : andreasj 1.17 ifneq ($(LIBSRC_FILES),)
674 : steveb 1.11 @-mkdir -p $(STAGING)/lib-src
675 :     endif
676 :     @-mkdir -p $(STAGING)/pkginfo
677 : ben 1.43 ifneq ($(PACKAGE),)
678 : andreasj 1.17 $(RCOPY) $(addprefix $(PWD)/, ChangeLog $(SOURCE_FILES_TO_COPY) $(EXTRA_SOURCES)) \
679 :     $(STAGING)/lisp/$(PACKAGE)
680 :     endif
681 :     ifneq ($(ELCS_1),)
682 :     $(RCOPY) $(addprefix $(PWD)/, $(ELCS_1_FILES)) $(STAGING)/lisp/$(ELCS_1_DEST)
683 : steveb 1.11 endif
684 : andreasj 1.17 ifneq ($(INFO_FILES),)
685 :     $(RCOPY) $(addprefix $(PWD)/, $(INFO_FILES)) $(STAGING)/info
686 :     $(RCOPY) $(addprefix $(PWD)/, $(TEXI_FILES)) $(STAGING)/man/$(PACKAGE)
687 : ben 1.43 ifneq ($(EXTRA_DOC_FILES),)
688 :     $(RCOPY) $(addprefix $(PWD)/, $(EXTRA_DOC_FILES)) $(STAGING)/man/$(PACKAGE)
689 :     endif
690 : steveb 1.11 endif
691 : andreasj 1.17 ifneq ($(DATA_FILES),)
692 :     $(RCOPY) $(addprefix $(PWD)/, $(DATA_FILES)) $(STAGING)/etc/$(DATA_DEST)
693 : steveb 1.11 endif
694 : andreasj 1.17 ifneq ($(DATA_1_FILES),)
695 :     $(RCOPY) $(addprefix $(PWD)/, $(DATA_1_FILES)) $(STAGING)/etc/$(DATA_1_DEST)
696 : steveb 1.11 endif
697 : andreasj 1.17 ifneq ($(DATA_2_FILES),)
698 :     $(RCOPY) $(addprefix $(PWD)/, $(DATA_2_FILES)) $(STAGING)/etc/$(DATA_2_DEST)
699 : steveb 1.11 endif
700 : andreasj 1.17 ifneq ($(DATA_3_FILES),)
701 :     $(RCOPY) $(addprefix $(PWD)/, $(DATA_3_FILES)) $(STAGING)/etc/$(DATA_3_DEST)
702 : steveb 1.11 endif
703 : andreasj 1.17 ifneq ($(DATA_4_FILES),)
704 :     $(RCOPY) $(addprefix $(PWD)/, $(DATA_4_FILES)) $(STAGING)/etc/$(DATA_4_DEST)
705 : steveb 1.11 endif
706 : andreasj 1.17 ifneq ($(DATA_5_FILES),)
707 :     $(RCOPY) $(addprefix $(PWD)/, $(DATA_5_FILES)) $(STAGING)/etc/$(DATA_5_DEST)
708 : steveb 1.11 endif
709 : andreasj 1.17 ifneq ($(DATA_6_FILES),)
710 :     $(RCOPY) $(addprefix $(PWD)/, $(DATA_6_FILES)) $(STAGING)/etc/$(DATA_6_DEST)
711 : steveb 1.16 endif
712 : andreasj 1.17 ifneq ($(DATA_7_FILES),)
713 :     $(RCOPY) $(addprefix $(PWD)/, $(DATA_7_FILES)) $(STAGING)/etc/$(DATA_7_DEST)
714 : steveb 1.16 endif
715 : andreasj 1.17 ifneq ($(DATA_8_FILES),)
716 :     $(RCOPY) $(addprefix $(PWD)/, $(DATA_8_FILES)) $(STAGING)/etc/$(DATA_8_DEST)
717 : steveb 1.16 endif
718 : michaels 1.20 ifneq ($(DATA_9_FILES),)
719 :     $(RCOPY) $(addprefix $(PWD)/, $(DATA_9_FILES)) $(STAGING)/etc/$(DATA_9_DEST)
720 :     endif
721 :     ifneq ($(DATA_10_FILES),)
722 :     $(RCOPY) $(addprefix $(PWD)/, $(DATA_10_FILES)) $(STAGING)/etc/$(DATA_10_DEST)
723 :     endif
724 :     ifneq ($(DATA_11_FILES),)
725 :     $(RCOPY) $(addprefix $(PWD)/, $(DATA_11_FILES)) $(STAGING)/etc/$(DATA_11_DEST)
726 :     endif
727 :     ifneq ($(DATA_12_FILES),)
728 :     $(RCOPY) $(addprefix $(PWD)/, $(DATA_12_FILES)) $(STAGING)/etc/$(DATA_12_DEST)
729 :     endif
730 :     ifneq ($(DATA_13_FILES),)
731 :     $(RCOPY) $(addprefix $(PWD)/, $(DATA_13_FILES)) $(STAGING)/etc/$(DATA_13_DEST)
732 :     endif
733 :     ifneq ($(DATA_14_FILES),)
734 :     $(RCOPY) $(addprefix $(PWD)/, $(DATA_14_FILES)) $(STAGING)/etc/$(DATA_14_DEST)
735 :     endif
736 :     ifneq ($(DATA_15_FILES),)
737 :     $(RCOPY) $(addprefix $(PWD)/, $(DATA_15_FILES)) $(STAGING)/etc/$(DATA_15_DEST)
738 :     endif
739 :     ifneq ($(DATA_16_FILES),)
740 :     $(RCOPY) $(addprefix $(PWD)/, $(DATA_16_FILES)) $(STAGING)/etc/$(DATA_16_DEST)
741 :     endif
742 :     ifneq ($(DATA_17_FILES),)
743 :     $(RCOPY) $(addprefix $(PWD)/, $(DATA_17_FILES)) $(STAGING)/etc/$(DATA_17_DEST)
744 :     endif
745 :     ifneq ($(DATA_18_FILES),)
746 :     $(RCOPY) $(addprefix $(PWD)/, $(DATA_18_FILES)) $(STAGING)/etc/$(DATA_18_DEST)
747 :     endif
748 :     ifneq ($(DATA_19_FILES),)
749 :     $(RCOPY) $(addprefix $(PWD)/, $(DATA_19_FILES)) $(STAGING)/etc/$(DATA_19_DEST)
750 :     endif
751 :     ifneq ($(DATA_20_FILES),)
752 :     $(RCOPY) $(addprefix $(PWD)/, $(DATA_20_FILES)) $(STAGING)/etc/$(DATA_20_DEST)
753 :     endif
754 :     ifneq ($(DATA_21_FILES),)
755 :     $(RCOPY) $(addprefix $(PWD)/, $(DATA_21_FILES)) $(STAGING)/etc/$(DATA_21_DEST)
756 :     endif
757 :     ifneq ($(DATA_22_FILES),)
758 :     $(RCOPY) $(addprefix $(PWD)/, $(DATA_22_FILES)) $(STAGING)/etc/$(DATA_22_DEST)
759 :     endif
760 :     ifneq ($(DATA_23_FILES),)
761 :     $(RCOPY) $(addprefix $(PWD)/, $(DATA_23_FILES)) $(STAGING)/etc/$(DATA_23_DEST)
762 :     endif
763 :     ifneq ($(DATA_24_FILES),)
764 :     $(RCOPY) $(addprefix $(PWD)/, $(DATA_24_FILES)) $(STAGING)/etc/$(DATA_24_DEST)
765 :     endif
766 :     ifneq ($(DATA_25_FILES),)
767 :     $(RCOPY) $(addprefix $(PWD)/, $(DATA_25_FILES)) $(STAGING)/etc/$(DATA_25_DEST)
768 :     endif
769 :     ifneq ($(DATA_26_FILES),)
770 :     $(RCOPY) $(addprefix $(PWD)/, $(DATA_26_FILES)) $(STAGING)/etc/$(DATA_26_DEST)
771 :     endif
772 : youngs 1.29 ifneq ($(DATA_27_FILES),)
773 :     $(RCOPY) $(addprefix $(PWD)/, $(DATA_27_FILES)) $(STAGING)/etc/$(DATA_27_DEST)
774 :     endif
775 :     ifneq ($(DATA_28_FILES),)
776 :     $(RCOPY) $(addprefix $(PWD)/, $(DATA_28_FILES)) $(STAGING)/etc/$(DATA_28_DEST)
777 :     endif
778 :     ifneq ($(DATA_29_FILES),)
779 :     $(RCOPY) $(addprefix $(PWD)/, $(DATA_29_FILES)) $(STAGING)/etc/$(DATA_29_DEST)
780 :     endif
781 :     ifneq ($(DATA_30_FILES),)
782 :     $(RCOPY) $(addprefix $(PWD)/, $(DATA_30_FILES)) $(STAGING)/etc/$(DATA_30_DEST)
783 :     endif
784 :     ifneq ($(DATA_31_FILES),)
785 :     $(RCOPY) $(addprefix $(PWD)/, $(DATA_31_FILES)) $(STAGING)/etc/$(DATA_31_DEST)
786 :     endif
787 :     ifneq ($(DATA_32_FILES),)
788 :     $(RCOPY) $(addprefix $(PWD)/, $(DATA_32_FILES)) $(STAGING)/etc/$(DATA_32_DEST)
789 :     endif
790 :     ifneq ($(DATA_33_FILES),)
791 :     $(RCOPY) $(addprefix $(PWD)/, $(DATA_33_FILES)) $(STAGING)/etc/$(DATA_33_DEST)
792 :     endif
793 :     ifneq ($(DATA_34_FILES),)
794 :     $(RCOPY) $(addprefix $(PWD)/, $(DATA_34_FILES)) $(STAGING)/etc/$(DATA_34_DEST)
795 :     endif
796 :     ifneq ($(DATA_35_FILES),)
797 :     $(RCOPY) $(addprefix $(PWD)/, $(DATA_35_FILES)) $(STAGING)/etc/$(DATA_35_DEST)
798 :     endif
799 : andreasj 1.17 ifneq ($(LIBSRC_FILES),)
800 :     $(RCOPY) $(addprefix $(PWD)/, $(LIBSRC_FILES)) $(STAGING)/lib-src
801 : steveb 1.11 endif
802 : steve 1.1 (cd $(STAGING); \
803 : steveb 1.11 ls -1 $(MANIFEST) > $(MANIFEST))
804 : ben 1.43 ifneq ($(PACKAGE),)
805 : steveb 1.11 @(cd $(STAGING); \
806 :     ls -1 lisp/$(PACKAGE)/ChangeLog \
807 :     $(patsubst %, lisp/$(PACKAGE)/%, $(notdir $(SOURCE_FILES_TO_COPY))) \
808 :     $(patsubst %, lisp/$(PACKAGE)/%, $(notdir $(EXTRA_SOURCES))) \
809 :     >> $(MANIFEST))
810 : andreasj 1.18 endif
811 : andreasj 1.17 ifneq ($(ELCS_1),)
812 : steveb 1.11 @(cd $(STAGING); \
813 :     ls -1 $(patsubst %, lisp/$(ELCS_1_DEST)/%, $(notdir $(ELCS_1_FILES))) \
814 :     >> $(MANIFEST))
815 :     endif
816 : andreasj 1.17 ifneq ($(INFO_FILES),)
817 : steveb 1.11 @(cd $(STAGING); \
818 :     ls -1 man/$(PACKAGE)/* \
819 :     $(patsubst %,info/%, $(notdir $(INFO_FILES))) >> $(MANIFEST))
820 :     endif
821 : andreasj 1.17 ifneq ($(DATA_FILES),)
822 : steveb 1.11 @(cd $(STAGING); \
823 :     ls -1 $(patsubst %, etc/$(DATA_DEST)/%, $(notdir $(DATA_FILES))) \
824 :     >> $(MANIFEST))
825 :     endif
826 : andreasj 1.17 ifneq ($(DATA_1_FILES),)
827 : steveb 1.11 @(cd $(STAGING); \
828 :     ls -1 $(patsubst %, etc/$(DATA_1_DEST)/%, $(notdir $(DATA_1_FILES))) \
829 :     >> $(MANIFEST))
830 :     endif
831 : andreasj 1.17 ifneq ($(DATA_2_FILES),)
832 : steveb 1.11 @(cd $(STAGING); \
833 :     ls -1 $(patsubst %, etc/$(DATA_2_DEST)/%, $(notdir $(DATA_2_FILES))) \
834 :     >> $(MANIFEST))
835 :     endif
836 : andreasj 1.17 ifneq ($(DATA_3_FILES),)
837 : steveb 1.11 @(cd $(STAGING); \
838 :     ls -1 $(patsubst %, etc/$(DATA_3_DEST)/%, $(notdir $(DATA_3_FILES))) \
839 :     >> $(MANIFEST))
840 :     endif
841 : andreasj 1.17 ifneq ($(DATA_4_FILES),)
842 : steveb 1.11 @(cd $(STAGING); \
843 :     ls -1 $(patsubst %, etc/$(DATA_4_DEST)/%, $(notdir $(DATA_4_FILES))) \
844 :     >> $(MANIFEST))
845 :     endif
846 : andreasj 1.17 ifneq ($(DATA_5_FILES),)
847 : steveb 1.11 @(cd $(STAGING); \
848 :     ls -1 $(patsubst %, etc/$(DATA_5_DEST)/%, $(notdir $(DATA_5_FILES))) \
849 : steveb 1.16 >> $(MANIFEST))
850 :     endif
851 : andreasj 1.17 ifneq ($(DATA_6_FILES),)
852 : steveb 1.16 @(cd $(STAGING); \
853 :     ls -1 $(patsubst %, etc/$(DATA_6_DEST)/%, $(notdir $(DATA_6_FILES))) \
854 :     >> $(MANIFEST))
855 :     endif
856 : andreasj 1.17 ifneq ($(DATA_7_FILES),)
857 : steveb 1.16 @(cd $(STAGING); \
858 :     ls -1 $(patsubst %, etc/$(DATA_7_DEST)/%, $(notdir $(DATA_7_FILES))) \
859 :     >> $(MANIFEST))
860 :     endif
861 : andreasj 1.17 ifneq ($(DATA_8_FILES),)
862 : steveb 1.16 @(cd $(STAGING); \
863 :     ls -1 $(patsubst %, etc/$(DATA_8_DEST)/%, $(notdir $(DATA_8_FILES))) \
864 : michaels 1.20 >> $(MANIFEST))
865 :     endif
866 :     ifneq ($(DATA_9_FILES),)
867 :     @(cd $(STAGING); \
868 :     ls -1 $(patsubst %, etc/$(DATA_9_DEST)/%, $(notdir $(DATA_9_FILES))) \
869 :     >> $(MANIFEST))
870 :     endif
871 :     ifneq ($(DATA_10_FILES),)
872 :     @(cd $(STAGING); \
873 :     ls -1 $(patsubst %, etc/$(DATA_10_DEST)/%, $(notdir $(DATA_10_FILES))) \
874 :     >> $(MANIFEST))
875 :     endif
876 :     ifneq ($(DATA_11_FILES),)
877 :     @(cd $(STAGING); \
878 :     ls -1 $(patsubst %, etc/$(DATA_11_DEST)/%, $(notdir $(DATA_11_FILES))) \
879 :     >> $(MANIFEST))
880 :     endif
881 :     ifneq ($(DATA_12_FILES),)
882 :     @(cd $(STAGING); \
883 :     ls -1 $(patsubst %, etc/$(DATA_12_DEST)/%, $(notdir $(DATA_12_FILES))) \
884 :     >> $(MANIFEST))
885 :     endif
886 :     ifneq ($(DATA_13_FILES),)
887 :     @(cd $(STAGING); \
888 :     ls -1 $(patsubst %, etc/$(DATA_13_DEST)/%, $(notdir $(DATA_13_FILES))) \
889 :     >> $(MANIFEST))
890 :     endif
891 :     ifneq ($(DATA_14_FILES),)
892 :     @(cd $(STAGING); \
893 :     ls -1 $(patsubst %, etc/$(DATA_14_DEST)/%, $(notdir $(DATA_14_FILES))) \
894 :     >> $(MANIFEST))
895 :     endif
896 :     ifneq ($(DATA_15_FILES),)
897 :     @(cd $(STAGING); \
898 :     ls -1 $(patsubst %, etc/$(DATA_15_DEST)/%, $(notdir $(DATA_15_FILES))) \
899 :     >> $(MANIFEST))
900 :     endif
901 :     ifneq ($(DATA_16_FILES),)
902 :     @(cd $(STAGING); \
903 :     ls -1 $(patsubst %, etc/$(DATA_16_DEST)/%, $(notdir $(DATA_16_FILES))) \
904 :     >> $(MANIFEST))
905 :     endif
906 :     ifneq ($(DATA_17_FILES),)
907 :     @(cd $(STAGING); \
908 :     ls -1 $(patsubst %, etc/$(DATA_17_DEST)/%, $(notdir $(DATA_17_FILES))) \
909 :     >> $(MANIFEST))
910 :     endif
911 :     ifneq ($(DATA_18_FILES),)
912 :     @(cd $(STAGING); \
913 :     ls -1 $(patsubst %, etc/$(DATA_18_DEST)/%, $(notdir $(DATA_18_FILES))) \
914 :     >> $(MANIFEST))
915 :     endif
916 :     ifneq ($(DATA_19_FILES),)
917 :     @(cd $(STAGING); \
918 :     ls -1 $(patsubst %, etc/$(DATA_19_DEST)/%, $(notdir $(DATA_19_FILES))) \
919 :     >> $(MANIFEST))
920 :     endif
921 :     ifneq ($(DATA_20_FILES),)
922 :     @(cd $(STAGING); \
923 :     ls -1 $(patsubst %, etc/$(DATA_20_DEST)/%, $(notdir $(DATA_20_FILES))) \
924 :     >> $(MANIFEST))
925 :     endif
926 :     ifneq ($(DATA_21_FILES),)
927 :     @(cd $(STAGING); \
928 :     ls -1 $(patsubst %, etc/$(DATA_21_DEST)/%, $(notdir $(DATA_21_FILES))) \
929 :     >> $(MANIFEST))
930 :     endif
931 :     ifneq ($(DATA_22_FILES),)
932 :     @(cd $(STAGING); \
933 :     ls -1 $(patsubst %, etc/$(DATA_22_DEST)/%, $(notdir $(DATA_22_FILES))) \
934 :     >> $(MANIFEST))
935 :     endif
936 :     ifneq ($(DATA_23_FILES),)
937 :     @(cd $(STAGING); \
938 :     ls -1 $(patsubst %, etc/$(DATA_23_DEST)/%, $(notdir $(DATA_23_FILES))) \
939 :     >> $(MANIFEST))
940 :     endif
941 :     ifneq ($(DATA_24_FILES),)
942 :     @(cd $(STAGING); \
943 :     ls -1 $(patsubst %, etc/$(DATA_24_DEST)/%, $(notdir $(DATA_24_FILES))) \
944 :     >> $(MANIFEST))
945 :     endif
946 :     ifneq ($(DATA_25_FILES),)
947 :     @(cd $(STAGING); \
948 :     ls -1 $(patsubst %, etc/$(DATA_25_DEST)/%, $(notdir $(DATA_25_FILES))) \
949 :     >> $(MANIFEST))
950 :     endif
951 :     ifneq ($(DATA_26_FILES),)
952 :     @(cd $(STAGING); \
953 :     ls -1 $(patsubst %, etc/$(DATA_26_DEST)/%, $(notdir $(DATA_26_FILES))) \
954 : steveb 1.11 >> $(MANIFEST))
955 :     endif
956 : youngs 1.29 ifneq ($(DATA_27_FILES),)
957 :     @(cd $(STAGING); \
958 :     ls -1 $(patsubst %, etc/$(DATA_27_DEST)/%, $(notdir $(DATA_27_FILES))) \
959 :     >> $(MANIFEST))
960 :     endif
961 :     ifneq ($(DATA_28_FILES),)
962 :     @(cd $(STAGING); \
963 :     ls -1 $(patsubst %, etc/$(DATA_28_DEST)/%, $(notdir $(DATA_28_FILES))) \
964 :     >> $(MANIFEST))
965 :     endif
966 :     ifneq ($(DATA_29_FILES),)
967 :     @(cd $(STAGING); \
968 :     ls -1 $(patsubst %, etc/$(DATA_29_DEST)/%, $(notdir $(DATA_29_FILES))) \
969 :     >> $(MANIFEST))
970 :     endif
971 :     ifneq ($(DATA_30_FILES),)
972 :     @(cd $(STAGING); \
973 :     ls -1 $(patsubst %, etc/$(DATA_30_DEST)/%, $(notdir $(DATA_30_FILES))) \
974 :     >> $(MANIFEST))
975 :     endif
976 :     ifneq ($(DATA_31_FILES),)
977 :     @(cd $(STAGING); \
978 :     ls -1 $(patsubst %, etc/$(DATA_31_DEST)/%, $(notdir $(DATA_31_FILES))) \
979 :     >> $(MANIFEST))
980 :     endif
981 :     ifneq ($(DATA_32_FILES),)
982 :     @(cd $(STAGING); \
983 :     ls -1 $(patsubst %, etc/$(DATA_32_DEST)/%, $(notdir $(DATA_32_FILES))) \
984 :     >> $(MANIFEST))
985 :     endif
986 :     ifneq ($(DATA_33_FILES),)
987 :     @(cd $(STAGING); \
988 :     ls -1 $(patsubst %, etc/$(DATA_33_DEST)/%, $(notdir $(DATA_33_FILES))) \
989 :     >> $(MANIFEST))
990 :     endif
991 :     ifneq ($(DATA_34_FILES),)
992 :     @(cd $(STAGING); \
993 :     ls -1 $(patsubst %, etc/$(DATA_34_DEST)/%, $(notdir $(DATA_34_FILES))) \
994 :     >> $(MANIFEST))
995 :     endif
996 :     ifneq ($(DATA_35_FILES),)
997 :     @(cd $(STAGING); \
998 :     ls -1 $(patsubst %, etc/$(DATA_35_DEST)/%, $(notdir $(DATA_35_FILES))) \
999 :     >> $(MANIFEST))
1000 :     endif
1001 : andreasj 1.17 ifneq ($(LIBSRC_FILES),)
1002 : steveb 1.11 @(cd $(STAGING); \
1003 :     ls -1 $(patsubst %,lib-src/%, $(notdir $(LIBSRC_FILES))) >> $(MANIFEST))
1004 :     endif
1005 :    
1006 : ben 1.43 install-html: check-staging
1007 : scop 1.40 ifneq ($(HTML_FILES),)
1008 :     @-mkdir -p $(STAGING)/html
1009 :     $(RCOPY) $(addprefix $(PWD)/, $(HTML_FILES)) $(STAGING)/html
1010 :     @(cd $(STAGING); \
1011 :     ls -1 $(patsubst %,html/%, $(notdir $(HTML_FILES))) >> $(MANIFEST))
1012 :     endif
1013 : ben 1.43
1014 :     binkit: binkit-1
1015 :    
1016 :     ifeq ($(INSTALL_HTML),t)
1017 :     binkit: install-html
1018 :     endif
1019 :    
1020 :     binkit-with-html: html binkit-1 install-html
1021 : youngs 1.31
1022 :     # Export dependencies for outer make file usage
1023 :    
1024 :     # Passed in from outer Make
1025 :     TARGET_BASE=
1026 :    
1027 :     # Build depends is a clean version of Requires
1028 :     BDEPENDS=$(strip $(filter-out $(PACKAGE),$(REQUIRES)))
1029 :    
1030 :     $(DEPENDS_FILE_NAME): Makefile $(XEMACS_PACKAGES_BASE)/XEmacs.rules
1031 :     ifneq ($(TARGET_BASE),)
1032 : youngs 1.32 -rm -f $(DEPENDS_FILE_NAME)
1033 : youngs 1.31 @echo Creating $(DEPENDS_FILE_NAME)
1034 :     @echo > $(DEPENDS_FILE_NAME)
1035 :     ifneq ($(BDEPENDS),)
1036 :     @echo $(TARGET_BASE)$(PACKAGE)/autoloads.target: \
1037 :     $(TARGET_BASE)$(BDEPENDS:=/autoloads.target) \
1038 :     >>$(DEPENDS_FILE_NAME)
1039 :     @echo $(TARGET_BASE)$(PACKAGE)/compile.target: \
1040 :     $(TARGET_BASE)$(BDEPENDS:=/compile.target) \
1041 :     >>$(DEPENDS_FILE_NAME)
1042 :     endif
1043 :     endif
1044 : andreasj 1.17
1045 :     # Local Variables:
1046 :     # mode: makefile
1047 :     # End:

root@alioth.debian.org
ViewVC Help
Powered by ViewVC 1.0.0  
Powered By FusionForge
Show source