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.36 - (view) (download)

1 : ben 1.24 # Common Makefile material for package Makefiles
2 : steve 1.1 # Copyright (C) 1997 Free Software Foundation Inc.
3 :    
4 :     # This file is part of XEmacs.
5 :    
6 :     # XEmacs is free software; you can redistribute it and/or modify it
7 :     # under the terms of the GNU General Public License as published by the
8 :     # Free Software Foundation; either version 2, or (at your option) any
9 :     # later version.
10 :    
11 :     # XEmacs is distributed in the hope that it will be useful, but WITHOUT
12 :     # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 :     # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 :     # for more details.
15 :    
16 :     # You should have received a copy of the GNU General Public License
17 :     # along with XEmacs; see the file COPYING. If not, write to
18 :     # the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
19 :     # Boston, MA 02111-1307, USA.
20 :    
21 : andreasj 1.17 # Requires XEmacs 21.0-beta19 or greater and GNU Make 3.78 or greater.
22 : steve 1.1
23 : andreasj 1.17 XEMACS_PACKAGES_BASE := $(shell while [ ! -f XEmacs.rules ]; do \
24 :     cd ..; \
25 :     done; \
26 :     pwd)
27 : steve 1.1
28 : youngs 1.31 DEPENDS_FILE_NAME = pdepends.mk
29 :    
30 : andreasj 1.17 # Make this the first target
31 :     bytecompile:: all
32 : steve 1.1
33 : andreasj 1.17 include ${XEMACS_PACKAGES_BASE}/Local.rules.mk
34 :     -include ${XEMACS_PACKAGES_BASE}/Local.rules
35 : steveb 1.7
36 : steveb 1.14 # Ensure vanilla locale when building
37 : andreasj 1.17 override LANG := C
38 : steve 1.4
39 : steveb 1.11 # Only in rare cases will you need to override this
40 : andreasj 1.17 ifeq ($(AUTOLOAD_PATH),)
41 : steveb 1.11 AUTOLOAD_PATH = .
42 :     endif
43 :    
44 : steveb 1.9 # Override or add to this in the package Makefile if necessary
45 : steveb 1.11 GENERATED = $(AUTOLOAD_PATH)/auto-autoloads.elc
46 : steveb 1.9
47 :     # SOURCE_FILES_TO_COPY = *.el*
48 : steveb 1.11 SOURCE_FILES_TO_COPY = $(ELCS) $(ELCS:.elc=.el) \
49 :     $(MULE_ELCS) $(MULE_ELCS:.elc=.el) \
50 : steveb 1.12 $(GENERATED) $(GENERATED:.elc=.el) $(AUTOLOAD_PATH)/_pkg.el
51 : steveb 1.8
52 : steve 1.1 # Non configurable portion follows
53 :    
54 : steveb 1.9 MANIFEST = pkginfo/MANIFEST.$(PACKAGE)
55 : andreasj 1.17 # This might be a sublevel PWD; that is intentional. Use
56 :     # ${XEMACS_PACKAGES_BASE} for the toplevel directory.
57 :     PWD := $(shell pwd)
58 : steveb 1.9
59 : steve 1.1 .SUFFIXES:
60 : youngs 1.30 .SUFFIXES: .html .info .txi .texi .texinfo .dvi .elc .el
61 : steve 1.1
62 : youngs 1.33 FORMAT_INFO_LEVEL_3_USING_XEMACS_NO_SAVE_ARGS = -eval '(setq load-path (append (list "../../../xemacs-packages/texinfo" "../../../xemacs-packages/xemacs-base") load-path))' -l informat -l texinfmt -f texinfo-format-buffer
63 :    
64 :     %-ja.info: %-ja.texi
65 :     $(XEMACS) -batch -q -no-site-file -insert $< \
66 :     -eval '(unless (featurep (quote mule)) (kill-emacs 0))' \
67 :     $(FORMAT_INFO_LEVEL_3_USING_XEMACS_NO_SAVE_ARGS) \
68 :     -eval '(setq file-coding-system (quote iso-2022-7))' \
69 :     -eval '(save-buffer 0)'
70 :    
71 : steve 1.1 %.info: %.texi
72 :     $(MAKEINFO) $(MAKEINFO_FLAGS) -o $@ $<
73 :    
74 : youngs 1.30 html: $(HTML_DEP)
75 :     ifneq ($(HTML_FILES),)
76 :     @-mkdir -p $(STAGING)/html
77 :     endif
78 :     ifneq ($(HTML_FILES),)
79 :     $(RCOPY) $(addprefix $(PWD)/, $(HTML_FILES)) $(STAGING)/html
80 :     endif
81 :     %.html: %.txi
82 :     $(TEXI2HTML) $(TEXI2HTML_FLAGS) -p $* $<
83 :     %.html: %.texi
84 :     $(TEXI2HTML) $(TEXI2HTML_FLAGS) -p $* $<
85 :     %.html: %.texinfo
86 :     $(TEXI2HTML) $(TEXI2HTML_FLAGS) -p $* $<
87 : youngs 1.27
88 :     FORMAT_INFO_USING_XEMACS_NO_SAVE_ARGS = -eval '(setq load-path (append (list "../../xemacs-packages/texinfo" "../../xemacs-packages/xemacs-base") load-path))' -l informat -l texinfmt -f texinfo-format-buffer
89 :    
90 :     FORMAT_INFO_USING_XEMACS_ARGS = $(FORMAT_INFO_USING_XEMACS_NO_SAVE_ARGS) -f save-buffer
91 :    
92 : adrian 1.19 ifeq ($(XEMACS_NATIVE_NT),t)
93 : ben 1.24 # Convert UNIX-path (containing output of `pwd') to windows-path, so
94 :     # that XEmacs native NT can handle it.
95 : adrian 1.19 PACKAGE_COMPILE = \
96 :     "$(shell cygpath --windows $(XEMACS_PACKAGES_BASE)/package-compile.el)"
97 : ben 1.24 PACKAGE_CLEAN = \
98 :     "$(shell cygpath --windows $(XEMACS_PACKAGES_BASE)/package-clean.el)"
99 : adrian 1.26 PACKAGE_NET_PACKAGES = \
100 :     "$(shell cygpath --windows $(XEMACS_PACKAGES_BASE)/package-net-packages.el)"
101 :     PACKAGE_STAGING = \
102 :     "$(shell cygpath --windows $(STAGING))"
103 : adrian 1.19 else
104 :     PACKAGE_COMPILE = $(XEMACS_PACKAGES_BASE)/package-compile.el
105 : ben 1.24 PACKAGE_CLEAN = $(XEMACS_PACKAGES_BASE)/package-clean.el
106 : adrian 1.26 PACKAGE_NET_PACKAGES = $(XEMACS_PACKAGES_BASE)/package-net-packages.el
107 :     PACKAGE_STAGING = $(STAGING)
108 : adrian 1.19 endif
109 :    
110 : youngs 1.31 # Behaves like an XEmacs with the required packages setup
111 : youngs 1.36 BOOT_XEMACS= $(XEMACS) -no-autoloads -batch -l $(PACKAGE_COMPILE) -- $(REQUIRES) -- $(PRELOADS)
112 : youngs 1.31
113 : steve 1.1 %.elc: %.el
114 : youngs 1.31 $(BOOT_XEMACS) -f batch-byte-compile $<
115 : steve 1.1
116 : steveb 1.12 all:: $(AUTOLOAD_PATH)/_pkg.el
117 : steveb 1.13
118 : steve 1.1 dist:: srckit binkit package-info
119 :    
120 :     clean::
121 : youngs 1.30 rm -f $(ELCS) $(HTML_FILES) $(INFO_FILES) \
122 :     $(AUTOLOAD_PATH)/auto-autoloads.elc $(AUTOLOAD_PATH)/custom-load.elc \
123 : youngs 1.31 $(EXTRA_OBJS) $(DEPENDS_FILE_NAME)
124 : steve 1.1
125 :     mostlyclean: clean
126 :    
127 :     extraclean: clean
128 :    
129 : ben 1.28 # distclean is what you use when making a distribution. it should be the
130 :     # absolutely most aggressive clean target out there -- everything that
131 :     # can get rebuilt should be killed. everything.
132 :    
133 : steve 1.1 distclean: extraclean
134 : steveb 1.11 rm -f core *~ $(AUTOLOAD_PATH)/auto-autoloads.el \
135 : steveb 1.12 $(AUTOLOAD_PATH)/custom-load.el package-info \
136 :     $(AUTOLOAD_PATH)/_pkg.el
137 : ben 1.28
138 :     # elcclean is for when you want to rebuild after having made a small
139 :     # change, e.g. you cvs updated and got new versions of some files.
140 :     # The problem is that if you just `make', you may have the situation
141 :     # where a file that needs to be compiled depends on some other
142 :     # just-updated .el file, and in particular on the features that were
143 :     # added in the update. In such a case, the .elc file is out-of-date
144 :     # w.r.t the .el file, and you'd get the .elc file (missing the
145 :     # necessary features), and error. So we remove the minimum number of
146 :     # .elc required to ensure that the build will always succeed
147 :     # correctly.
148 : steve 1.1
149 : ben 1.24 elcclean:
150 :     $(XEMACS) $(VANILLA) -batch -l $(PACKAGE_CLEAN)
151 :    
152 :     # XEmacs native MS Windows needs this quoting of command-line
153 :     # arguments due to basic differences in the handling of command-line
154 :     # arguments in Unix and MS Windows.
155 :     #### not any more, as of Cygwin 1.1.8-2 (Feb 2001) -- ben
156 :     ifeq ($(XEMACS_NATIVE_NT_NEEDS_EXTRA_QUOTING),t)
157 : adrian 1.19 AUTOLOAD_PACKAGE_NAME = (setq autoload-package-name \\\"$(PACKAGE)\\\")
158 : youngs 1.34 AUTOLOAD_FILE = (setq generated-autoload-file \
159 :     \\\"$(AUTOLOAD_PATH)/auto-autoloads.el\\\")
160 : adrian 1.19 else
161 :     AUTOLOAD_PACKAGE_NAME = (setq autoload-package-name \"$(PACKAGE)\")
162 : youngs 1.34 AUTOLOAD_FILE = (setq generated-autoload-file \
163 :     \"$(AUTOLOAD_PATH)/auto-autoloads.el\")
164 : adrian 1.19 endif
165 :    
166 : steveb 1.11 $(AUTOLOAD_PATH)/auto-autoloads.el : $(ELCS:.elc=.el) $(AUTOLOAD_PATH)/_pkg.el
167 : youngs 1.34 $(XEMACS) $(VANILLA) -batch -no-autoloads \
168 : adrian 1.19 -eval "$(AUTOLOAD_PACKAGE_NAME)" \
169 : youngs 1.34 -eval "$(AUTOLOAD_FILE)" \
170 : youngs 1.35 -l autoload -f batch-update-autoloads $^
171 : steveb 1.11 @rm -f $(AUTOLOAD_PATH)/auto-autoloads.el~
172 : steve 1.1
173 : steveb 1.11 $(AUTOLOAD_PATH)/custom-load.el : $(ELCS:.elc=.el)
174 : steve 1.1 $(XEMACS) $(VANILLA) -batch -l cus-dep \
175 : steveb 1.11 -f Custom-make-dependencies $(AUTOLOAD_PATH)
176 : steve 1.1
177 : andreasj 1.17 pkg_tar = $(STAGING)/$(PACKAGE)-$(VERSION)-pkg.tar
178 :    
179 : adrian 1.19 ifeq ($(XEMACS_NATIVE_NT),t)
180 : ben 1.24 # Convert UNIX-path (containing output of `pwd') to windows-path,
181 : adrian 1.19 # so that XEmacs native NT can handle it.
182 :     PKG_TAR_GZ = "$(shell cygpath --windows $(pkg_tar)).gz"
183 : adrian 1.22 PACKAGE_INFO = "$(shell cygpath --windows $(STAGING)/$(PACKAGE_INDEX))"
184 : adrian 1.19 else
185 :     PKG_TAR_GZ = $(pkg_tar).gz
186 : adrian 1.22 PACKAGE_INFO = $(STAGING)/$(PACKAGE_INDEX)
187 : adrian 1.19 endif
188 :    
189 : andreasj 1.17 # Make the $(pkg_tar).gz first, then the $(pkg_tar).bz2
190 : steveb 1.12 package-info : package-info.in Makefile $(AUTOLOAD_PATH)/_pkg.el \
191 : andreasj 1.17 $(pkg_tar).gz $(pkg_tar).bz2
192 : steve 1.1 $(XEMACS) $(VANILLA) -batch \
193 : youngs 1.25 -l package-info.elc -f batch-update-package-info \
194 : adrian 1.19 '$(VERSION)' $(PKG_TAR_GZ) \
195 : steve 1.4 '$(REQUIRES)' \
196 :     '$(AUTHOR_VERSION)' '$(MAINTAINER)' '$(CATEGORY)'
197 : steveb 1.11 $(XEMACS) $(VANILLA) -batch \
198 :     -l ../../hack-package-index.el -f batch-hack-package-index \
199 : adrian 1.19 $(PACKAGE) package-info $(PACKAGE_INFO)
200 : steveb 1.11
201 : andreasj 1.17 ifeq ($(BUILD_TARS),t)
202 :     $(pkg_tar): $(STAGING)/$(MANIFEST)
203 :     @(cd $(STAGING); \
204 :     rm -f $(pkg_tar)*)
205 :    
206 :     (cd $(STAGING); \
207 : youngs 1.34 $(TAR) $(EXCLUDES) --create --owner=0 --group=0 --file $(pkg_tar) \
208 : andreasj 1.17 `cat $(MANIFEST)`)
209 :    
210 :    
211 :     $(pkg_tar).gz: $(pkg_tar)
212 :     ifneq ($(BZIP2),) # need to leave behind the .tar for bzip2 to find.
213 :     (cd $(STAGING); \
214 :     gzip -cv9 $(pkg_tar) > $(pkg_tar).gz;)
215 :     else # BZIP2 is ''
216 :     (cd $(STAGING); \
217 :     gzip -v9 $(pkg_tar);)
218 :     endif
219 :    
220 :     ifneq ($(BZIP2),)
221 :     $(pkg_tar).bz2: $(pkg_tar)
222 :     (cd $(STAGING); \
223 :     $(BZIP2) -v9 $(pkg_tar);)
224 :     else # Don't build a .tar.bz2
225 :     $(pkg_tar).bz2:
226 :    
227 :     .PHONY: $(pkg_tar).bz2
228 :     endif # BZIP2 ?
229 :    
230 :     else # when BUILD_TARS is ''
231 :     # Touch the file so the package-index can be generated
232 :     $(pkg_tar) $(pkg_tar).gz $(pkg_tar).bz2 :
233 :     touch $@
234 :     endif # BUILD_TARS ?
235 :    
236 : steve 1.1
237 : steveb 1.12 $(AUTOLOAD_PATH)/_pkg.el: Makefile
238 :     @echo Creating $(AUTOLOAD_PATH)/_pkg.el
239 :     @echo ";;;###autoload" > $(AUTOLOAD_PATH)/_pkg.el
240 :     @echo "(package-provide '$(PACKAGE)" >> $(AUTOLOAD_PATH)/_pkg.el
241 :     @echo " :version $(VERSION)" >> $(AUTOLOAD_PATH)/_pkg.el
242 :     @echo " :type '$(PKG_TYPE))" >> $(AUTOLOAD_PATH)/_pkg.el
243 : steve 1.1
244 :     .PHONY: srckit-std
245 :     .PHONY: binkit-sourceonly binkit-sourceinfo binkit-sourcedata binkit-sourcedatainfo
246 : steveb 1.12 .PHONY: bindist install autoloads
247 : steve 1.3
248 : youngs 1.25 bindist: binkit package-info setup-info
249 :    
250 :     setup-info:
251 : adrian 1.26 $(XEMACS) $(VANILLA) -batch -l $(PACKAGE_NET_PACKAGES) \
252 :     -l $(PACKAGE_INFO) \
253 :     -f package-net-packages-batch-convert-index-to-ini $(PACKAGE_STAGING)
254 : steve 1.1
255 : steveb 1.11 install: binkit
256 :    
257 :     autoloads: $(AUTOLOAD_PATH)/auto-autoloads.el
258 :    
259 : andreasj 1.17 src_tar = $(STAGING)/$(PACKAGE)-$(VERSION)-src.tar
260 :    
261 : steve 1.1 srckit-std: distclean
262 :     if [ ! -d $(STAGING) ]; then mkdir -p $(STAGING); fi
263 : andreasj 1.17
264 :     (cd ../..; \
265 :     rm -f $(src_tar)*; \
266 : youngs 1.34 $(TAR) $(EXCLUDES) --create --owner=0 --group=0 --file $(src_tar) \
267 :     $(CATEGORY)/$(PACKAGE))
268 : andreasj 1.17
269 :     gzip -cv9 $(src_tar) > $(src_tar).gz
270 :    
271 :     ifneq ($(BZIP2),)
272 :     $(BZIP2) -v9 $(src_tar);
273 :     endif
274 :     rm -f $(src_tar)
275 :    
276 : steve 1.1
277 : steveb 1.11 binkit-common: all
278 : andreasj 1.17 (if test -d $(STAGING); then \
279 :     cd $(STAGING); \
280 :     if test -f $(MANIFEST); then \
281 : steveb 1.11 rm -rf `cat $(MANIFEST)`; \
282 : andreasj 1.17 fi; \
283 : steveb 1.11 fi;)
284 : andreasj 1.17 #ifneq ($(ELCS),)
285 : steveb 1.11 @-mkdir -p $(STAGING)/lisp/$(PACKAGE)
286 : steveb 1.15 #endif
287 : andreasj 1.17 ifneq ($(ELCS_1),)
288 : steveb 1.11 @-mkdir -p $(STAGING)/lisp/$(ELCS_1_DEST)
289 :     endif
290 : andreasj 1.17 ifneq ($(INFO_FILES),)
291 : steveb 1.11 @-mkdir -p $(STAGING)/info
292 :     @-mkdir -p $(STAGING)/man/$(PACKAGE)
293 :     endif
294 : andreasj 1.17 ifneq ($(DATA_FILES),)
295 : steveb 1.11 @-mkdir -p $(STAGING)/etc/$(DATA_DEST)
296 :     endif
297 : andreasj 1.17 ifneq ($(DATA_1_FILES),)
298 : steveb 1.11 @-mkdir -p $(STAGING)/etc/$(DATA_1_DEST)
299 :     endif
300 : andreasj 1.17 ifneq ($(DATA_2_FILES),)
301 : steveb 1.11 @-mkdir -p $(STAGING)/etc/$(DATA_2_DEST)
302 :     endif
303 : andreasj 1.17 ifneq ($(DATA_3_FILES),)
304 : steveb 1.11 @-mkdir -p $(STAGING)/etc/$(DATA_3_DEST)
305 :     endif
306 : andreasj 1.17 ifneq ($(DATA_4_FILES),)
307 : steveb 1.11 @-mkdir -p $(STAGING)/etc/$(DATA_4_DEST)
308 :     endif
309 : andreasj 1.17 ifneq ($(DATA_5_FILES),)
310 : steveb 1.11 @-mkdir -p $(STAGING)/etc/$(DATA_5_DEST)
311 :     endif
312 : andreasj 1.17 ifneq ($(DATA_6_FILES),)
313 : steveb 1.16 @-mkdir -p $(STAGING)/etc/$(DATA_6_DEST)
314 :     endif
315 : andreasj 1.17 ifneq ($(DATA_7_FILES),)
316 : steveb 1.16 @-mkdir -p $(STAGING)/etc/$(DATA_7_DEST)
317 :     endif
318 : andreasj 1.17 ifneq ($(DATA_8_FILES),)
319 : steveb 1.16 @-mkdir -p $(STAGING)/etc/$(DATA_8_DEST)
320 :     endif
321 : michaels 1.20 ifneq ($(DATA_9_FILES),)
322 :     @-mkdir -p $(STAGING)/etc/$(DATA_9_DEST)
323 :     endif
324 :     ifneq ($(DATA_10_FILES),)
325 :     @-mkdir -p $(STAGING)/etc/$(DATA_10_DEST)
326 :     endif
327 :     ifneq ($(DATA_11_FILES),)
328 :     @-mkdir -p $(STAGING)/etc/$(DATA_11_DEST)
329 :     endif
330 :     ifneq ($(DATA_12_FILES),)
331 :     @-mkdir -p $(STAGING)/etc/$(DATA_12_DEST)
332 :     endif
333 :     ifneq ($(DATA_13_FILES),)
334 :     @-mkdir -p $(STAGING)/etc/$(DATA_13_DEST)
335 :     endif
336 :     ifneq ($(DATA_14_FILES),)
337 :     @-mkdir -p $(STAGING)/etc/$(DATA_14_DEST)
338 :     endif
339 :     ifneq ($(DATA_15_FILES),)
340 :     @-mkdir -p $(STAGING)/etc/$(DATA_15_DEST)
341 :     endif
342 :     ifneq ($(DATA_16_FILES),)
343 :     @-mkdir -p $(STAGING)/etc/$(DATA_16_DEST)
344 :     endif
345 :     ifneq ($(DATA_17_FILES),)
346 :     @-mkdir -p $(STAGING)/etc/$(DATA_17_DEST)
347 :     endif
348 :     ifneq ($(DATA_18_FILES),)
349 :     @-mkdir -p $(STAGING)/etc/$(DATA_18_DEST)
350 :     endif
351 :     ifneq ($(DATA_19_FILES),)
352 :     @-mkdir -p $(STAGING)/etc/$(DATA_19_DEST)
353 :     endif
354 :     ifneq ($(DATA_20_FILES),)
355 :     @-mkdir -p $(STAGING)/etc/$(DATA_20_DEST)
356 :     endif
357 :     ifneq ($(DATA_21_FILES),)
358 :     @-mkdir -p $(STAGING)/etc/$(DATA_21_DEST)
359 :     endif
360 :     ifneq ($(DATA_22_FILES),)
361 :     @-mkdir -p $(STAGING)/etc/$(DATA_22_DEST)
362 :     endif
363 :     ifneq ($(DATA_23_FILES),)
364 :     @-mkdir -p $(STAGING)/etc/$(DATA_23_DEST)
365 :     endif
366 :     ifneq ($(DATA_24_FILES),)
367 :     @-mkdir -p $(STAGING)/etc/$(DATA_24_DEST)
368 :     endif
369 :     ifneq ($(DATA_25_FILES),)
370 :     @-mkdir -p $(STAGING)/etc/$(DATA_25_DEST)
371 :     endif
372 :     ifneq ($(DATA_26_FILES),)
373 :     @-mkdir -p $(STAGING)/etc/$(DATA_26_DEST)
374 :     endif
375 : youngs 1.29 ifneq ($(DATA_27_FILES),)
376 :     @-mkdir -p $(STAGING)/etc/$(DATA_27_DEST)
377 :     endif
378 :     ifneq ($(DATA_28_FILES),)
379 :     @-mkdir -p $(STAGING)/etc/$(DATA_28_DEST)
380 :     endif
381 :     ifneq ($(DATA_29_FILES),)
382 :     @-mkdir -p $(STAGING)/etc/$(DATA_29_DEST)
383 :     endif
384 :     ifneq ($(DATA_30_FILES),)
385 :     @-mkdir -p $(STAGING)/etc/$(DATA_30_DEST)
386 :     endif
387 :     ifneq ($(DATA_31_FILES),)
388 :     @-mkdir -p $(STAGING)/etc/$(DATA_31_DEST)
389 :     endif
390 :     ifneq ($(DATA_32_FILES),)
391 :     @-mkdir -p $(STAGING)/etc/$(DATA_32_DEST)
392 :     endif
393 :     ifneq ($(DATA_33_FILES),)
394 :     @-mkdir -p $(STAGING)/etc/$(DATA_33_DEST)
395 :     endif
396 :     ifneq ($(DATA_34_FILES),)
397 :     @-mkdir -p $(STAGING)/etc/$(DATA_34_DEST)
398 :     endif
399 :     ifneq ($(DATA_35_FILES),)
400 :     @-mkdir -p $(STAGING)/etc/$(DATA_35_DEST)
401 :     endif
402 : andreasj 1.17 ifneq ($(LIBSRC_FILES),)
403 : steveb 1.11 @-mkdir -p $(STAGING)/lib-src
404 :     endif
405 :     @-mkdir -p $(STAGING)/pkginfo
406 : andreasj 1.17 ifneq ($(ELCS),)
407 :     $(RCOPY) $(addprefix $(PWD)/, ChangeLog $(SOURCE_FILES_TO_COPY) $(EXTRA_SOURCES)) \
408 :     $(STAGING)/lisp/$(PACKAGE)
409 :     endif
410 :     ifneq ($(ELCS_1),)
411 :     $(RCOPY) $(addprefix $(PWD)/, $(ELCS_1_FILES)) $(STAGING)/lisp/$(ELCS_1_DEST)
412 : steveb 1.11 endif
413 : andreasj 1.17 ifneq ($(INFO_FILES),)
414 :     $(RCOPY) $(addprefix $(PWD)/, $(INFO_FILES)) $(STAGING)/info
415 :     $(RCOPY) $(addprefix $(PWD)/, $(TEXI_FILES)) $(STAGING)/man/$(PACKAGE)
416 : steveb 1.11 endif
417 : andreasj 1.17 ifneq ($(DATA_FILES),)
418 :     $(RCOPY) $(addprefix $(PWD)/, $(DATA_FILES)) $(STAGING)/etc/$(DATA_DEST)
419 : steveb 1.11 endif
420 : andreasj 1.17 ifneq ($(DATA_1_FILES),)
421 :     $(RCOPY) $(addprefix $(PWD)/, $(DATA_1_FILES)) $(STAGING)/etc/$(DATA_1_DEST)
422 : steveb 1.11 endif
423 : andreasj 1.17 ifneq ($(DATA_2_FILES),)
424 :     $(RCOPY) $(addprefix $(PWD)/, $(DATA_2_FILES)) $(STAGING)/etc/$(DATA_2_DEST)
425 : steveb 1.11 endif
426 : andreasj 1.17 ifneq ($(DATA_3_FILES),)
427 :     $(RCOPY) $(addprefix $(PWD)/, $(DATA_3_FILES)) $(STAGING)/etc/$(DATA_3_DEST)
428 : steveb 1.11 endif
429 : andreasj 1.17 ifneq ($(DATA_4_FILES),)
430 :     $(RCOPY) $(addprefix $(PWD)/, $(DATA_4_FILES)) $(STAGING)/etc/$(DATA_4_DEST)
431 : steveb 1.11 endif
432 : andreasj 1.17 ifneq ($(DATA_5_FILES),)
433 :     $(RCOPY) $(addprefix $(PWD)/, $(DATA_5_FILES)) $(STAGING)/etc/$(DATA_5_DEST)
434 : steveb 1.11 endif
435 : andreasj 1.17 ifneq ($(DATA_6_FILES),)
436 :     $(RCOPY) $(addprefix $(PWD)/, $(DATA_6_FILES)) $(STAGING)/etc/$(DATA_6_DEST)
437 : steveb 1.16 endif
438 : andreasj 1.17 ifneq ($(DATA_7_FILES),)
439 :     $(RCOPY) $(addprefix $(PWD)/, $(DATA_7_FILES)) $(STAGING)/etc/$(DATA_7_DEST)
440 : steveb 1.16 endif
441 : andreasj 1.17 ifneq ($(DATA_8_FILES),)
442 :     $(RCOPY) $(addprefix $(PWD)/, $(DATA_8_FILES)) $(STAGING)/etc/$(DATA_8_DEST)
443 : steveb 1.16 endif
444 : michaels 1.20 ifneq ($(DATA_9_FILES),)
445 :     $(RCOPY) $(addprefix $(PWD)/, $(DATA_9_FILES)) $(STAGING)/etc/$(DATA_9_DEST)
446 :     endif
447 :     ifneq ($(DATA_10_FILES),)
448 :     $(RCOPY) $(addprefix $(PWD)/, $(DATA_10_FILES)) $(STAGING)/etc/$(DATA_10_DEST)
449 :     endif
450 :     ifneq ($(DATA_11_FILES),)
451 :     $(RCOPY) $(addprefix $(PWD)/, $(DATA_11_FILES)) $(STAGING)/etc/$(DATA_11_DEST)
452 :     endif
453 :     ifneq ($(DATA_12_FILES),)
454 :     $(RCOPY) $(addprefix $(PWD)/, $(DATA_12_FILES)) $(STAGING)/etc/$(DATA_12_DEST)
455 :     endif
456 :     ifneq ($(DATA_13_FILES),)
457 :     $(RCOPY) $(addprefix $(PWD)/, $(DATA_13_FILES)) $(STAGING)/etc/$(DATA_13_DEST)
458 :     endif
459 :     ifneq ($(DATA_14_FILES),)
460 :     $(RCOPY) $(addprefix $(PWD)/, $(DATA_14_FILES)) $(STAGING)/etc/$(DATA_14_DEST)
461 :     endif
462 :     ifneq ($(DATA_15_FILES),)
463 :     $(RCOPY) $(addprefix $(PWD)/, $(DATA_15_FILES)) $(STAGING)/etc/$(DATA_15_DEST)
464 :     endif
465 :     ifneq ($(DATA_16_FILES),)
466 :     $(RCOPY) $(addprefix $(PWD)/, $(DATA_16_FILES)) $(STAGING)/etc/$(DATA_16_DEST)
467 :     endif
468 :     ifneq ($(DATA_17_FILES),)
469 :     $(RCOPY) $(addprefix $(PWD)/, $(DATA_17_FILES)) $(STAGING)/etc/$(DATA_17_DEST)
470 :     endif
471 :     ifneq ($(DATA_18_FILES),)
472 :     $(RCOPY) $(addprefix $(PWD)/, $(DATA_18_FILES)) $(STAGING)/etc/$(DATA_18_DEST)
473 :     endif
474 :     ifneq ($(DATA_19_FILES),)
475 :     $(RCOPY) $(addprefix $(PWD)/, $(DATA_19_FILES)) $(STAGING)/etc/$(DATA_19_DEST)
476 :     endif
477 :     ifneq ($(DATA_20_FILES),)
478 :     $(RCOPY) $(addprefix $(PWD)/, $(DATA_20_FILES)) $(STAGING)/etc/$(DATA_20_DEST)
479 :     endif
480 :     ifneq ($(DATA_21_FILES),)
481 :     $(RCOPY) $(addprefix $(PWD)/, $(DATA_21_FILES)) $(STAGING)/etc/$(DATA_21_DEST)
482 :     endif
483 :     ifneq ($(DATA_22_FILES),)
484 :     $(RCOPY) $(addprefix $(PWD)/, $(DATA_22_FILES)) $(STAGING)/etc/$(DATA_22_DEST)
485 :     endif
486 :     ifneq ($(DATA_23_FILES),)
487 :     $(RCOPY) $(addprefix $(PWD)/, $(DATA_23_FILES)) $(STAGING)/etc/$(DATA_23_DEST)
488 :     endif
489 :     ifneq ($(DATA_24_FILES),)
490 :     $(RCOPY) $(addprefix $(PWD)/, $(DATA_24_FILES)) $(STAGING)/etc/$(DATA_24_DEST)
491 :     endif
492 :     ifneq ($(DATA_25_FILES),)
493 :     $(RCOPY) $(addprefix $(PWD)/, $(DATA_25_FILES)) $(STAGING)/etc/$(DATA_25_DEST)
494 :     endif
495 :     ifneq ($(DATA_26_FILES),)
496 :     $(RCOPY) $(addprefix $(PWD)/, $(DATA_26_FILES)) $(STAGING)/etc/$(DATA_26_DEST)
497 :     endif
498 : youngs 1.29 ifneq ($(DATA_27_FILES),)
499 :     $(RCOPY) $(addprefix $(PWD)/, $(DATA_27_FILES)) $(STAGING)/etc/$(DATA_27_DEST)
500 :     endif
501 :     ifneq ($(DATA_28_FILES),)
502 :     $(RCOPY) $(addprefix $(PWD)/, $(DATA_28_FILES)) $(STAGING)/etc/$(DATA_28_DEST)
503 :     endif
504 :     ifneq ($(DATA_29_FILES),)
505 :     $(RCOPY) $(addprefix $(PWD)/, $(DATA_29_FILES)) $(STAGING)/etc/$(DATA_29_DEST)
506 :     endif
507 :     ifneq ($(DATA_30_FILES),)
508 :     $(RCOPY) $(addprefix $(PWD)/, $(DATA_30_FILES)) $(STAGING)/etc/$(DATA_30_DEST)
509 :     endif
510 :     ifneq ($(DATA_31_FILES),)
511 :     $(RCOPY) $(addprefix $(PWD)/, $(DATA_31_FILES)) $(STAGING)/etc/$(DATA_31_DEST)
512 :     endif
513 :     ifneq ($(DATA_32_FILES),)
514 :     $(RCOPY) $(addprefix $(PWD)/, $(DATA_32_FILES)) $(STAGING)/etc/$(DATA_32_DEST)
515 :     endif
516 :     ifneq ($(DATA_33_FILES),)
517 :     $(RCOPY) $(addprefix $(PWD)/, $(DATA_33_FILES)) $(STAGING)/etc/$(DATA_33_DEST)
518 :     endif
519 :     ifneq ($(DATA_34_FILES),)
520 :     $(RCOPY) $(addprefix $(PWD)/, $(DATA_34_FILES)) $(STAGING)/etc/$(DATA_34_DEST)
521 :     endif
522 :     ifneq ($(DATA_35_FILES),)
523 :     $(RCOPY) $(addprefix $(PWD)/, $(DATA_35_FILES)) $(STAGING)/etc/$(DATA_35_DEST)
524 :     endif
525 : andreasj 1.17 ifneq ($(LIBSRC_FILES),)
526 :     $(RCOPY) $(addprefix $(PWD)/, $(LIBSRC_FILES)) $(STAGING)/lib-src
527 : steveb 1.11 endif
528 : steve 1.1 (cd $(STAGING); \
529 : steveb 1.11 ls -1 $(MANIFEST) > $(MANIFEST))
530 : andreasj 1.18 ifneq ($(ELCS),)
531 : steveb 1.11 @(cd $(STAGING); \
532 :     ls -1 lisp/$(PACKAGE)/ChangeLog \
533 :     $(patsubst %, lisp/$(PACKAGE)/%, $(notdir $(SOURCE_FILES_TO_COPY))) \
534 :     $(patsubst %, lisp/$(PACKAGE)/%, $(notdir $(EXTRA_SOURCES))) \
535 :     >> $(MANIFEST))
536 : andreasj 1.18 endif
537 : andreasj 1.17 ifneq ($(ELCS_1),)
538 : steveb 1.11 @(cd $(STAGING); \
539 :     ls -1 $(patsubst %, lisp/$(ELCS_1_DEST)/%, $(notdir $(ELCS_1_FILES))) \
540 :     >> $(MANIFEST))
541 :     endif
542 : andreasj 1.17 ifneq ($(INFO_FILES),)
543 : steveb 1.11 @(cd $(STAGING); \
544 :     ls -1 man/$(PACKAGE)/* \
545 :     $(patsubst %,info/%, $(notdir $(INFO_FILES))) >> $(MANIFEST))
546 :     endif
547 : andreasj 1.17 ifneq ($(DATA_FILES),)
548 : steveb 1.11 @(cd $(STAGING); \
549 :     ls -1 $(patsubst %, etc/$(DATA_DEST)/%, $(notdir $(DATA_FILES))) \
550 :     >> $(MANIFEST))
551 :     endif
552 : andreasj 1.17 ifneq ($(DATA_1_FILES),)
553 : steveb 1.11 @(cd $(STAGING); \
554 :     ls -1 $(patsubst %, etc/$(DATA_1_DEST)/%, $(notdir $(DATA_1_FILES))) \
555 :     >> $(MANIFEST))
556 :     endif
557 : andreasj 1.17 ifneq ($(DATA_2_FILES),)
558 : steveb 1.11 @(cd $(STAGING); \
559 :     ls -1 $(patsubst %, etc/$(DATA_2_DEST)/%, $(notdir $(DATA_2_FILES))) \
560 :     >> $(MANIFEST))
561 :     endif
562 : andreasj 1.17 ifneq ($(DATA_3_FILES),)
563 : steveb 1.11 @(cd $(STAGING); \
564 :     ls -1 $(patsubst %, etc/$(DATA_3_DEST)/%, $(notdir $(DATA_3_FILES))) \
565 :     >> $(MANIFEST))
566 :     endif
567 : andreasj 1.17 ifneq ($(DATA_4_FILES),)
568 : steveb 1.11 @(cd $(STAGING); \
569 :     ls -1 $(patsubst %, etc/$(DATA_4_DEST)/%, $(notdir $(DATA_4_FILES))) \
570 :     >> $(MANIFEST))
571 :     endif
572 : andreasj 1.17 ifneq ($(DATA_5_FILES),)
573 : steveb 1.11 @(cd $(STAGING); \
574 :     ls -1 $(patsubst %, etc/$(DATA_5_DEST)/%, $(notdir $(DATA_5_FILES))) \
575 : steveb 1.16 >> $(MANIFEST))
576 :     endif
577 : andreasj 1.17 ifneq ($(DATA_6_FILES),)
578 : steveb 1.16 @(cd $(STAGING); \
579 :     ls -1 $(patsubst %, etc/$(DATA_6_DEST)/%, $(notdir $(DATA_6_FILES))) \
580 :     >> $(MANIFEST))
581 :     endif
582 : andreasj 1.17 ifneq ($(DATA_7_FILES),)
583 : steveb 1.16 @(cd $(STAGING); \
584 :     ls -1 $(patsubst %, etc/$(DATA_7_DEST)/%, $(notdir $(DATA_7_FILES))) \
585 :     >> $(MANIFEST))
586 :     endif
587 : andreasj 1.17 ifneq ($(DATA_8_FILES),)
588 : steveb 1.16 @(cd $(STAGING); \
589 :     ls -1 $(patsubst %, etc/$(DATA_8_DEST)/%, $(notdir $(DATA_8_FILES))) \
590 : michaels 1.20 >> $(MANIFEST))
591 :     endif
592 :     ifneq ($(DATA_9_FILES),)
593 :     @(cd $(STAGING); \
594 :     ls -1 $(patsubst %, etc/$(DATA_9_DEST)/%, $(notdir $(DATA_9_FILES))) \
595 :     >> $(MANIFEST))
596 :     endif
597 :     ifneq ($(DATA_10_FILES),)
598 :     @(cd $(STAGING); \
599 :     ls -1 $(patsubst %, etc/$(DATA_10_DEST)/%, $(notdir $(DATA_10_FILES))) \
600 :     >> $(MANIFEST))
601 :     endif
602 :     ifneq ($(DATA_11_FILES),)
603 :     @(cd $(STAGING); \
604 :     ls -1 $(patsubst %, etc/$(DATA_11_DEST)/%, $(notdir $(DATA_11_FILES))) \
605 :     >> $(MANIFEST))
606 :     endif
607 :     ifneq ($(DATA_12_FILES),)
608 :     @(cd $(STAGING); \
609 :     ls -1 $(patsubst %, etc/$(DATA_12_DEST)/%, $(notdir $(DATA_12_FILES))) \
610 :     >> $(MANIFEST))
611 :     endif
612 :     ifneq ($(DATA_13_FILES),)
613 :     @(cd $(STAGING); \
614 :     ls -1 $(patsubst %, etc/$(DATA_13_DEST)/%, $(notdir $(DATA_13_FILES))) \
615 :     >> $(MANIFEST))
616 :     endif
617 :     ifneq ($(DATA_14_FILES),)
618 :     @(cd $(STAGING); \
619 :     ls -1 $(patsubst %, etc/$(DATA_14_DEST)/%, $(notdir $(DATA_14_FILES))) \
620 :     >> $(MANIFEST))
621 :     endif
622 :     ifneq ($(DATA_15_FILES),)
623 :     @(cd $(STAGING); \
624 :     ls -1 $(patsubst %, etc/$(DATA_15_DEST)/%, $(notdir $(DATA_15_FILES))) \
625 :     >> $(MANIFEST))
626 :     endif
627 :     ifneq ($(DATA_16_FILES),)
628 :     @(cd $(STAGING); \
629 :     ls -1 $(patsubst %, etc/$(DATA_16_DEST)/%, $(notdir $(DATA_16_FILES))) \
630 :     >> $(MANIFEST))
631 :     endif
632 :     ifneq ($(DATA_17_FILES),)
633 :     @(cd $(STAGING); \
634 :     ls -1 $(patsubst %, etc/$(DATA_17_DEST)/%, $(notdir $(DATA_17_FILES))) \
635 :     >> $(MANIFEST))
636 :     endif
637 :     ifneq ($(DATA_18_FILES),)
638 :     @(cd $(STAGING); \
639 :     ls -1 $(patsubst %, etc/$(DATA_18_DEST)/%, $(notdir $(DATA_18_FILES))) \
640 :     >> $(MANIFEST))
641 :     endif
642 :     ifneq ($(DATA_19_FILES),)
643 :     @(cd $(STAGING); \
644 :     ls -1 $(patsubst %, etc/$(DATA_19_DEST)/%, $(notdir $(DATA_19_FILES))) \
645 :     >> $(MANIFEST))
646 :     endif
647 :     ifneq ($(DATA_20_FILES),)
648 :     @(cd $(STAGING); \
649 :     ls -1 $(patsubst %, etc/$(DATA_20_DEST)/%, $(notdir $(DATA_20_FILES))) \
650 :     >> $(MANIFEST))
651 :     endif
652 :     ifneq ($(DATA_21_FILES),)
653 :     @(cd $(STAGING); \
654 :     ls -1 $(patsubst %, etc/$(DATA_21_DEST)/%, $(notdir $(DATA_21_FILES))) \
655 :     >> $(MANIFEST))
656 :     endif
657 :     ifneq ($(DATA_22_FILES),)
658 :     @(cd $(STAGING); \
659 :     ls -1 $(patsubst %, etc/$(DATA_22_DEST)/%, $(notdir $(DATA_22_FILES))) \
660 :     >> $(MANIFEST))
661 :     endif
662 :     ifneq ($(DATA_23_FILES),)
663 :     @(cd $(STAGING); \
664 :     ls -1 $(patsubst %, etc/$(DATA_23_DEST)/%, $(notdir $(DATA_23_FILES))) \
665 :     >> $(MANIFEST))
666 :     endif
667 :     ifneq ($(DATA_24_FILES),)
668 :     @(cd $(STAGING); \
669 :     ls -1 $(patsubst %, etc/$(DATA_24_DEST)/%, $(notdir $(DATA_24_FILES))) \
670 :     >> $(MANIFEST))
671 :     endif
672 :     ifneq ($(DATA_25_FILES),)
673 :     @(cd $(STAGING); \
674 :     ls -1 $(patsubst %, etc/$(DATA_25_DEST)/%, $(notdir $(DATA_25_FILES))) \
675 :     >> $(MANIFEST))
676 :     endif
677 :     ifneq ($(DATA_26_FILES),)
678 :     @(cd $(STAGING); \
679 :     ls -1 $(patsubst %, etc/$(DATA_26_DEST)/%, $(notdir $(DATA_26_FILES))) \
680 : steveb 1.11 >> $(MANIFEST))
681 :     endif
682 : youngs 1.29 ifneq ($(DATA_27_FILES),)
683 :     @(cd $(STAGING); \
684 :     ls -1 $(patsubst %, etc/$(DATA_27_DEST)/%, $(notdir $(DATA_27_FILES))) \
685 :     >> $(MANIFEST))
686 :     endif
687 :     ifneq ($(DATA_28_FILES),)
688 :     @(cd $(STAGING); \
689 :     ls -1 $(patsubst %, etc/$(DATA_28_DEST)/%, $(notdir $(DATA_28_FILES))) \
690 :     >> $(MANIFEST))
691 :     endif
692 :     ifneq ($(DATA_29_FILES),)
693 :     @(cd $(STAGING); \
694 :     ls -1 $(patsubst %, etc/$(DATA_29_DEST)/%, $(notdir $(DATA_29_FILES))) \
695 :     >> $(MANIFEST))
696 :     endif
697 :     ifneq ($(DATA_30_FILES),)
698 :     @(cd $(STAGING); \
699 :     ls -1 $(patsubst %, etc/$(DATA_30_DEST)/%, $(notdir $(DATA_30_FILES))) \
700 :     >> $(MANIFEST))
701 :     endif
702 :     ifneq ($(DATA_31_FILES),)
703 :     @(cd $(STAGING); \
704 :     ls -1 $(patsubst %, etc/$(DATA_31_DEST)/%, $(notdir $(DATA_31_FILES))) \
705 :     >> $(MANIFEST))
706 :     endif
707 :     ifneq ($(DATA_32_FILES),)
708 :     @(cd $(STAGING); \
709 :     ls -1 $(patsubst %, etc/$(DATA_32_DEST)/%, $(notdir $(DATA_32_FILES))) \
710 :     >> $(MANIFEST))
711 :     endif
712 :     ifneq ($(DATA_33_FILES),)
713 :     @(cd $(STAGING); \
714 :     ls -1 $(patsubst %, etc/$(DATA_33_DEST)/%, $(notdir $(DATA_33_FILES))) \
715 :     >> $(MANIFEST))
716 :     endif
717 :     ifneq ($(DATA_34_FILES),)
718 :     @(cd $(STAGING); \
719 :     ls -1 $(patsubst %, etc/$(DATA_34_DEST)/%, $(notdir $(DATA_34_FILES))) \
720 :     >> $(MANIFEST))
721 :     endif
722 :     ifneq ($(DATA_35_FILES),)
723 :     @(cd $(STAGING); \
724 :     ls -1 $(patsubst %, etc/$(DATA_35_DEST)/%, $(notdir $(DATA_35_FILES))) \
725 :     >> $(MANIFEST))
726 :     endif
727 : andreasj 1.17 ifneq ($(LIBSRC_FILES),)
728 : steveb 1.11 @(cd $(STAGING); \
729 :     ls -1 $(patsubst %,lib-src/%, $(notdir $(LIBSRC_FILES))) >> $(MANIFEST))
730 :     endif
731 :    
732 : andreasj 1.17
733 : steveb 1.11 binkit-sourceonly: binkit-common
734 :    
735 :     binkit-sourceinfo: binkit-common
736 :    
737 :     binkit-sourcedata: binkit-common
738 :    
739 :     binkit-sourcedatainfo: binkit-common
740 : youngs 1.31
741 :     # Export dependencies for outer make file usage
742 :    
743 :     # Passed in from outer Make
744 :     TARGET_BASE=
745 :    
746 :     # Build depends is a clean version of Requires
747 :     BDEPENDS=$(strip $(filter-out $(PACKAGE),$(REQUIRES)))
748 :    
749 :     $(DEPENDS_FILE_NAME): Makefile $(XEMACS_PACKAGES_BASE)/XEmacs.rules
750 :     ifneq ($(TARGET_BASE),)
751 : youngs 1.32 -rm -f $(DEPENDS_FILE_NAME)
752 : youngs 1.31 @echo Creating $(DEPENDS_FILE_NAME)
753 :     @echo > $(DEPENDS_FILE_NAME)
754 :     ifneq ($(BDEPENDS),)
755 :     @echo $(TARGET_BASE)$(PACKAGE)/autoloads.target: \
756 :     $(TARGET_BASE)$(BDEPENDS:=/autoloads.target) \
757 :     >>$(DEPENDS_FILE_NAME)
758 :     @echo $(TARGET_BASE)$(PACKAGE)/compile.target: \
759 :     $(TARGET_BASE)$(BDEPENDS:=/compile.target) \
760 :     >>$(DEPENDS_FILE_NAME)
761 :     endif
762 :     endif
763 : andreasj 1.17
764 :     # Local Variables:
765 :     # mode: makefile
766 :     # End:

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