1 # Common Makefile material for package Makefiles
2 # Copyright (C) 1997 Free Software Foundation Inc.
3 # Copyright (C) 2002, 2003, 2005 Ben Wing.
5 # This file is part of XEmacs.
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
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
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., 51 Franklin Street, Fifth Floor,
20 # Boston, MA 02110-1301, USA.
22 # Requires XEmacs 21.0-beta19 or greater and GNU Make 3.78 or greater.
24 # 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):
29 # At the top of every Makefile:
30 # -----------------------------
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
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.:
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))
55 # ELCS = .elc files to compile
56 # ELCS_1 = more .elc files to compile, to be installed in a subdirectory of
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. XEmacs.rules will automatically add auto-autoloads,
63 # custom-load, and custom-defines to this list, so don't include them.
64 # GENERATED_LISP = additional .el files that will be generated at
65 # byte-compilation time; rules must be given to build them
66 # PRELOADS = additional command-line arguments needed when compiling .elcs
67 # AUTOLOAD_PATH = subdirectory in source tree where .elcs are located (this
68 # is where auto-autoloads.el, etc. will be placed)
70 # Doc files (see below):
71 # ----------------------
73 # (1) The preferred way:
75 # EXPLICIT_DOCS, STANDARD_DOCS, EXTRA_TEXI_FILES, EXTRA_HTML_FILES,
76 # DOCS_TEXINFO_EXTENSION, DOCS_TXI_EXTENSION
80 # TEXI_FILES, INFO_FILES, INFO_DEP, HTML_FILES, HTML_DEP
82 # Also: EXTRA_DOC_FILES
84 # Other files to build:
85 # ---------------------
87 # EXTRA_DEPENDENCIES = additional files to build; rules must be given to
90 # Files to install, besides the .elcs, docs, ChangeLog and _pkg.el:
91 # -----------------------------------------------------------------
93 # EXTRA_SOURCES = files installed under lisp/$(PACKAGE)
94 # LIBSRC_FILES = files installed under lib-src/
95 # DATA_FILES, DATA_DEST = files installed under a subdirectory of etc/; include
96 # $(PACKAGE) in the name
97 # DATA_1_FILES, DATA_1_DEST ... DATA_35_FILES, DATA_35_DEST = files to be
98 # installed in other subdirectories of etc/
100 XEMACS_PACKAGES_BASE := $(shell while [ ! -f XEmacs.rules ]; do \
105 include ${XEMACS_PACKAGES_BASE}/Local.rules.inc
107 # Ensure vanilla locale when building
110 # Only in rare cases will you need to override this
111 ifeq ($(AUTOLOAD_PATH),)
115 # Set this in the package Makefile if necessary (BEFORE including this file)
116 EARLY_GENERATED_LISP := $(AUTOLOAD_PATH)/auto-autoloads.el \
117 $(AUTOLOAD_PATH)/custom-load.el $(EARLY_GENERATED_LISP)
118 ifeq ($(or $(XEMACS_21_5),$(BUILD_WITH_SXEMACS)),t)
119 EARLY_GENERATED_LISP += $(AUTOLOAD_PATH)/custom-defines.el
122 EARLY_GENERATED_ELCS = $(EARLY_GENERATED_LISP:.el=.elc)
123 GENERATED_ELCS = $(GENERATED_LISP:.el=.elc)
125 # SOURCE_FILES_TO_COPY = *.el*
126 SOURCE_FILES_TO_COPY = $(ELCS) $(ELCS:.elc=.el) \
127 $(MULE_ELCS) $(MULE_ELCS:.elc=.el) \
128 $(EARLY_GENERATED_ELCS) $(EARLY_GENERATED_LISP) \
129 $(GENERATED_ELCS) $(GENERATED_LISP) $(AUTOLOAD_PATH)/_pkg.el
131 # Non configurable portion follows
133 # Old XEmacs ChangeLog
134 CHANGELOG_XEMACS = $(wildcard ChangeLog.XEmacs)
136 MANIFEST = pkginfo/MANIFEST.$(PACKAGE)
137 # This might be a sublevel PWD; that is intentional. Use
138 # ${XEMACS_PACKAGES_BASE} for the toplevel directory.
142 .SUFFIXES: .html .info .txi .texi .texinfo .dvi .ps .pdf .elc .el
144 # STAGING is the top of the directory tree where a particular package's
145 # files are installed, or where tarballs are installed using `make bindist'.
147 # 'make bindist' needs STAGING to be set to NONMULE_INSTALLED_PACKAGES_ROOT
148 # if we are building a Mule package so we don't end up with 2 package-index
151 ifeq ('$(MAKECMDGOALS)','bindist')
152 STAGING:= $(NONMULE_INSTALLED_PACKAGES_ROOT)
154 ifeq ('$(CATEGORY)','mule')
155 STAGING:= $(MULE_INSTALLED_PACKAGES_ROOT)
157 STAGING:= $(NONMULE_INSTALLED_PACKAGES_ROOT)
161 # We should strive to use XEMACS_BATCH_CLEAN as much as possible, so we have
162 # no possible contamination from outside packages. We should rewrite the
163 # others to load the appropriate autoloads from our own built package tree.
165 ifeq ($(BUILD_WITHOUT_MULE),t)
166 LISP_DIRECTORIES= (list lisp-directory)
168 LISP_DIRECTORIES= (list (expand-file-name "mule" lisp-directory) lisp-directory)
170 XEMACS_BATCH_CLEAN = $(XEMACS) -no-autoloads $(BATCH) -eval '(setq load-path $(LISP_DIRECTORIES))'
171 # The following works more or less the same and with less fuss, but only in
173 # XEMACS_BATCH_CLEAN = $(XEMACS) -no-autoloads $(BATCH) -no-packages
174 XEMACS_BATCH_DIRTY = $(XEMACS) $(BATCH)
175 LOAD_AUTOLOADS= -eval '(packages-load-package-auto-autoloads load-path)'
177 #####################################
179 #####################################
181 # If something goes wrong and $(STAGING) is blank, the commands below will
182 # attempt to install files into absolute paths /lisp/* and /etc/* -- not
183 # a good idea at all.
187 $(error STAGING is not set; potential major filesystem trashing! Fix this)
191 ifeq ($(CATEGORY),mule)
192 ifneq ($(BUILD_WITHOUT_MULE),)
193 $(error This package needs Mule support in order to be compiled)
197 # Possibilities for building the docs:
199 # (1) EXPLICIT_DOCS = <texi files>
200 # Build the specified .texi files. Info and HTML files automatically
201 # computed from the .texi files.
202 # (2) STANDARD_DOCS = t
203 # Same as EXPLICIT_DOCS = $(PACKAGE).texi
204 # (3) Manual: Specify TEXI_FILES, INFO_FILES, INFO_DEP, HTML_FILES, and
205 # HTML_DEP by yourself. Do not explicitly add any doc targets to
208 # When EXPLICIT_DOCS or STANDARD_DOCS is given:
210 # (1) you can specify other .texi files included in the files specified in
211 # EXPLICIT_DOCS using EXTRA_TEXI_FILES (they will be listed as
212 # dependencies of the info and html files)
213 # (2) you can specify extra .html output files using EXTRA_HTML_FILES
214 # (3) you can use `DOCS_TEXINFO_EXTENSION = t' to indicate that the
215 # explicitly specified docs have .texinfo as the extension instead of
216 # .texi. Similarly for `DOCS_TXI_EXTENSION = t'.
218 # You can also specify EXTRA_DOC_FILES in all cases to indicate extra files
219 # to be copied into the man/ directory at installation time.
221 ifeq ($(STANDARD_DOCS),t)
222 EXPLICIT_DOCS = $(PACKAGE).texi
225 ifneq ($(EXPLICIT_DOCS),)
226 ifeq ($(DOCS_TEXINFO_EXTENSION),t)
227 EXPLICIT_DOCS_AS_TEXI=$(EXPLICIT_DOCS:%.texinfo=%.texi)
229 ifeq ($(DOCS_TXI_EXTENSION),t)
230 EXPLICIT_DOCS_AS_TEXI=$(EXPLICIT_DOCS:%.txi=%.texi)
232 EXPLICIT_DOCS_AS_TEXI=$(EXPLICIT_DOCS)
236 # Ensure the correct setting of $TEXI_FILES. --SY.
237 TEXI_FILES = $(EXPLICIT_DOCS)
238 ifeq ($(DOCS_TEXINFO_EXTENSION),t)
239 TEXI_FILES = $(EXPLICIT_DOCS_AS_TEXI:%.texi=%.texinfo)
241 ifeq ($(DOCS_TXI_EXTIONSION),t)
242 TEXI_FILES = $(EXPLICIT_DOCS_AS_TEXI:%.texi=%.txi)
245 TEXI_FILES += $(EXTRA_TEXI_FILES)
246 INFO_FILES = $(EXPLICIT_DOCS_AS_TEXI:%.texi=%.info*)
247 INFO_DEP = $(EXPLICIT_DOCS_AS_TEXI:%.texi=%.info)
249 $(INFO_DEP): $(EXTRA_TEXI_FILES)
252 rm -f $(EXPLICIT_DOCS_AS_TEXI:%.texi=%.toc) \
253 $(EXPLICIT_DOCS_AS_TEXI:%.texi=%.aux) \
254 $(EXPLICIT_DOCS_AS_TEXI:%.texi=%.oaux) \
255 $(EXPLICIT_DOCS_AS_TEXI:%.texi=%.log) \
256 $(EXPLICIT_DOCS_AS_TEXI:%.texi=%.cp) \
257 $(EXPLICIT_DOCS_AS_TEXI:%.texi=%.cps) \
258 $(EXPLICIT_DOCS_AS_TEXI:%.texi=%.fn) \
259 $(EXPLICIT_DOCS_AS_TEXI:%.texi=%.fns) \
260 $(EXPLICIT_DOCS_AS_TEXI:%.texi=%.tp) \
261 $(EXPLICIT_DOCS_AS_TEXI:%.texi=%.tps) \
262 $(EXPLICIT_DOCS_AS_TEXI:%.texi=%.vr) \
263 $(EXPLICIT_DOCS_AS_TEXI:%.texi=%.vrs) \
264 $(EXPLICIT_DOCS_AS_TEXI:%.texi=%.pg) \
265 $(EXPLICIT_DOCS_AS_TEXI:%.texi=%.pgs) \
266 $(EXPLICIT_DOCS_AS_TEXI:%.texi=%.ky) \
267 $(EXPLICIT_DOCS_AS_TEXI:%.texi=%.kys)
270 rm -f $(EXPLICIT_DOCS_AS_TEXI:%.texi=%.dvi) \
271 $(EXPLICIT_DOCS_AS_TEXI:%.texi=%.ps)
273 HTML_FILES = $(EXPLICIT_DOCS_AS_TEXI:%.texi=%*.html) $(EXTRA_HTML_FILES)
274 HTML_DEP = $(EXPLICIT_DOCS_AS_TEXI:%.texi=%_toc.html)
276 $(HTML_DEP): $(EXTRA_TEXI_FILES)
282 XEMACS_BATCH_PREPARE_FOR_TEXINFO = $(XEMACS_BATCH_CLEAN) -eval '(setq load-path (append (list "$(XEMACS_PACKAGES_BASE)/xemacs-packages/texinfo" "$(XEMACS_PACKAGES_BASE)/xemacs-packages/text-modes" "$(XEMACS_PACKAGES_BASE)/xemacs-packages/xemacs-base") load-path))' $(LOAD_AUTOLOADS)
284 ifeq ($(XEMACS_21_5),t)
285 INFO_ENCODING = utf-8
287 INFO_ENCODING = iso-2022-7
290 FORMAT_INFO_USING_XEMACS_ARGS = -l informat -l texinfmt -f texinfo-format-buffer
292 FORMAT_INFO_USING_XEMACS = \
293 $(XEMACS_BATCH_PREPARE_FOR_TEXINFO) -insert $< \
294 $(FORMAT_INFO_USING_XEMACS_ARGS) -f save-buffer
296 FORMAT_MULE_INFO_USING_XEMACS = \
297 $(XEMACS_BATCH_PREPARE_FOR_TEXINFO) -insert $< \
298 -eval '(unless (featurep (quote mule)) (kill-emacs 0))' \
299 -eval '(cd "$(<D)")' \
300 $(FORMAT_INFO_USING_XEMACS_ARGS) \
301 -eval '(setq file-coding-system (quote $(INFO_ENCODING)))' \
302 -eval '(save-buffer 0)'
304 # makeinfo doesn't seem able to handle Mule-formatted files correctly, so
305 # we need to use the texinfo package. #### Switch to UTF-8 and this should
307 ifeq ($(COMPILE_INFO_AS_MULE),t)
308 FORMAT_INFO = $(FORMAT_MULE_INFO_USING_XEMACS)
310 FORMAT_INFO = cd $(@D) && $(MAKEINFO) $(MAKEINFO_FLAGS) -o $(@F) $(<F)
314 $(FORMAT_MULE_INFO_USING_XEMACS)
323 ## Make sure to cd into the directory before running texi2html because it
324 ## puts its results in the current directory, not the directory of the
327 ifeq ($(COMPILE_INFO_AS_MULE),t)
328 ifeq ($(XEMACS_21_5),t)
331 PREPARE_MULE_UCS = -eval '(setq load-path (append (list "$(XEMACS_PACKAGES_BASE)/mule-packages/mule-base" "$(XEMACS_PACKAGES_BASE)/mule-packages/mule-ucs/lisp" "$(XEMACS_PACKAGES_BASE)/mule-packages/latin-euro-standards") load-path))' $(LOAD_AUTOLOADS) -l tae -l un-define
333 RUN_TEXI2HTML = for fil in $< $(EXTRA_TEXI_FILES); do \
334 $(XEMACS_BATCH_PREPARE_FOR_TEXINFO) $(PREPARE_MULE_UCS) \
335 -eval '(unless (featurep (quote mule)) (kill-emacs 0))' \
336 -eval "(find-file \"$$fil\")" \
337 -eval '(setq file-coding-system (quote utf-8))' \
338 -eval '(progn (goto-char (point-min)) (when (search-forward "@setfilename" nil t) (forward-line) (insert "@documentencoding UTF-8\n")))' \
339 -eval '(save-buffer 16)'; done && \
340 pushd $(@D) && $(TEXI2HTML) $(TEXI2HTML_FLAGS) $(<F) && popd && \
341 for fil in $< $(EXTRA_TEXI_FILES); do mv -f $$fil~ $$fil; done
343 RUN_TEXI2HTML = cd $(@D) && $(TEXI2HTML) $(TEXI2HTML_FLAGS) $(<F)
350 %_toc.html: %.texinfo
353 # #### I'm not sure if this is correct. xslt-process seems to think it
354 # needs to be run twice.
356 RUN_TEXI2DVI = cd $(@D) && $(TEXI2DVI) $(<F) && $(TEXI2DVI) $(<F)
369 RUN_TEXI2PDF = cd $(@D) && $(TEXI2PDF) $(<F)
382 RUN_DVIPS = cd $(@D) && $(DVIPS) -o $(@F) $(<F)
390 ifeq ($(XEMACS_NATIVE_NT),t)
391 # Convert UNIX-path (containing output of `pwd') to windows-path, so
392 # that XEmacs native NT can handle it.
394 "$(shell cygpath --windows $(XEMACS_PACKAGES_BASE)/package-compile.el)"
396 "$(shell cygpath --windows $(XEMACS_PACKAGES_BASE)/package-clean.el)"
397 PACKAGE_NET_PACKAGES = \
398 "$(shell cygpath --windows $(XEMACS_PACKAGES_BASE)/package-net-packages.el)"
400 "$(shell cygpath --windows $(STAGING))"
401 HACK_PACKAGE_INDEX = \
402 "$(shell cygpath --windows $(XEMACS_PACKAGES_BASE)/hack-package-index.el)"
404 PACKAGE_COMPILE = $(XEMACS_PACKAGES_BASE)/package-compile.el
405 PACKAGE_CLEAN = $(XEMACS_PACKAGES_BASE)/package-clean.el
406 PACKAGE_NET_PACKAGES = $(XEMACS_PACKAGES_BASE)/package-net-packages.el
407 PACKAGE_STAGING = $(STAGING)
408 HACK_PACKAGE_INDEX = $(XEMACS_PACKAGES_BASE)/hack-package-index.el
411 # Behaves like an XEmacs with the required packages set up
412 BOOT_XEMACS= $(XEMACS_BATCH_CLEAN) -l $(PACKAGE_COMPILE) -- $(REQUIRES) -- $(PRELOADS)
415 $(BOOT_XEMACS) -f batch-byte-compile $<
417 # compile must be :: because some packages (e.g. psgml-dtd?) put separate
418 # commands that apply only to those particular dependencies.
421 # Build the generated stuff if we're in the top-level of a package directory
424 compile:: $(AUTOLOAD_PATH)/_pkg.el
429 ## first, the byte-compile the files generated earlier (auto-autoloads.el,
430 ## etc.), now that we have all of them and hence can handle dependencies.
431 ## then, generate and compile the other generated files.
432 compile:: $(EARLY_GENERATED_ELCS) $(GENERATED_ELCS)
434 ## now compile the main Lisp
435 compile:: $(ELCS) $(ELCS_1)
437 ## now the docs, info format.
438 compile:: $(INFO_DEP)
440 ## now the docs, html format (maybe).
441 ifeq ($(INSTALL_HTML),t)
445 ## now, any extra dependencies specified by the Makefiles.
446 compile:: $(EXTRA_DEPENDENCIES)
448 dist:: binkit package-info
452 # Remove the generated files.
454 rm -f $(GENERATED_LISP) $(EARLY_GENERATED_LISP) $(GENERATED_ELCS) $(EARLY_GENERATED_ELCS) package-info $(AUTOLOAD_PATH)/_pkg.el
457 rm -f $(GENERATED_ELCS) $(EARLY_GENERATED_ELCS) $(ELCS) $(ELCS_1) \
458 $(HTML_FILES) $(INFO_FILES) $(DEPENDS_FILE_NAME) $(EXTRA_DEPENDENCIES) \
461 # distclean is what you use when making a distribution. everything that
462 # can get rebuilt should be killed. everything.
464 distclean:: clean genclean
466 # extraclean means distclean plus removal of backup files, etc.
467 extraclean: distclean
468 rm -f core *~ .*~ .\#*
470 # [[ elcclean is for when you want to rebuild after having made a small
471 # change, e.g. you cvs updated and got new versions of some files.
472 # The problem is that if you just `make', you may have the situation
473 # where a file that needs to be compiled depends on some other
474 # just-updated .el file, and in particular on the features that were
475 # added in the update. In such a case, the .elc file is out-of-date
476 # w.r.t the .el file, and you'd get the .elc file (missing the
477 # necessary features), and error. So we remove the minimum number of
478 # .elc required to ensure that the build will always succeed
481 # This is less of an issue now that we ignore out-of-date .elc files. --ben
484 $(XEMACS_BATCH_CLEAN) -l $(PACKAGE_CLEAN)
486 GENERATED_ELC_DEPENDENCIES = $(ELCS:.elc=.el) $(ELCS_1:.elc=.el) \
487 $(AUTOLOAD_PATH)/_pkg.el
489 # If Makefile or _pkg.el has changed (Makefile will trigger _pkg.el
490 # rebuilding), then our suppress forms may have changed. Just rebuilding
491 # the autoload file normally isn't enough as the old suppress forms will
492 # still sit there, so nuke it first.
494 # We include xemacs-base in the load path so as to get the operator
495 # definitions in autoload-operators.el.
496 $(AUTOLOAD_PATH)/auto-autoloads.el :: $(AUTOLOAD_PATH)/_pkg.el
497 rm -f $(AUTOLOAD_PATH)/auto-autoloads.el
499 ifeq ($(or $(XEMACS_21_5),$(BUILD_WITH_SXEMACS)),t)
500 $(AUTOLOAD_PATH)/auto-autoloads.el :: $(GENERATED_ELC_DEPENDENCIES)
501 $(XEMACS_BATCH_CLEAN) \
502 -eval '(setq load-path (cons "$(XEMACS_PACKAGES_BASE)/xemacs-packages/xemacs-base" load-path)))' \
504 -l autoload -f batch-update-directory-autoloads \
505 $(PACKAGE) $(AUTOLOAD_PATH)
506 # The equivalent of `touch' is done automatically
507 @rm -f $(AUTOLOAD_PATH)/auto-autoloads.el~
509 $(AUTOLOAD_PATH)/custom-defines.el : $(GENERATED_ELC_DEPENDENCIES)
510 $(XEMACS_BATCH_CLEAN) $(LOAD_AUTOLOADS) \
511 -l autoload -f batch-update-directory-custom-defines \
512 $(PACKAGE) $(AUTOLOAD_PATH)
513 @rm -f $(AUTOLOAD_PATH)/custom-defines.el~
516 AUTOLOAD_PACKAGE_NAME = (setq autoload-package-name \"$(PACKAGE)\")
517 AUTOLOAD_FILE = (setq generated-autoload-file \
518 \"$(AUTOLOAD_PATH)/auto-autoloads.el\")
520 $(AUTOLOAD_PATH)/auto-autoloads.el :: $(GENERATED_ELC_DEPENDENCIES)
521 $(XEMACS_BATCH_CLEAN) \
522 -eval '(setq load-path (cons "$(XEMACS_PACKAGES_BASE)/xemacs-packages/xemacs-base" load-path)))' \
524 -eval "$(AUTOLOAD_PACKAGE_NAME)" \
525 -eval "$(AUTOLOAD_FILE)" \
526 -l autoload -f batch-update-autoloads $^
527 @touch $(AUTOLOAD_PATH)/auto-autoloads.el
528 @rm -f $(AUTOLOAD_PATH)/auto-autoloads.el~
531 $(AUTOLOAD_PATH)/custom-load.el : $(GENERATED_ELC_DEPENDENCIES)
532 $(XEMACS_BATCH_CLEAN) $(LOAD_AUTOLOADS) -l cus-dep \
533 -f Custom-make-dependencies $(AUTOLOAD_PATH)
534 @touch $(AUTOLOAD_PATH)/custom-load.el
535 @rm -f $(AUTOLOAD_PATH)/custom-load.el~
537 pkg_tar = $(STAGING)/$(PACKAGE)-$(VERSION)-pkg.tar
539 ifeq ($(XEMACS_NATIVE_NT),t)
540 # Convert UNIX-path (containing output of `pwd') to windows-path,
541 # so that XEmacs native NT can handle it.
542 PKG_TAR_GZ = "$(shell cygpath --windows $(pkg_tar)).gz"
543 PACKAGE_INFO = "$(shell cygpath --windows $(STAGING)/$(PACKAGE_INDEX))"
545 PKG_TAR_GZ = $(pkg_tar).gz
546 PACKAGE_INFO = $(STAGING)/$(PACKAGE_INDEX)
549 # Make the $(pkg_tar).gz first, then the $(pkg_tar).bz2
550 package-info : package-info.in Makefile $(AUTOLOAD_PATH)/_pkg.el \
551 ChangeLog $(pkg_tar).gz $(pkg_tar).bz2
552 # #### See if we can't CLEAN this up
553 $(XEMACS_BATCH_DIRTY) \
554 -l package-info.elc -f batch-update-package-info \
555 '$(VERSION)' $(PKG_TAR_GZ) \
557 '$(AUTHOR_VERSION)' '$(MAINTAINER)' '$(CATEGORY)'
558 # #### See if we can't CLEAN this up
559 $(XEMACS_BATCH_DIRTY) \
560 -l $(HACK_PACKAGE_INDEX) -f batch-hack-package-index \
561 $(PACKAGE) package-info $(PACKAGE_INFO) $(CATEGORY)
563 ifeq ($(BUILD_TARS),t)
564 $(pkg_tar): $(STAGING)/$(MANIFEST)
569 $(TAR) $(EXCLUDES) --create --owner=0 --group=0 --file $(pkg_tar) \
573 $(pkg_tar).gz: $(pkg_tar)
574 ifneq ($(BZIP2),) # need to leave behind the .tar for bzip2 to find.
576 gzip -cv9 $(pkg_tar) > $(pkg_tar).gz;)
579 gzip -v9 $(pkg_tar);)
583 $(pkg_tar).bz2: $(pkg_tar)
585 $(BZIP2) -v9 $(pkg_tar);)
586 else # Don't build a .tar.bz2
589 .PHONY: $(pkg_tar).bz2
592 else # when BUILD_TARS is ''
593 # Touch the file so the package-index can be generated
594 $(pkg_tar) $(pkg_tar).gz $(pkg_tar).bz2 :
598 ifeq ($(AUTHOR_VERSION),)
602 $(AUTOLOAD_PATH)/_pkg.el: Makefile
603 @echo Creating $(AUTOLOAD_PATH)/_pkg.el
604 @echo ";;;###autoload" > $(AUTOLOAD_PATH)/_pkg.el
605 @echo "(package-provide '$(PACKAGE)" >> $(AUTOLOAD_PATH)/_pkg.el
606 @echo " :version $(VERSION)" >> $(AUTOLOAD_PATH)/_pkg.el
607 @echo " :author-version \"$(AUTHOR_VERSION)\"" >> $(AUTOLOAD_PATH)/_pkg.el
608 @echo " :type '$(PKG_TYPE))" >> $(AUTOLOAD_PATH)/_pkg.el
609 ifneq ($(PACKAGE_SUPPRESS),)
610 @echo "" >> $(AUTOLOAD_PATH)/_pkg.el
611 @echo ";;;###autoload" >> $(AUTOLOAD_PATH)/_pkg.el
612 @echo "(when (fboundp 'package-suppress)" >> $(AUTOLOAD_PATH)/_pkg.el
613 @echo " $(PACKAGE_SUPPRESS)" >> $(AUTOLOAD_PATH)/_pkg.el
614 @echo ")" >> $(AUTOLOAD_PATH)/_pkg.el
618 @echo Generating ChangeLog
619 -@git log --shortstat . > $@
621 setup-info: # #### See if we can't CLEAN this up
622 $(XEMACS_BATCH_DIRTY) -l $(PACKAGE_NET_PACKAGES) \
624 -f package-net-packages-batch-convert-index-to-ini $(PACKAGE_STAGING) $(CATEGORY)
626 .PHONY: binkit-with-html install-for-bindist autoloads
628 # A target that _only_ installs and doesn't build _anything_
633 ifeq ($(INSTALL_HTML),t)
637 binkit-with-html: binkit-1 install-html
639 install-for-bindist: binkit package-info setup-info
641 ## Do not byte-compile as that could require stuff from elsewhere, and you
642 ## get dependency circles.
643 autoloads: $(EARLY_GENERATED_LISP)
645 binkit-1: check-staging
646 (if test -d $(STAGING); then \
648 if test -f $(MANIFEST); then \
649 rm -rf `cat $(MANIFEST)`; \
653 @-mkdir -p $(STAGING)/lisp/$(PACKAGE)
656 @-mkdir -p $(STAGING)/lisp/$(ELCS_1_DEST)
658 ifneq ($(INFO_FILES),)
659 @-mkdir -p $(STAGING)/info
660 @-mkdir -p $(STAGING)/man/$(PACKAGE)
662 ifneq ($(DATA_FILES),)
663 @-mkdir -p $(STAGING)/etc/$(DATA_DEST)
665 ifneq ($(DATA_1_FILES),)
666 @-mkdir -p $(STAGING)/etc/$(DATA_1_DEST)
668 ifneq ($(DATA_2_FILES),)
669 @-mkdir -p $(STAGING)/etc/$(DATA_2_DEST)
671 ifneq ($(DATA_3_FILES),)
672 @-mkdir -p $(STAGING)/etc/$(DATA_3_DEST)
674 ifneq ($(DATA_4_FILES),)
675 @-mkdir -p $(STAGING)/etc/$(DATA_4_DEST)
677 ifneq ($(DATA_5_FILES),)
678 @-mkdir -p $(STAGING)/etc/$(DATA_5_DEST)
680 ifneq ($(DATA_6_FILES),)
681 @-mkdir -p $(STAGING)/etc/$(DATA_6_DEST)
683 ifneq ($(DATA_7_FILES),)
684 @-mkdir -p $(STAGING)/etc/$(DATA_7_DEST)
686 ifneq ($(DATA_8_FILES),)
687 @-mkdir -p $(STAGING)/etc/$(DATA_8_DEST)
689 ifneq ($(DATA_9_FILES),)
690 @-mkdir -p $(STAGING)/etc/$(DATA_9_DEST)
692 ifneq ($(DATA_10_FILES),)
693 @-mkdir -p $(STAGING)/etc/$(DATA_10_DEST)
695 ifneq ($(DATA_11_FILES),)
696 @-mkdir -p $(STAGING)/etc/$(DATA_11_DEST)
698 ifneq ($(DATA_12_FILES),)
699 @-mkdir -p $(STAGING)/etc/$(DATA_12_DEST)
701 ifneq ($(DATA_13_FILES),)
702 @-mkdir -p $(STAGING)/etc/$(DATA_13_DEST)
704 ifneq ($(DATA_14_FILES),)
705 @-mkdir -p $(STAGING)/etc/$(DATA_14_DEST)
707 ifneq ($(DATA_15_FILES),)
708 @-mkdir -p $(STAGING)/etc/$(DATA_15_DEST)
710 ifneq ($(DATA_16_FILES),)
711 @-mkdir -p $(STAGING)/etc/$(DATA_16_DEST)
713 ifneq ($(DATA_17_FILES),)
714 @-mkdir -p $(STAGING)/etc/$(DATA_17_DEST)
716 ifneq ($(DATA_18_FILES),)
717 @-mkdir -p $(STAGING)/etc/$(DATA_18_DEST)
719 ifneq ($(DATA_19_FILES),)
720 @-mkdir -p $(STAGING)/etc/$(DATA_19_DEST)
722 ifneq ($(DATA_20_FILES),)
723 @-mkdir -p $(STAGING)/etc/$(DATA_20_DEST)
725 ifneq ($(DATA_21_FILES),)
726 @-mkdir -p $(STAGING)/etc/$(DATA_21_DEST)
728 ifneq ($(DATA_22_FILES),)
729 @-mkdir -p $(STAGING)/etc/$(DATA_22_DEST)
731 ifneq ($(DATA_23_FILES),)
732 @-mkdir -p $(STAGING)/etc/$(DATA_23_DEST)
734 ifneq ($(DATA_24_FILES),)
735 @-mkdir -p $(STAGING)/etc/$(DATA_24_DEST)
737 ifneq ($(DATA_25_FILES),)
738 @-mkdir -p $(STAGING)/etc/$(DATA_25_DEST)
740 ifneq ($(DATA_26_FILES),)
741 @-mkdir -p $(STAGING)/etc/$(DATA_26_DEST)
743 ifneq ($(DATA_27_FILES),)
744 @-mkdir -p $(STAGING)/etc/$(DATA_27_DEST)
746 ifneq ($(DATA_28_FILES),)
747 @-mkdir -p $(STAGING)/etc/$(DATA_28_DEST)
749 ifneq ($(DATA_29_FILES),)
750 @-mkdir -p $(STAGING)/etc/$(DATA_29_DEST)
752 ifneq ($(DATA_30_FILES),)
753 @-mkdir -p $(STAGING)/etc/$(DATA_30_DEST)
755 ifneq ($(DATA_31_FILES),)
756 @-mkdir -p $(STAGING)/etc/$(DATA_31_DEST)
758 ifneq ($(DATA_32_FILES),)
759 @-mkdir -p $(STAGING)/etc/$(DATA_32_DEST)
761 ifneq ($(DATA_33_FILES),)
762 @-mkdir -p $(STAGING)/etc/$(DATA_33_DEST)
764 ifneq ($(DATA_34_FILES),)
765 @-mkdir -p $(STAGING)/etc/$(DATA_34_DEST)
767 ifneq ($(DATA_35_FILES),)
768 @-mkdir -p $(STAGING)/etc/$(DATA_35_DEST)
770 ifneq ($(LIBSRC_FILES),)
771 @-mkdir -p $(STAGING)/lib-src
773 @-mkdir -p $(STAGING)/pkginfo
775 $(RCOPY) $(addprefix $(PWD)/, ChangeLog $(SOURCE_FILES_TO_COPY) $(EXTRA_SOURCES)) \
776 $(STAGING)/lisp/$(PACKAGE)
778 ifneq ($(CHANGELOG_XEMACS),)
779 $(RCOPY) $(addprefix $(PWD)/, ChangeLog.XEmacs) $(STAGING)/lisp/$(PACKAGE)
782 $(RCOPY) $(addprefix $(PWD)/, $(ELCS_1_FILES)) $(STAGING)/lisp/$(ELCS_1_DEST)
784 ifneq ($(INFO_FILES),)
785 $(RCOPY) $(addprefix $(PWD)/, $(INFO_FILES)) $(STAGING)/info
786 $(RCOPY) $(addprefix $(PWD)/, $(TEXI_FILES)) $(STAGING)/man/$(PACKAGE)
787 ifneq ($(EXTRA_DOC_FILES),)
788 $(RCOPY) $(addprefix $(PWD)/, $(EXTRA_DOC_FILES)) $(STAGING)/man/$(PACKAGE)
791 ifneq ($(DATA_FILES),)
792 $(RCOPY) $(addprefix $(PWD)/, $(DATA_FILES)) $(STAGING)/etc/$(DATA_DEST)
794 ifneq ($(DATA_1_FILES),)
795 $(RCOPY) $(addprefix $(PWD)/, $(DATA_1_FILES)) $(STAGING)/etc/$(DATA_1_DEST)
797 ifneq ($(DATA_2_FILES),)
798 $(RCOPY) $(addprefix $(PWD)/, $(DATA_2_FILES)) $(STAGING)/etc/$(DATA_2_DEST)
800 ifneq ($(DATA_3_FILES),)
801 $(RCOPY) $(addprefix $(PWD)/, $(DATA_3_FILES)) $(STAGING)/etc/$(DATA_3_DEST)
803 ifneq ($(DATA_4_FILES),)
804 $(RCOPY) $(addprefix $(PWD)/, $(DATA_4_FILES)) $(STAGING)/etc/$(DATA_4_DEST)
806 ifneq ($(DATA_5_FILES),)
807 $(RCOPY) $(addprefix $(PWD)/, $(DATA_5_FILES)) $(STAGING)/etc/$(DATA_5_DEST)
809 ifneq ($(DATA_6_FILES),)
810 $(RCOPY) $(addprefix $(PWD)/, $(DATA_6_FILES)) $(STAGING)/etc/$(DATA_6_DEST)
812 ifneq ($(DATA_7_FILES),)
813 $(RCOPY) $(addprefix $(PWD)/, $(DATA_7_FILES)) $(STAGING)/etc/$(DATA_7_DEST)
815 ifneq ($(DATA_8_FILES),)
816 $(RCOPY) $(addprefix $(PWD)/, $(DATA_8_FILES)) $(STAGING)/etc/$(DATA_8_DEST)
818 ifneq ($(DATA_9_FILES),)
819 $(RCOPY) $(addprefix $(PWD)/, $(DATA_9_FILES)) $(STAGING)/etc/$(DATA_9_DEST)
821 ifneq ($(DATA_10_FILES),)
822 $(RCOPY) $(addprefix $(PWD)/, $(DATA_10_FILES)) $(STAGING)/etc/$(DATA_10_DEST)
824 ifneq ($(DATA_11_FILES),)
825 $(RCOPY) $(addprefix $(PWD)/, $(DATA_11_FILES)) $(STAGING)/etc/$(DATA_11_DEST)
827 ifneq ($(DATA_12_FILES),)
828 $(RCOPY) $(addprefix $(PWD)/, $(DATA_12_FILES)) $(STAGING)/etc/$(DATA_12_DEST)
830 ifneq ($(DATA_13_FILES),)
831 $(RCOPY) $(addprefix $(PWD)/, $(DATA_13_FILES)) $(STAGING)/etc/$(DATA_13_DEST)
833 ifneq ($(DATA_14_FILES),)
834 $(RCOPY) $(addprefix $(PWD)/, $(DATA_14_FILES)) $(STAGING)/etc/$(DATA_14_DEST)
836 ifneq ($(DATA_15_FILES),)
837 $(RCOPY) $(addprefix $(PWD)/, $(DATA_15_FILES)) $(STAGING)/etc/$(DATA_15_DEST)
839 ifneq ($(DATA_16_FILES),)
840 $(RCOPY) $(addprefix $(PWD)/, $(DATA_16_FILES)) $(STAGING)/etc/$(DATA_16_DEST)
842 ifneq ($(DATA_17_FILES),)
843 $(RCOPY) $(addprefix $(PWD)/, $(DATA_17_FILES)) $(STAGING)/etc/$(DATA_17_DEST)
845 ifneq ($(DATA_18_FILES),)
846 $(RCOPY) $(addprefix $(PWD)/, $(DATA_18_FILES)) $(STAGING)/etc/$(DATA_18_DEST)
848 ifneq ($(DATA_19_FILES),)
849 $(RCOPY) $(addprefix $(PWD)/, $(DATA_19_FILES)) $(STAGING)/etc/$(DATA_19_DEST)
851 ifneq ($(DATA_20_FILES),)
852 $(RCOPY) $(addprefix $(PWD)/, $(DATA_20_FILES)) $(STAGING)/etc/$(DATA_20_DEST)
854 ifneq ($(DATA_21_FILES),)
855 $(RCOPY) $(addprefix $(PWD)/, $(DATA_21_FILES)) $(STAGING)/etc/$(DATA_21_DEST)
857 ifneq ($(DATA_22_FILES),)
858 $(RCOPY) $(addprefix $(PWD)/, $(DATA_22_FILES)) $(STAGING)/etc/$(DATA_22_DEST)
860 ifneq ($(DATA_23_FILES),)
861 $(RCOPY) $(addprefix $(PWD)/, $(DATA_23_FILES)) $(STAGING)/etc/$(DATA_23_DEST)
863 ifneq ($(DATA_24_FILES),)
864 $(RCOPY) $(addprefix $(PWD)/, $(DATA_24_FILES)) $(STAGING)/etc/$(DATA_24_DEST)
866 ifneq ($(DATA_25_FILES),)
867 $(RCOPY) $(addprefix $(PWD)/, $(DATA_25_FILES)) $(STAGING)/etc/$(DATA_25_DEST)
869 ifneq ($(DATA_26_FILES),)
870 $(RCOPY) $(addprefix $(PWD)/, $(DATA_26_FILES)) $(STAGING)/etc/$(DATA_26_DEST)
872 ifneq ($(DATA_27_FILES),)
873 $(RCOPY) $(addprefix $(PWD)/, $(DATA_27_FILES)) $(STAGING)/etc/$(DATA_27_DEST)
875 ifneq ($(DATA_28_FILES),)
876 $(RCOPY) $(addprefix $(PWD)/, $(DATA_28_FILES)) $(STAGING)/etc/$(DATA_28_DEST)
878 ifneq ($(DATA_29_FILES),)
879 $(RCOPY) $(addprefix $(PWD)/, $(DATA_29_FILES)) $(STAGING)/etc/$(DATA_29_DEST)
881 ifneq ($(DATA_30_FILES),)
882 $(RCOPY) $(addprefix $(PWD)/, $(DATA_30_FILES)) $(STAGING)/etc/$(DATA_30_DEST)
884 ifneq ($(DATA_31_FILES),)
885 $(RCOPY) $(addprefix $(PWD)/, $(DATA_31_FILES)) $(STAGING)/etc/$(DATA_31_DEST)
887 ifneq ($(DATA_32_FILES),)
888 $(RCOPY) $(addprefix $(PWD)/, $(DATA_32_FILES)) $(STAGING)/etc/$(DATA_32_DEST)
890 ifneq ($(DATA_33_FILES),)
891 $(RCOPY) $(addprefix $(PWD)/, $(DATA_33_FILES)) $(STAGING)/etc/$(DATA_33_DEST)
893 ifneq ($(DATA_34_FILES),)
894 $(RCOPY) $(addprefix $(PWD)/, $(DATA_34_FILES)) $(STAGING)/etc/$(DATA_34_DEST)
896 ifneq ($(DATA_35_FILES),)
897 $(RCOPY) $(addprefix $(PWD)/, $(DATA_35_FILES)) $(STAGING)/etc/$(DATA_35_DEST)
899 ifneq ($(LIBSRC_FILES),)
900 $(RCOPY) $(addprefix $(PWD)/, $(LIBSRC_FILES)) $(STAGING)/lib-src
903 ls -1 $(MANIFEST) > $(MANIFEST))
906 ls -1 lisp/$(PACKAGE)/ChangeLog* \
907 $(patsubst %, lisp/$(PACKAGE)/%, $(notdir $(SOURCE_FILES_TO_COPY))) \
908 $(patsubst %, lisp/$(PACKAGE)/%, $(notdir $(EXTRA_SOURCES))) \
913 ls -1 $(patsubst %, lisp/$(ELCS_1_DEST)/%, $(notdir $(ELCS_1_FILES))) \
916 ifneq ($(INFO_FILES),)
918 ls -1 man/$(PACKAGE)/* \
919 $(patsubst %,info/%, $(notdir $(INFO_FILES))) >> $(MANIFEST))
921 ifneq ($(DATA_FILES),)
923 ls -1 $(patsubst %, etc/$(DATA_DEST)/%, $(notdir $(DATA_FILES))) \
926 ifneq ($(DATA_1_FILES),)
928 ls -1 $(patsubst %, etc/$(DATA_1_DEST)/%, $(notdir $(DATA_1_FILES))) \
931 ifneq ($(DATA_2_FILES),)
933 ls -1 $(patsubst %, etc/$(DATA_2_DEST)/%, $(notdir $(DATA_2_FILES))) \
936 ifneq ($(DATA_3_FILES),)
938 ls -1 $(patsubst %, etc/$(DATA_3_DEST)/%, $(notdir $(DATA_3_FILES))) \
941 ifneq ($(DATA_4_FILES),)
943 ls -1 $(patsubst %, etc/$(DATA_4_DEST)/%, $(notdir $(DATA_4_FILES))) \
946 ifneq ($(DATA_5_FILES),)
948 ls -1 $(patsubst %, etc/$(DATA_5_DEST)/%, $(notdir $(DATA_5_FILES))) \
951 ifneq ($(DATA_6_FILES),)
953 ls -1 $(patsubst %, etc/$(DATA_6_DEST)/%, $(notdir $(DATA_6_FILES))) \
956 ifneq ($(DATA_7_FILES),)
958 ls -1 $(patsubst %, etc/$(DATA_7_DEST)/%, $(notdir $(DATA_7_FILES))) \
961 ifneq ($(DATA_8_FILES),)
963 ls -1 $(patsubst %, etc/$(DATA_8_DEST)/%, $(notdir $(DATA_8_FILES))) \
966 ifneq ($(DATA_9_FILES),)
968 ls -1 $(patsubst %, etc/$(DATA_9_DEST)/%, $(notdir $(DATA_9_FILES))) \
971 ifneq ($(DATA_10_FILES),)
973 ls -1 $(patsubst %, etc/$(DATA_10_DEST)/%, $(notdir $(DATA_10_FILES))) \
976 ifneq ($(DATA_11_FILES),)
978 ls -1 $(patsubst %, etc/$(DATA_11_DEST)/%, $(notdir $(DATA_11_FILES))) \
981 ifneq ($(DATA_12_FILES),)
983 ls -1 $(patsubst %, etc/$(DATA_12_DEST)/%, $(notdir $(DATA_12_FILES))) \
986 ifneq ($(DATA_13_FILES),)
988 ls -1 $(patsubst %, etc/$(DATA_13_DEST)/%, $(notdir $(DATA_13_FILES))) \
991 ifneq ($(DATA_14_FILES),)
993 ls -1 $(patsubst %, etc/$(DATA_14_DEST)/%, $(notdir $(DATA_14_FILES))) \
996 ifneq ($(DATA_15_FILES),)
998 ls -1 $(patsubst %, etc/$(DATA_15_DEST)/%, $(notdir $(DATA_15_FILES))) \
1001 ifneq ($(DATA_16_FILES),)
1003 ls -1 $(patsubst %, etc/$(DATA_16_DEST)/%, $(notdir $(DATA_16_FILES))) \
1006 ifneq ($(DATA_17_FILES),)
1008 ls -1 $(patsubst %, etc/$(DATA_17_DEST)/%, $(notdir $(DATA_17_FILES))) \
1011 ifneq ($(DATA_18_FILES),)
1013 ls -1 $(patsubst %, etc/$(DATA_18_DEST)/%, $(notdir $(DATA_18_FILES))) \
1016 ifneq ($(DATA_19_FILES),)
1018 ls -1 $(patsubst %, etc/$(DATA_19_DEST)/%, $(notdir $(DATA_19_FILES))) \
1021 ifneq ($(DATA_20_FILES),)
1023 ls -1 $(patsubst %, etc/$(DATA_20_DEST)/%, $(notdir $(DATA_20_FILES))) \
1026 ifneq ($(DATA_21_FILES),)
1028 ls -1 $(patsubst %, etc/$(DATA_21_DEST)/%, $(notdir $(DATA_21_FILES))) \
1031 ifneq ($(DATA_22_FILES),)
1033 ls -1 $(patsubst %, etc/$(DATA_22_DEST)/%, $(notdir $(DATA_22_FILES))) \
1036 ifneq ($(DATA_23_FILES),)
1038 ls -1 $(patsubst %, etc/$(DATA_23_DEST)/%, $(notdir $(DATA_23_FILES))) \
1041 ifneq ($(DATA_24_FILES),)
1043 ls -1 $(patsubst %, etc/$(DATA_24_DEST)/%, $(notdir $(DATA_24_FILES))) \
1046 ifneq ($(DATA_25_FILES),)
1048 ls -1 $(patsubst %, etc/$(DATA_25_DEST)/%, $(notdir $(DATA_25_FILES))) \
1051 ifneq ($(DATA_26_FILES),)
1053 ls -1 $(patsubst %, etc/$(DATA_26_DEST)/%, $(notdir $(DATA_26_FILES))) \
1056 ifneq ($(DATA_27_FILES),)
1058 ls -1 $(patsubst %, etc/$(DATA_27_DEST)/%, $(notdir $(DATA_27_FILES))) \
1061 ifneq ($(DATA_28_FILES),)
1063 ls -1 $(patsubst %, etc/$(DATA_28_DEST)/%, $(notdir $(DATA_28_FILES))) \
1066 ifneq ($(DATA_29_FILES),)
1068 ls -1 $(patsubst %, etc/$(DATA_29_DEST)/%, $(notdir $(DATA_29_FILES))) \
1071 ifneq ($(DATA_30_FILES),)
1073 ls -1 $(patsubst %, etc/$(DATA_30_DEST)/%, $(notdir $(DATA_30_FILES))) \
1076 ifneq ($(DATA_31_FILES),)
1078 ls -1 $(patsubst %, etc/$(DATA_31_DEST)/%, $(notdir $(DATA_31_FILES))) \
1081 ifneq ($(DATA_32_FILES),)
1083 ls -1 $(patsubst %, etc/$(DATA_32_DEST)/%, $(notdir $(DATA_32_FILES))) \
1086 ifneq ($(DATA_33_FILES),)
1088 ls -1 $(patsubst %, etc/$(DATA_33_DEST)/%, $(notdir $(DATA_33_FILES))) \
1091 ifneq ($(DATA_34_FILES),)
1093 ls -1 $(patsubst %, etc/$(DATA_34_DEST)/%, $(notdir $(DATA_34_FILES))) \
1096 ifneq ($(DATA_35_FILES),)
1098 ls -1 $(patsubst %, etc/$(DATA_35_DEST)/%, $(notdir $(DATA_35_FILES))) \
1101 ifneq ($(LIBSRC_FILES),)
1103 ls -1 $(patsubst %,lib-src/%, $(notdir $(LIBSRC_FILES))) >> $(MANIFEST))
1106 install-html: html check-staging
1107 ifneq ($(HTML_FILES),)
1108 @-mkdir -p $(STAGING)/html
1109 @-mkdir -p $(STAGING)/pkginfo
1110 $(RCOPY) $(addprefix $(PWD)/, $(HTML_FILES)) $(STAGING)/html
1112 ls -1 $(patsubst %,html/%, $(notdir $(HTML_FILES))) >> $(MANIFEST))
1115 # Export dependencies for outer make file usage
1117 # Passed in from outer Make
1120 # Build depends is a clean version of Requires
1121 BDEPENDS=$(strip $(filter-out $(PACKAGE),$(REQUIRES)))
1123 $(DEPENDS_FILE_NAME): Makefile $(XEMACS_PACKAGES_BASE)/XEmacs.rules
1124 ifneq ($(TARGET_BASE),)
1125 -rm -f $(DEPENDS_FILE_NAME)
1126 @echo Creating $(DEPENDS_FILE_NAME)
1127 @echo > $(DEPENDS_FILE_NAME)
1128 ifneq ($(BDEPENDS),)
1129 @echo $(TARGET_BASE)$(PACKAGE)/autoloads.target: \
1130 $(TARGET_BASE)$(BDEPENDS:=/autoloads.target) \
1131 >>$(DEPENDS_FILE_NAME)
1132 @echo $(TARGET_BASE)$(PACKAGE)/compile.target: \
1133 $(TARGET_BASE)$(BDEPENDS:=/compile.target) \
1134 >>$(DEPENDS_FILE_NAME)