diff options
| author | Eli Zaretskii | 2010-10-01 13:45:16 +0200 |
|---|---|---|
| committer | Eli Zaretskii | 2010-10-01 13:45:16 +0200 |
| commit | 73077a9af5b634a43742c3fdcecae8a851eb51be (patch) | |
| tree | c62d3a7c20cbd132eac4642e7872a93c73b845f9 | |
| parent | 967f57dcc822719de3a0e197957943f7504baef1 (diff) | |
| download | emacs-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/ChangeLog | 4 | ||||
| -rw-r--r-- | lib-src/makefile.w32-in | 6 | ||||
| -rw-r--r-- | lisp/ChangeLog | 6 | ||||
| -rw-r--r-- | lisp/makefile.w32-in | 45 | ||||
| -rw-r--r-- | nt/ChangeLog | 2 | ||||
| -rw-r--r-- | nt/emacs-src.tags | 6 | ||||
| -rw-r--r-- | nt/makefile.w32-in | 13 | ||||
| -rw-r--r-- | src/ChangeLog | 6 | ||||
| -rw-r--r-- | src/makefile.w32-in | 45 |
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 @@ | |||
| 1 | 2010-10-01 Eli Zaretskii <eliz@gnu.org> | ||
| 2 | |||
| 3 | * makefile.w32-in (tags, TAGS): New targets. | ||
| 4 | |||
| 1 | 2010-09-30 Juanma Barranquero <lekktu@gmail.com> | 5 | 2010-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 | |||
| 378 | getopt.h: getopt_.h | 378 | getopt.h: getopt_.h |
| 379 | $(CP) $(ALL_DEPS) $@ | 379 | $(CP) $(ALL_DEPS) $@ |
| 380 | 380 | ||
| 381 | ### TAGS ### | ||
| 382 | |||
| 383 | tags: TAGS | ||
| 384 | TAGS: $(BLD)/etags.exe *.c *.h | ||
| 385 | $(BLD)/etags.exe *.c *.h | ||
| 386 | |||
| 381 | ### DEPENDENCIES ### | 387 | ### DEPENDENCIES ### |
| 382 | 388 | ||
| 383 | EMACS_ROOT = .. | 389 | EMACS_ROOT = .. |
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index d145ebcf0c7..fb364f9651e 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2010-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 | |||
| 1 | 2010-10-01 Glenn Morris <rgm@gnu.org> | 7 | 2010-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 | ||
| 51 | lisptagsfiles1 = $(lisp)/*.el | 51 | lisptagsfiles1 = $(lisp)/*.el |
| 52 | lisptagsfiles2 = $(lisp)/*/*.el | 52 | lisptagsfiles2 = $(lisp)/*/*.el |
| 53 | ETAGS = "../lib-src/$(BLD)/etags" | 53 | lisptagsfiles3 = $(lisp)/*/*/*.el |
| 54 | lisptagsfiles4 = $(lisp)/*/*/*/*.el | ||
| 55 | ETAGS = "../lib-src/$(BLD)/etags.exe" | ||
| 56 | ## $(DEST) is overridden by ../src/makefile.w32-in. | ||
| 57 | DEST=$(lisp) | ||
| 54 | 58 | ||
| 55 | # Automatically generated autoload files, apart from lisp/loaddefs.el. | 59 | # Automatically generated autoload files, apart from lisp/loaddefs.el. |
| 56 | LOADDEFS = $(lisp)/calendar/cal-loaddefs.el \ | 60 | LOADDEFS = $(lisp)/calendar/cal-loaddefs.el \ |
| @@ -244,11 +248,42 @@ cvs-update: bzr-update | |||
| 244 | update-authors: | 248 | update-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 | ||
| 247 | TAGS: $(lisptagsfiles1) $(lisptagsfiles2) | 251 | TAGS: TAGS-$(MAKETYPE) |
| 248 | $(ETAGS) $(lisptagsfiles1) $(lisptagsfiles2) | ||
| 249 | 252 | ||
| 250 | TAGS-LISP: $(lisptagsfiles1) $(lisptagsfiles2) | 253 | TAGS-LISP: TAGS-LISP-$(MAKETYPE) |
| 251 | $(ETAGS) -o TAGS-LISP $(lisptagsfiles1) $(lisptagsfiles2) | 254 | |
| 255 | TAGS-nmake: | ||
| 256 | echo This target is not supported with NMake | ||
| 257 | exit -1 | ||
| 258 | |||
| 259 | TAGS-LISP-nmake: | ||
| 260 | echo This target is not supported with NMake | ||
| 261 | exit -1 | ||
| 262 | |||
| 263 | TAGS-gmake: TAGS-$(SHELLTYPE) | ||
| 264 | |||
| 265 | TAGS-LISP-gmake: TAGS-LISP-$(SHELLTYPE) | ||
| 266 | |||
| 267 | TAGS-SH: $(lisptagsfiles1) $(lisptagsfiles2) $(lisptagsfiles3) $(lisptagsfiles4) | ||
| 268 | - $(DEL) TAGS | ||
| 269 | for dir in . $(WINS_UPDATES); do \ | ||
| 270 | $(ETAGS) -a $(lisp)/$$dir/*.el; \ | ||
| 271 | done | ||
| 272 | |||
| 273 | TAGS-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 | |||
| 279 | TAGS-CMD: $(lisptagsfiles1) $(lisptagsfiles2) $(lisptagsfiles3) $(lisptagsfiles4) | ||
| 280 | - $(DEL) TAGS | ||
| 281 | for %%d in (. $(WINS_UPDATES)) do $(ETAGS) -a $(lisp)/%%d/*.el | ||
| 282 | |||
| 283 | TAGS-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 @@ | |||
| 1 | 2010-10-01 Eli Zaretskii <eliz@gnu.org> | 1 | 2010-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 | ||
| 418 | realclean: cleanall | 418 | realclean: cleanall |
| 419 | - $(DEL_TREE) ../bin | 419 | - $(DEL_TREE) ../bin |
| 420 | |||
| 421 | TAGS: TAGS-$(MAKETYPE) | ||
| 422 | |||
| 423 | frc: | ||
| 424 | TAGS-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 | |||
| 429 | TAGS-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 @@ | |||
| 1 | 2010-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 | |||
| 1 | 2010-09-30 Dan Nicolaescu <dann@ics.uci.edu> | 7 | 2010-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 | |||
| 301 | TAGS: $(OBJ0) $(OBJ1) $(WIN32OBJ) | ||
| 302 | $(MAKE) $(MFLAGS) TAGS-$(MAKETYPE) | ||
| 303 | |||
| 304 | TAGS-LISP: $(OBJ0) $(OBJ1) $(WIN32OBJ) | ||
| 305 | $(MAKE) $(MFLAGS) TAGS-LISP-$(MAKETYPE) | ||
| 306 | |||
| 307 | TAGS-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 | |||
| 316 | TAGS-nmake: | ||
| 317 | echo This target is not supported with NMake | ||
| 318 | exit -1 | ||
| 319 | |||
| 320 | frc: | ||
| 321 | TAGS-LISP-gmake: frc | ||
| 322 | $(MAKE) $(MFLAGS) -C ../lisp TAGS-LISP DEST=../src | ||
| 323 | |||
| 324 | TAGS-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 | |||
| 331 | nt-TAGS-gmake: | ||
| 332 | $(MAKE) $(MFLAGS) -C ../nt TAGS | ||
| 333 | |||
| 334 | nt-TAGS-nmake: | ||
| 335 | echo This target is not supported with NMake | ||
| 336 | exit -1 | ||
| 337 | |||
| 338 | tags: TAGS TAGS-LISP ../nt/TAGS | ||
| 339 | .PHONY: tags | ||
| 340 | |||
| 296 | ### DEPENDENCIES ### | 341 | ### DEPENDENCIES ### |
| 297 | 342 | ||
| 298 | EMACS_ROOT = .. | 343 | EMACS_ROOT = .. |