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

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