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.40 - (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 : scop 1.39 dist:: binkit package-info
119 : steve 1.1
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 : adrian 1.37 distclean:: extraclean
134 : scop 1.38 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 : scop 1.40 .PHONY: binkit-sourceonly binkit-sourceinfo binkit-sourcedata binkit-sourcedatainfo binkit-with-html
245 : steveb 1.12 .PHONY: bindist install autoloads
246 : steve 1.3
247 : youngs 1.25 bindist: binkit package-info setup-info
248 :    
249 :     setup-info:
250 : adrian 1.26 $(XEMACS) $(VANILLA) -batch -l $(PACKAGE_NET_PACKAGES) \
251 :     -l $(PACKAGE_INFO) \
252 :     -f package-net-packages-batch-convert-index-to-ini $(PACKAGE_STAGING)
253 : steve 1.1
254 : steveb 1.11 install: binkit
255 :    
256 :     autoloads: $(AUTOLOAD_PATH)/auto-autoloads.el
257 : andreasj 1.17
258 : steve 1.1
259 : steveb 1.11 binkit-common: all
260 : andreasj 1.17 (if test -d $(STAGING); then \
261 :     cd $(STAGING); \
262 :     if test -f $(MANIFEST); then \
263 : steveb 1.11 rm -rf `cat $(MANIFEST)`; \
264 : andreasj 1.17 fi; \
265 : steveb 1.11 fi;)
266 : andreasj 1.17 #ifneq ($(ELCS),)
267 : steveb 1.11 @-mkdir -p $(STAGING)/lisp/$(PACKAGE)
268 : steveb 1.15 #endif
269 : andreasj 1.17 ifneq ($(ELCS_1),)
270 : steveb 1.11 @-mkdir -p $(STAGING)/lisp/$(ELCS_1_DEST)
271 :     endif
272 : andreasj 1.17 ifneq ($(INFO_FILES),)
273 : steveb 1.11 @-mkdir -p $(STAGING)/info
274 :     @-mkdir -p $(STAGING)/man/$(PACKAGE)
275 :     endif
276 : andreasj 1.17 ifneq ($(DATA_FILES),)
277 : steveb 1.11 @-mkdir -p $(STAGING)/etc/$(DATA_DEST)
278 :     endif
279 : andreasj 1.17 ifneq ($(DATA_1_FILES),)
280 : steveb 1.11 @-mkdir -p $(STAGING)/etc/$(DATA_1_DEST)
281 :     endif
282 : andreasj 1.17 ifneq ($(DATA_2_FILES),)
283 : steveb 1.11 @-mkdir -p $(STAGING)/etc/$(DATA_2_DEST)
284 :     endif
285 : andreasj 1.17 ifneq ($(DATA_3_FILES),)
286 : steveb 1.11 @-mkdir -p $(STAGING)/etc/$(DATA_3_DEST)
287 :     endif
288 : andreasj 1.17 ifneq ($(DATA_4_FILES),)
289 : steveb 1.11 @-mkdir -p $(STAGING)/etc/$(DATA_4_DEST)
290 :     endif
291 : andreasj 1.17 ifneq ($(DATA_5_FILES),)
292 : steveb 1.11 @-mkdir -p $(STAGING)/etc/$(DATA_5_DEST)
293 :     endif
294 : andreasj 1.17 ifneq ($(DATA_6_FILES),)
295 : steveb 1.16 @-mkdir -p $(STAGING)/etc/$(DATA_6_DEST)
296 :     endif
297 : andreasj 1.17 ifneq ($(DATA_7_FILES),)
298 : steveb 1.16 @-mkdir -p $(STAGING)/etc/$(DATA_7_DEST)
299 :     endif
300 : andreasj 1.17 ifneq ($(DATA_8_FILES),)
301 : steveb 1.16 @-mkdir -p $(STAGING)/etc/$(DATA_8_DEST)
302 :     endif
303 : michaels 1.20 ifneq ($(DATA_9_FILES),)
304 :     @-mkdir -p $(STAGING)/etc/$(DATA_9_DEST)
305 :     endif
306 :     ifneq ($(DATA_10_FILES),)
307 :     @-mkdir -p $(STAGING)/etc/$(DATA_10_DEST)
308 :     endif
309 :     ifneq ($(DATA_11_FILES),)
310 :     @-mkdir -p $(STAGING)/etc/$(DATA_11_DEST)
311 :     endif
312 :     ifneq ($(DATA_12_FILES),)
313 :     @-mkdir -p $(STAGING)/etc/$(DATA_12_DEST)
314 :     endif
315 :     ifneq ($(DATA_13_FILES),)
316 :     @-mkdir -p $(STAGING)/etc/$(DATA_13_DEST)
317 :     endif
318 :     ifneq ($(DATA_14_FILES),)
319 :     @-mkdir -p $(STAGING)/etc/$(DATA_14_DEST)
320 :     endif
321 :     ifneq ($(DATA_15_FILES),)
322 :     @-mkdir -p $(STAGING)/etc/$(DATA_15_DEST)
323 :     endif
324 :     ifneq ($(DATA_16_FILES),)
325 :     @-mkdir -p $(STAGING)/etc/$(DATA_16_DEST)
326 :     endif
327 :     ifneq ($(DATA_17_FILES),)
328 :     @-mkdir -p $(STAGING)/etc/$(DATA_17_DEST)
329 :     endif
330 :     ifneq ($(DATA_18_FILES),)
331 :     @-mkdir -p $(STAGING)/etc/$(DATA_18_DEST)
332 :     endif
333 :     ifneq ($(DATA_19_FILES),)
334 :     @-mkdir -p $(STAGING)/etc/$(DATA_19_DEST)
335 :     endif
336 :     ifneq ($(DATA_20_FILES),)
337 :     @-mkdir -p $(STAGING)/etc/$(DATA_20_DEST)
338 :     endif
339 :     ifneq ($(DATA_21_FILES),)
340 :     @-mkdir -p $(STAGING)/etc/$(DATA_21_DEST)
341 :     endif
342 :     ifneq ($(DATA_22_FILES),)
343 :     @-mkdir -p $(STAGING)/etc/$(DATA_22_DEST)
344 :     endif
345 :     ifneq ($(DATA_23_FILES),)
346 :     @-mkdir -p $(STAGING)/etc/$(DATA_23_DEST)
347 :     endif
348 :     ifneq ($(DATA_24_FILES),)
349 :     @-mkdir -p $(STAGING)/etc/$(DATA_24_DEST)
350 :     endif
351 :     ifneq ($(DATA_25_FILES),)
352 :     @-mkdir -p $(STAGING)/etc/$(DATA_25_DEST)
353 :     endif
354 :     ifneq ($(DATA_26_FILES),)
355 :     @-mkdir -p $(STAGING)/etc/$(DATA_26_DEST)
356 :     endif
357 : youngs 1.29 ifneq ($(DATA_27_FILES),)
358 :     @-mkdir -p $(STAGING)/etc/$(DATA_27_DEST)
359 :     endif
360 :     ifneq ($(DATA_28_FILES),)
361 :     @-mkdir -p $(STAGING)/etc/$(DATA_28_DEST)
362 :     endif
363 :     ifneq ($(DATA_29_FILES),)
364 :     @-mkdir -p $(STAGING)/etc/$(DATA_29_DEST)
365 :     endif
366 :     ifneq ($(DATA_30_FILES),)
367 :     @-mkdir -p $(STAGING)/etc/$(DATA_30_DEST)
368 :     endif
369 :     ifneq ($(DATA_31_FILES),)
370 :     @-mkdir -p $(STAGING)/etc/$(DATA_31_DEST)
371 :     endif
372 :     ifneq ($(DATA_32_FILES),)
373 :     @-mkdir -p $(STAGING)/etc/$(DATA_32_DEST)
374 :     endif
375 :     ifneq ($(DATA_33_FILES),)
376 :     @-mkdir -p $(STAGING)/etc/$(DATA_33_DEST)
377 :     endif
378 :     ifneq ($(DATA_34_FILES),)
379 :     @-mkdir -p $(STAGING)/etc/$(DATA_34_DEST)
380 :     endif
381 :     ifneq ($(DATA_35_FILES),)
382 :     @-mkdir -p $(STAGING)/etc/$(DATA_35_DEST)
383 :     endif
384 : andreasj 1.17 ifneq ($(LIBSRC_FILES),)
385 : steveb 1.11 @-mkdir -p $(STAGING)/lib-src
386 :     endif
387 :     @-mkdir -p $(STAGING)/pkginfo
388 : andreasj 1.17 ifneq ($(ELCS),)
389 :     $(RCOPY) $(addprefix $(PWD)/, ChangeLog $(SOURCE_FILES_TO_COPY) $(EXTRA_SOURCES)) \
390 :     $(STAGING)/lisp/$(PACKAGE)
391 :     endif
392 :     ifneq ($(ELCS_1),)
393 :     $(RCOPY) $(addprefix $(PWD)/, $(ELCS_1_FILES)) $(STAGING)/lisp/$(ELCS_1_DEST)
394 : steveb 1.11 endif
395 : andreasj 1.17 ifneq ($(INFO_FILES),)
396 :     $(RCOPY) $(addprefix $(PWD)/, $(INFO_FILES)) $(STAGING)/info
397 :     $(RCOPY) $(addprefix $(PWD)/, $(TEXI_FILES)) $(STAGING)/man/$(PACKAGE)
398 : steveb 1.11 endif
399 : andreasj 1.17 ifneq ($(DATA_FILES),)
400 :     $(RCOPY) $(addprefix $(PWD)/, $(DATA_FILES)) $(STAGING)/etc/$(DATA_DEST)
401 : steveb 1.11 endif
402 : andreasj 1.17 ifneq ($(DATA_1_FILES),)
403 :     $(RCOPY) $(addprefix $(PWD)/, $(DATA_1_FILES)) $(STAGING)/etc/$(DATA_1_DEST)
404 : steveb 1.11 endif
405 : andreasj 1.17 ifneq ($(DATA_2_FILES),)
406 :     $(RCOPY) $(addprefix $(PWD)/, $(DATA_2_FILES)) $(STAGING)/etc/$(DATA_2_DEST)
407 : steveb 1.11 endif
408 : andreasj 1.17 ifneq ($(DATA_3_FILES),)
409 :     $(RCOPY) $(addprefix $(PWD)/, $(DATA_3_FILES)) $(STAGING)/etc/$(DATA_3_DEST)
410 : steveb 1.11 endif
411 : andreasj 1.17 ifneq ($(DATA_4_FILES),)
412 :     $(RCOPY) $(addprefix $(PWD)/, $(DATA_4_FILES)) $(STAGING)/etc/$(DATA_4_DEST)
413 : steveb 1.11 endif
414 : andreasj 1.17 ifneq ($(DATA_5_FILES),)
415 :     $(RCOPY) $(addprefix $(PWD)/, $(DATA_5_FILES)) $(STAGING)/etc/$(DATA_5_DEST)
416 : steveb 1.11 endif
417 : andreasj 1.17 ifneq ($(DATA_6_FILES),)
418 :     $(RCOPY) $(addprefix $(PWD)/, $(DATA_6_FILES)) $(STAGING)/etc/$(DATA_6_DEST)
419 : steveb 1.16 endif
420 : andreasj 1.17 ifneq ($(DATA_7_FILES),)
421 :     $(RCOPY) $(addprefix $(PWD)/, $(DATA_7_FILES)) $(STAGING)/etc/$(DATA_7_DEST)
422 : steveb 1.16 endif
423 : andreasj 1.17 ifneq ($(DATA_8_FILES),)
424 :     $(RCOPY) $(addprefix $(PWD)/, $(DATA_8_FILES)) $(STAGING)/etc/$(DATA_8_DEST)
425 : steveb 1.16 endif
426 : michaels 1.20 ifneq ($(DATA_9_FILES),)
427 :     $(RCOPY) $(addprefix $(PWD)/, $(DATA_9_FILES)) $(STAGING)/etc/$(DATA_9_DEST)
428 :     endif
429 :     ifneq ($(DATA_10_FILES),)
430 :     $(RCOPY) $(addprefix $(PWD)/, $(DATA_10_FILES)) $(STAGING)/etc/$(DATA_10_DEST)
431 :     endif
432 :     ifneq ($(DATA_11_FILES),)
433 :     $(RCOPY) $(addprefix $(PWD)/, $(DATA_11_FILES)) $(STAGING)/etc/$(DATA_11_DEST)
434 :     endif
435 :     ifneq ($(DATA_12_FILES),)
436 :     $(RCOPY) $(addprefix $(PWD)/, $(DATA_12_FILES)) $(STAGING)/etc/$(DATA_12_DEST)
437 :     endif
438 :     ifneq ($(DATA_13_FILES),)
439 :     $(RCOPY) $(addprefix $(PWD)/, $(DATA_13_FILES)) $(STAGING)/etc/$(DATA_13_DEST)
440 :     endif
441 :     ifneq ($(DATA_14_FILES),)
442 :     $(RCOPY) $(addprefix $(PWD)/, $(DATA_14_FILES)) $(STAGING)/etc/$(DATA_14_DEST)
443 :     endif
444 :     ifneq ($(DATA_15_FILES),)
445 :     $(RCOPY) $(addprefix $(PWD)/, $(DATA_15_FILES)) $(STAGING)/etc/$(DATA_15_DEST)
446 :     endif
447 :     ifneq ($(DATA_16_FILES),)
448 :     $(RCOPY) $(addprefix $(PWD)/, $(DATA_16_FILES)) $(STAGING)/etc/$(DATA_16_DEST)
449 :     endif
450 :     ifneq ($(DATA_17_FILES),)
451 :     $(RCOPY) $(addprefix $(PWD)/, $(DATA_17_FILES)) $(STAGING)/etc/$(DATA_17_DEST)
452 :     endif
453 :     ifneq ($(DATA_18_FILES),)
454 :     $(RCOPY) $(addprefix $(PWD)/, $(DATA_18_FILES)) $(STAGING)/etc/$(DATA_18_DEST)
455 :     endif
456 :     ifneq ($(DATA_19_FILES),)
457 :     $(RCOPY) $(addprefix $(PWD)/, $(DATA_19_FILES)) $(STAGING)/etc/$(DATA_19_DEST)
458 :     endif
459 :     ifneq ($(DATA_20_FILES),)
460 :     $(RCOPY) $(addprefix $(PWD)/, $(DATA_20_FILES)) $(STAGING)/etc/$(DATA_20_DEST)
461 :     endif
462 :     ifneq ($(DATA_21_FILES),)
463 :     $(RCOPY) $(addprefix $(PWD)/, $(DATA_21_FILES)) $(STAGING)/etc/$(DATA_21_DEST)
464 :     endif
465 :     ifneq ($(DATA_22_FILES),)
466 :     $(RCOPY) $(addprefix $(PWD)/, $(DATA_22_FILES)) $(STAGING)/etc/$(DATA_22_DEST)
467 :     endif
468 :     ifneq ($(DATA_23_FILES),)
469 :     $(RCOPY) $(addprefix $(PWD)/, $(DATA_23_FILES)) $(STAGING)/etc/$(DATA_23_DEST)
470 :     endif
471 :     ifneq ($(DATA_24_FILES),)
472 :     $(RCOPY) $(addprefix $(PWD)/, $(DATA_24_FILES)) $(STAGING)/etc/$(DATA_24_DEST)
473 :     endif
474 :     ifneq ($(DATA_25_FILES),)
475 :     $(RCOPY) $(addprefix $(PWD)/, $(DATA_25_FILES)) $(STAGING)/etc/$(DATA_25_DEST)
476 :     endif
477 :     ifneq ($(DATA_26_FILES),)
478 :     $(RCOPY) $(addprefix $(PWD)/, $(DATA_26_FILES)) $(STAGING)/etc/$(DATA_26_DEST)
479 :     endif
480 : youngs 1.29 ifneq ($(DATA_27_FILES),)
481 :     $(RCOPY) $(addprefix $(PWD)/, $(DATA_27_FILES)) $(STAGING)/etc/$(DATA_27_DEST)
482 :     endif
483 :     ifneq ($(DATA_28_FILES),)
484 :     $(RCOPY) $(addprefix $(PWD)/, $(DATA_28_FILES)) $(STAGING)/etc/$(DATA_28_DEST)
485 :     endif
486 :     ifneq ($(DATA_29_FILES),)
487 :     $(RCOPY) $(addprefix $(PWD)/, $(DATA_29_FILES)) $(STAGING)/etc/$(DATA_29_DEST)
488 :     endif
489 :     ifneq ($(DATA_30_FILES),)
490 :     $(RCOPY) $(addprefix $(PWD)/, $(DATA_30_FILES)) $(STAGING)/etc/$(DATA_30_DEST)
491 :     endif
492 :     ifneq ($(DATA_31_FILES),)
493 :     $(RCOPY) $(addprefix $(PWD)/, $(DATA_31_FILES)) $(STAGING)/etc/$(DATA_31_DEST)
494 :     endif
495 :     ifneq ($(DATA_32_FILES),)
496 :     $(RCOPY) $(addprefix $(PWD)/, $(DATA_32_FILES)) $(STAGING)/etc/$(DATA_32_DEST)
497 :     endif
498 :     ifneq ($(DATA_33_FILES),)
499 :     $(RCOPY) $(addprefix $(PWD)/, $(DATA_33_FILES)) $(STAGING)/etc/$(DATA_33_DEST)
500 :     endif
501 :     ifneq ($(DATA_34_FILES),)
502 :     $(RCOPY) $(addprefix $(PWD)/, $(DATA_34_FILES)) $(STAGING)/etc/$(DATA_34_DEST)
503 :     endif
504 :     ifneq ($(DATA_35_FILES),)
505 :     $(RCOPY) $(addprefix $(PWD)/, $(DATA_35_FILES)) $(STAGING)/etc/$(DATA_35_DEST)
506 :     endif
507 : andreasj 1.17 ifneq ($(LIBSRC_FILES),)
508 :     $(RCOPY) $(addprefix $(PWD)/, $(LIBSRC_FILES)) $(STAGING)/lib-src
509 : steveb 1.11 endif
510 : steve 1.1 (cd $(STAGING); \
511 : steveb 1.11 ls -1 $(MANIFEST) > $(MANIFEST))
512 : andreasj 1.18 ifneq ($(ELCS),)
513 : steveb 1.11 @(cd $(STAGING); \
514 :     ls -1 lisp/$(PACKAGE)/ChangeLog \
515 :     $(patsubst %, lisp/$(PACKAGE)/%, $(notdir $(SOURCE_FILES_TO_COPY))) \
516 :     $(patsubst %, lisp/$(PACKAGE)/%, $(notdir $(EXTRA_SOURCES))) \
517 :     >> $(MANIFEST))
518 : andreasj 1.18 endif
519 : andreasj 1.17 ifneq ($(ELCS_1),)
520 : steveb 1.11 @(cd $(STAGING); \
521 :     ls -1 $(patsubst %, lisp/$(ELCS_1_DEST)/%, $(notdir $(ELCS_1_FILES))) \
522 :     >> $(MANIFEST))
523 :     endif
524 : andreasj 1.17 ifneq ($(INFO_FILES),)
525 : steveb 1.11 @(cd $(STAGING); \
526 :     ls -1 man/$(PACKAGE)/* \
527 :     $(patsubst %,info/%, $(notdir $(INFO_FILES))) >> $(MANIFEST))
528 :     endif
529 : andreasj 1.17 ifneq ($(DATA_FILES),)
530 : steveb 1.11 @(cd $(STAGING); \
531 :     ls -1 $(patsubst %, etc/$(DATA_DEST)/%, $(notdir $(DATA_FILES))) \
532 :     >> $(MANIFEST))
533 :     endif
534 : andreasj 1.17 ifneq ($(DATA_1_FILES),)
535 : steveb 1.11 @(cd $(STAGING); \
536 :     ls -1 $(patsubst %, etc/$(DATA_1_DEST)/%, $(notdir $(DATA_1_FILES))) \
537 :     >> $(MANIFEST))
538 :     endif
539 : andreasj 1.17 ifneq ($(DATA_2_FILES),)
540 : steveb 1.11 @(cd $(STAGING); \
541 :     ls -1 $(patsubst %, etc/$(DATA_2_DEST)/%, $(notdir $(DATA_2_FILES))) \
542 :     >> $(MANIFEST))
543 :     endif
544 : andreasj 1.17 ifneq ($(DATA_3_FILES),)
545 : steveb 1.11 @(cd $(STAGING); \
546 :     ls -1 $(patsubst %, etc/$(DATA_3_DEST)/%, $(notdir $(DATA_3_FILES))) \
547 :     >> $(MANIFEST))
548 :     endif
549 : andreasj 1.17 ifneq ($(DATA_4_FILES),)
550 : steveb 1.11 @(cd $(STAGING); \
551 :     ls -1 $(patsubst %, etc/$(DATA_4_DEST)/%, $(notdir $(DATA_4_FILES))) \
552 :     >> $(MANIFEST))
553 :     endif
554 : andreasj 1.17 ifneq ($(DATA_5_FILES),)
555 : steveb 1.11 @(cd $(STAGING); \
556 :     ls -1 $(patsubst %, etc/$(DATA_5_DEST)/%, $(notdir $(DATA_5_FILES))) \
557 : steveb 1.16 >> $(MANIFEST))
558 :     endif
559 : andreasj 1.17 ifneq ($(DATA_6_FILES),)
560 : steveb 1.16 @(cd $(STAGING); \
561 :     ls -1 $(patsubst %, etc/$(DATA_6_DEST)/%, $(notdir $(DATA_6_FILES))) \
562 :     >> $(MANIFEST))
563 :     endif
564 : andreasj 1.17 ifneq ($(DATA_7_FILES),)
565 : steveb 1.16 @(cd $(STAGING); \
566 :     ls -1 $(patsubst %, etc/$(DATA_7_DEST)/%, $(notdir $(DATA_7_FILES))) \
567 :     >> $(MANIFEST))
568 :     endif
569 : andreasj 1.17 ifneq ($(DATA_8_FILES),)
570 : steveb 1.16 @(cd $(STAGING); \
571 :     ls -1 $(patsubst %, etc/$(DATA_8_DEST)/%, $(notdir $(DATA_8_FILES))) \
572 : michaels 1.20 >> $(MANIFEST))
573 :     endif
574 :     ifneq ($(DATA_9_FILES),)
575 :     @(cd $(STAGING); \
576 :     ls -1 $(patsubst %, etc/$(DATA_9_DEST)/%, $(notdir $(DATA_9_FILES))) \
577 :     >> $(MANIFEST))
578 :     endif
579 :     ifneq ($(DATA_10_FILES),)
580 :     @(cd $(STAGING); \
581 :     ls -1 $(patsubst %, etc/$(DATA_10_DEST)/%, $(notdir $(DATA_10_FILES))) \
582 :     >> $(MANIFEST))
583 :     endif
584 :     ifneq ($(DATA_11_FILES),)
585 :     @(cd $(STAGING); \
586 :     ls -1 $(patsubst %, etc/$(DATA_11_DEST)/%, $(notdir $(DATA_11_FILES))) \
587 :     >> $(MANIFEST))
588 :     endif
589 :     ifneq ($(DATA_12_FILES),)
590 :     @(cd $(STAGING); \
591 :     ls -1 $(patsubst %, etc/$(DATA_12_DEST)/%, $(notdir $(DATA_12_FILES))) \
592 :     >> $(MANIFEST))
593 :     endif
594 :     ifneq ($(DATA_13_FILES),)
595 :     @(cd $(STAGING); \
596 :     ls -1 $(patsubst %, etc/$(DATA_13_DEST)/%, $(notdir $(DATA_13_FILES))) \
597 :     >> $(MANIFEST))
598 :     endif
599 :     ifneq ($(DATA_14_FILES),)
600 :     @(cd $(STAGING); \
601 :     ls -1 $(patsubst %, etc/$(DATA_14_DEST)/%, $(notdir $(DATA_14_FILES))) \
602 :     >> $(MANIFEST))
603 :     endif
604 :     ifneq ($(DATA_15_FILES),)
605 :     @(cd $(STAGING); \
606 :     ls -1 $(patsubst %, etc/$(DATA_15_DEST)/%, $(notdir $(DATA_15_FILES))) \
607 :     >> $(MANIFEST))
608 :     endif
609 :     ifneq ($(DATA_16_FILES),)
610 :     @(cd $(STAGING); \
611 :     ls -1 $(patsubst %, etc/$(DATA_16_DEST)/%, $(notdir $(DATA_16_FILES))) \
612 :     >> $(MANIFEST))
613 :     endif
614 :     ifneq ($(DATA_17_FILES),)
615 :     @(cd $(STAGING); \
616 :     ls -1 $(patsubst %, etc/$(DATA_17_DEST)/%, $(notdir $(DATA_17_FILES))) \
617 :     >> $(MANIFEST))
618 :     endif
619 :     ifneq ($(DATA_18_FILES),)
620 :     @(cd $(STAGING); \
621 :     ls -1 $(patsubst %, etc/$(DATA_18_DEST)/%, $(notdir $(DATA_18_FILES))) \
622 :     >> $(MANIFEST))
623 :     endif
624 :     ifneq ($(DATA_19_FILES),)
625 :     @(cd $(STAGING); \
626 :     ls -1 $(patsubst %, etc/$(DATA_19_DEST)/%, $(notdir $(DATA_19_FILES))) \
627 :     >> $(MANIFEST))
628 :     endif
629 :     ifneq ($(DATA_20_FILES),)
630 :     @(cd $(STAGING); \
631 :     ls -1 $(patsubst %, etc/$(DATA_20_DEST)/%, $(notdir $(DATA_20_FILES))) \
632 :     >> $(MANIFEST))
633 :     endif
634 :     ifneq ($(DATA_21_FILES),)
635 :     @(cd $(STAGING); \
636 :     ls -1 $(patsubst %, etc/$(DATA_21_DEST)/%, $(notdir $(DATA_21_FILES))) \
637 :     >> $(MANIFEST))
638 :     endif
639 :     ifneq ($(DATA_22_FILES),)
640 :     @(cd $(STAGING); \
641 :     ls -1 $(patsubst %, etc/$(DATA_22_DEST)/%, $(notdir $(DATA_22_FILES))) \
642 :     >> $(MANIFEST))
643 :     endif
644 :     ifneq ($(DATA_23_FILES),)
645 :     @(cd $(STAGING); \
646 :     ls -1 $(patsubst %, etc/$(DATA_23_DEST)/%, $(notdir $(DATA_23_FILES))) \
647 :     >> $(MANIFEST))
648 :     endif
649 :     ifneq ($(DATA_24_FILES),)
650 :     @(cd $(STAGING); \
651 :     ls -1 $(patsubst %, etc/$(DATA_24_DEST)/%, $(notdir $(DATA_24_FILES))) \
652 :     >> $(MANIFEST))
653 :     endif
654 :     ifneq ($(DATA_25_FILES),)
655 :     @(cd $(STAGING); \
656 :     ls -1 $(patsubst %, etc/$(DATA_25_DEST)/%, $(notdir $(DATA_25_FILES))) \
657 :     >> $(MANIFEST))
658 :     endif
659 :     ifneq ($(DATA_26_FILES),)
660 :     @(cd $(STAGING); \
661 :     ls -1 $(patsubst %, etc/$(DATA_26_DEST)/%, $(notdir $(DATA_26_FILES))) \
662 : steveb 1.11 >> $(MANIFEST))
663 :     endif
664 : youngs 1.29 ifneq ($(DATA_27_FILES),)
665 :     @(cd $(STAGING); \
666 :     ls -1 $(patsubst %, etc/$(DATA_27_DEST)/%, $(notdir $(DATA_27_FILES))) \
667 :     >> $(MANIFEST))
668 :     endif
669 :     ifneq ($(DATA_28_FILES),)
670 :     @(cd $(STAGING); \
671 :     ls -1 $(patsubst %, etc/$(DATA_28_DEST)/%, $(notdir $(DATA_28_FILES))) \
672 :     >> $(MANIFEST))
673 :     endif
674 :     ifneq ($(DATA_29_FILES),)
675 :     @(cd $(STAGING); \
676 :     ls -1 $(patsubst %, etc/$(DATA_29_DEST)/%, $(notdir $(DATA_29_FILES))) \
677 :     >> $(MANIFEST))
678 :     endif
679 :     ifneq ($(DATA_30_FILES),)
680 :     @(cd $(STAGING); \
681 :     ls -1 $(patsubst %, etc/$(DATA_30_DEST)/%, $(notdir $(DATA_30_FILES))) \
682 :     >> $(MANIFEST))
683 :     endif
684 :     ifneq ($(DATA_31_FILES),)
685 :     @(cd $(STAGING); \
686 :     ls -1 $(patsubst %, etc/$(DATA_31_DEST)/%, $(notdir $(DATA_31_FILES))) \
687 :     >> $(MANIFEST))
688 :     endif
689 :     ifneq ($(DATA_32_FILES),)
690 :     @(cd $(STAGING); \
691 :     ls -1 $(patsubst %, etc/$(DATA_32_DEST)/%, $(notdir $(DATA_32_FILES))) \
692 :     >> $(MANIFEST))
693 :     endif
694 :     ifneq ($(DATA_33_FILES),)
695 :     @(cd $(STAGING); \
696 :     ls -1 $(patsubst %, etc/$(DATA_33_DEST)/%, $(notdir $(DATA_33_FILES))) \
697 :     >> $(MANIFEST))
698 :     endif
699 :     ifneq ($(DATA_34_FILES),)
700 :     @(cd $(STAGING); \
701 :     ls -1 $(patsubst %, etc/$(DATA_34_DEST)/%, $(notdir $(DATA_34_FILES))) \
702 :     >> $(MANIFEST))
703 :     endif
704 :     ifneq ($(DATA_35_FILES),)
705 :     @(cd $(STAGING); \
706 :     ls -1 $(patsubst %, etc/$(DATA_35_DEST)/%, $(notdir $(DATA_35_FILES))) \
707 :     >> $(MANIFEST))
708 :     endif
709 : andreasj 1.17 ifneq ($(LIBSRC_FILES),)
710 : steveb 1.11 @(cd $(STAGING); \
711 :     ls -1 $(patsubst %,lib-src/%, $(notdir $(LIBSRC_FILES))) >> $(MANIFEST))
712 :     endif
713 :    
714 : andreasj 1.17
715 : steveb 1.11 binkit-sourceonly: binkit-common
716 :    
717 :     binkit-sourceinfo: binkit-common
718 :    
719 :     binkit-sourcedata: binkit-common
720 :    
721 :     binkit-sourcedatainfo: binkit-common
722 : scop 1.40
723 :     binkit-with-html: binkit-common
724 :     ifneq ($(HTML_FILES),)
725 :     @-mkdir -p $(STAGING)/html
726 :     $(RCOPY) $(addprefix $(PWD)/, $(HTML_FILES)) $(STAGING)/html
727 :     @(cd $(STAGING); \
728 :     ls -1 $(patsubst %,html/%, $(notdir $(HTML_FILES))) >> $(MANIFEST))
729 :     endif
730 : youngs 1.31
731 :     # Export dependencies for outer make file usage
732 :    
733 :     # Passed in from outer Make
734 :     TARGET_BASE=
735 :    
736 :     # Build depends is a clean version of Requires
737 :     BDEPENDS=$(strip $(filter-out $(PACKAGE),$(REQUIRES)))
738 :    
739 :     $(DEPENDS_FILE_NAME): Makefile $(XEMACS_PACKAGES_BASE)/XEmacs.rules
740 :     ifneq ($(TARGET_BASE),)
741 : youngs 1.32 -rm -f $(DEPENDS_FILE_NAME)
742 : youngs 1.31 @echo Creating $(DEPENDS_FILE_NAME)
743 :     @echo > $(DEPENDS_FILE_NAME)
744 :     ifneq ($(BDEPENDS),)
745 :     @echo $(TARGET_BASE)$(PACKAGE)/autoloads.target: \
746 :     $(TARGET_BASE)$(BDEPENDS:=/autoloads.target) \
747 :     >>$(DEPENDS_FILE_NAME)
748 :     @echo $(TARGET_BASE)$(PACKAGE)/compile.target: \
749 :     $(TARGET_BASE)$(BDEPENDS:=/compile.target) \
750 :     >>$(DEPENDS_FILE_NAME)
751 :     endif
752 :     endif
753 : andreasj 1.17
754 :     # Local Variables:
755 :     # mode: makefile
756 :     # End:

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