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

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