aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Zaretskii2010-10-01 13:45:16 +0200
committerEli Zaretskii2010-10-01 13:45:16 +0200
commit73077a9af5b634a43742c3fdcecae8a851eb51be (patch)
treec62d3a7c20cbd132eac4642e7872a93c73b845f9
parent967f57dcc822719de3a0e197957943f7504baef1 (diff)
downloademacs-73077a9af5b634a43742c3fdcecae8a851eb51be.tar.gz
emacs-73077a9af5b634a43742c3fdcecae8a851eb51be.zip
Support TAGS targets in the w32 build.
nt/makefile.w32-in (frc, TAGS, TAGS-gmake, TAGS-nmake): New targets. emacs-src.tags: New file. src/makefile.w32-in (TAGS, frc, TAGS-LISP, ../nt/TAGS, tags) (TAGS-gmake, TAGS-nmake, TAGS-LISP-gmake, TAGS-LISP-nmake) (nt-TAGS-gmake, nt-TAGS-nmake): New targets. lisp/makefile.w32-in (DEST, TAGS, TAGS-LISP, TAGS-nmake) (TAGS-LISP-nmake, TAGS-gmake, TAGS-LISP-gmake, TAGS-SH) (TAGS-LISP-SH, TAGS-CMD, TAGS-LISP-CMD): New targets. lib-src/makefile.w32-in (tags, TAGS): New targets.
-rw-r--r--lib-src/ChangeLog4
-rw-r--r--lib-src/makefile.w32-in6
-rw-r--r--lisp/ChangeLog6
-rw-r--r--lisp/makefile.w32-in45
-rw-r--r--nt/ChangeLog2
-rw-r--r--nt/emacs-src.tags6
-rw-r--r--nt/makefile.w32-in13
-rw-r--r--src/ChangeLog6
-rw-r--r--src/makefile.w32-in45
9 files changed, 128 insertions, 5 deletions
diff --git a/lib-src/ChangeLog b/lib-src/ChangeLog
index 33036c92ffd..3d8a0222296 100644
--- a/lib-src/ChangeLog
+++ b/lib-src/ChangeLog
@@ -1,3 +1,7 @@
12010-10-01 Eli Zaretskii <eliz@gnu.org>
2
3 * makefile.w32-in (tags, TAGS): New targets.
4
12010-09-30 Juanma Barranquero <lekktu@gmail.com> 52010-09-30 Juanma Barranquero <lekktu@gmail.com>
2 6
3 * emacsclient.c (get_server_config): Don't read Emacs pid from 7 * emacsclient.c (get_server_config): Don't read Emacs pid from
diff --git a/lib-src/makefile.w32-in b/lib-src/makefile.w32-in
index 552dd1349fc..6d881dbc174 100644
--- a/lib-src/makefile.w32-in
+++ b/lib-src/makefile.w32-in
@@ -378,6 +378,12 @@ cleanall: clean
378getopt.h: getopt_.h 378getopt.h: getopt_.h
379 $(CP) $(ALL_DEPS) $@ 379 $(CP) $(ALL_DEPS) $@
380 380
381### TAGS ###
382
383tags: TAGS
384TAGS: $(BLD)/etags.exe *.c *.h
385 $(BLD)/etags.exe *.c *.h
386
381### DEPENDENCIES ### 387### DEPENDENCIES ###
382 388
383EMACS_ROOT = .. 389EMACS_ROOT = ..
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index d145ebcf0c7..fb364f9651e 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,9 @@
12010-10-01 Eli Zaretskii <eliz@gnu.org>
2
3 * makefile.w32-in (DEST, TAGS, TAGS-LISP, TAGS-nmake)
4 (TAGS-LISP-nmake, TAGS-gmake, TAGS-LISP-gmake, TAGS-SH)
5 (TAGS-LISP-SH, TAGS-CMD, TAGS-LISP-CMD): New targets.
6
12010-10-01 Glenn Morris <rgm@gnu.org> 72010-10-01 Glenn Morris <rgm@gnu.org>
2 8
3 * obsolete/sc.el: Remove file. 9 * obsolete/sc.el: Remove file.
diff --git a/lisp/makefile.w32-in b/lisp/makefile.w32-in
index 43328a9e46a..cd76ffa290a 100644
--- a/lisp/makefile.w32-in
+++ b/lisp/makefile.w32-in
@@ -50,7 +50,11 @@ LC_ALL = C
50 50
51lisptagsfiles1 = $(lisp)/*.el 51lisptagsfiles1 = $(lisp)/*.el
52lisptagsfiles2 = $(lisp)/*/*.el 52lisptagsfiles2 = $(lisp)/*/*.el
53ETAGS = "../lib-src/$(BLD)/etags" 53lisptagsfiles3 = $(lisp)/*/*/*.el
54lisptagsfiles4 = $(lisp)/*/*/*/*.el
55ETAGS = "../lib-src/$(BLD)/etags.exe"
56## $(DEST) is overridden by ../src/makefile.w32-in.
57DEST=$(lisp)
54 58
55# Automatically generated autoload files, apart from lisp/loaddefs.el. 59# Automatically generated autoload files, apart from lisp/loaddefs.el.
56LOADDEFS = $(lisp)/calendar/cal-loaddefs.el \ 60LOADDEFS = $(lisp)/calendar/cal-loaddefs.el \
@@ -244,11 +248,42 @@ cvs-update: bzr-update
244update-authors: 248update-authors:
245 $(emacs) -l authors -f batch-update-authors $(srcdir)/etc/AUTHORS $(srcdir) 249 $(emacs) -l authors -f batch-update-authors $(srcdir)/etc/AUTHORS $(srcdir)
246 250
247TAGS: $(lisptagsfiles1) $(lisptagsfiles2) 251TAGS: TAGS-$(MAKETYPE)
248 $(ETAGS) $(lisptagsfiles1) $(lisptagsfiles2)
249 252
250TAGS-LISP: $(lisptagsfiles1) $(lisptagsfiles2) 253TAGS-LISP: TAGS-LISP-$(MAKETYPE)
251 $(ETAGS) -o TAGS-LISP $(lisptagsfiles1) $(lisptagsfiles2) 254
255TAGS-nmake:
256 echo This target is not supported with NMake
257 exit -1
258
259TAGS-LISP-nmake:
260 echo This target is not supported with NMake
261 exit -1
262
263TAGS-gmake: TAGS-$(SHELLTYPE)
264
265TAGS-LISP-gmake: TAGS-LISP-$(SHELLTYPE)
266
267TAGS-SH: $(lisptagsfiles1) $(lisptagsfiles2) $(lisptagsfiles3) $(lisptagsfiles4)
268 - $(DEL) TAGS
269 for dir in . $(WINS_UPDATES); do \
270 $(ETAGS) -a $(lisp)/$$dir/*.el; \
271 done
272
273TAGS-LISP-SH: $(lisptagsfiles1) $(lisptagsfiles2) $(lisptagsfiles3) $(lisptagsfiles4)
274 - $(DEL) $(DEST)/TAGS-LISP
275 for dir in . $(WINS_UPDATES); do \
276 $(ETAGS) -a -o $(DEST)/TAGS-LISP $(lisp)/$$dir/*.el; \
277 done
278
279TAGS-CMD: $(lisptagsfiles1) $(lisptagsfiles2) $(lisptagsfiles3) $(lisptagsfiles4)
280 - $(DEL) TAGS
281 for %%d in (. $(WINS_UPDATES)) do $(ETAGS) -a $(lisp)/%%d/*.el
282
283TAGS-LISP-CMD: $(lisptagsfiles1) $(lisptagsfiles2) $(lisptagsfiles3) $(lisptagsfiles4)
284 - $(DEL) $(DEST)/TAGS-LISP
285 for %%d in (. $(WINS_UPDATES)) do \
286 $(ETAGS) -a -o $(DEST)/TAGS-LISP $(lisp)/%%d/*.el
252 287
253.SUFFIXES: .elc .el 288.SUFFIXES: .elc .el
254 289
diff --git a/nt/ChangeLog b/nt/ChangeLog
index 25c274c4f9a..71097e32181 100644
--- a/nt/ChangeLog
+++ b/nt/ChangeLog
@@ -1,5 +1,7 @@
12010-10-01 Eli Zaretskii <eliz@gnu.org> 12010-10-01 Eli Zaretskii <eliz@gnu.org>
2 2
3 * makefile.w32-in (frc, TAGS, TAGS-gmake, TAGS-nmake): New targets.
4
3 * gmake.defs: Add a comment with a single quote to fix 5 * gmake.defs: Add a comment with a single quote to fix
4 fontification. (Bug#7102) 6 fontification. (Bug#7102)
5 7
diff --git a/nt/emacs-src.tags b/nt/emacs-src.tags
new file mode 100644
index 00000000000..8c187133454
--- /dev/null
+++ b/nt/emacs-src.tags
@@ -0,0 +1,6 @@
1 This file defines the regular expressions for etags to look for
2 in the src directory. It is used by the w32 build to work around
3 the annoyances of quoting command-line arguments with various
4 w32 shell.
5
6/[ ]*DEFVAR_[A-Z_ (]+"\([^"]+\)"/
diff --git a/nt/makefile.w32-in b/nt/makefile.w32-in
index b0f5edb28a2..f328cd6a9f9 100644
--- a/nt/makefile.w32-in
+++ b/nt/makefile.w32-in
@@ -417,3 +417,16 @@ maintainer-clean-other-dirs-gmake:
417 417
418realclean: cleanall 418realclean: cleanall
419 - $(DEL_TREE) ../bin 419 - $(DEL_TREE) ../bin
420
421TAGS: TAGS-$(MAKETYPE)
422
423frc:
424TAGS-gmake: frc
425 ../lib-src/$(BLD)/etags $(CURDIR)/*.c
426 $(MAKE) $(MFLAGS) -C ../src TAGS TAGS-LISP
427 $(MAKE) $(MFLAGS) -C ../lib-src TAGS
428
429TAGS-nmake:
430 echo This target is not supported with NMake
431
432.PHONY: frc
diff --git a/src/ChangeLog b/src/ChangeLog
index 05d7d4336ae..1d337527eff 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,9 @@
12010-10-01 Eli Zaretskii <eliz@gnu.org>
2
3 * makefile.w32-in (TAGS, frc, TAGS-LISP, ../nt/TAGS, tags)
4 (TAGS-gmake, TAGS-nmake, TAGS-LISP-gmake, TAGS-LISP-nmake)
5 (nt-TAGS-gmake, nt-TAGS-nmake): New targets.
6
12010-09-30 Dan Nicolaescu <dann@ics.uci.edu> 72010-09-30 Dan Nicolaescu <dann@ics.uci.edu>
2 8
3 * xml.c (parse_string): Use const. 9 * xml.c (parse_string): Use const.
diff --git a/src/makefile.w32-in b/src/makefile.w32-in
index 752a3c211b3..daa6ed52198 100644
--- a/src/makefile.w32-in
+++ b/src/makefile.w32-in
@@ -293,6 +293,51 @@ cleanall: clean
293 - $(DEL_TREE) oo 293 - $(DEL_TREE) oo
294 - $(DEL_TREE) oo-spd 294 - $(DEL_TREE) oo-spd
295 295
296## Arrange to make a tags table TAGS-LISP for ../lisp,
297## plus TAGS for the C files, which includes ../lisp/TAGS by reference.
298##
299## This works only with GNU Make.
300
301TAGS: $(OBJ0) $(OBJ1) $(WIN32OBJ)
302 $(MAKE) $(MFLAGS) TAGS-$(MAKETYPE)
303
304TAGS-LISP: $(OBJ0) $(OBJ1) $(WIN32OBJ)
305 $(MAKE) $(MFLAGS) TAGS-LISP-$(MAKETYPE)
306
307TAGS-gmake:
308 ../lib-src/$(BLD)/etags.exe --include=TAGS-LISP --include=../nt/TAGS \
309 --regex=@../nt/emacs-src.tags \
310 $(patsubst $(BLD)%.$(O),$(CURDIR)%.c,$(OBJ0))
311 ../lib-src/$(BLD)/etags.exe -a --regex=@../nt/emacs-src.tags \
312 $(patsubst $(BLD)%.$(O),$(CURDIR)%.c,$(OBJ1))
313 ../lib-src/$(BLD)/etags.exe -a --regex=@../nt/emacs-src.tags \
314 $(patsubst $(BLD)%.$(O),$(CURDIR)%.c,$(WIN32OBJ)) $(CURDIR)/*.h
315
316TAGS-nmake:
317 echo This target is not supported with NMake
318 exit -1
319
320frc:
321TAGS-LISP-gmake: frc
322 $(MAKE) $(MFLAGS) -C ../lisp TAGS-LISP DEST=../src
323
324TAGS-LISP-nmake:
325 echo This target is not supported with NMake
326 exit -1
327
328../nt/TAGS: frc
329 $(MAKE) $(MFLAGS) nt-TAGS-$(MAKETYPE)
330
331nt-TAGS-gmake:
332 $(MAKE) $(MFLAGS) -C ../nt TAGS
333
334nt-TAGS-nmake:
335 echo This target is not supported with NMake
336 exit -1
337
338tags: TAGS TAGS-LISP ../nt/TAGS
339.PHONY: tags
340
296### DEPENDENCIES ### 341### DEPENDENCIES ###
297 342
298EMACS_ROOT = .. 343EMACS_ROOT = ..