Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(218)

Side by Side Diff: Makefile

Issue 1873253002: Add a make target for generating Ctags file (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: add comment about wildcard usage Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2012 the V8 project authors. All rights reserved. 1 # Copyright 2012 the V8 project authors. All rights reserved.
2 # Redistribution and use in source and binary forms, with or without 2 # Redistribution and use in source and binary forms, with or without
3 # modification, are permitted provided that the following conditions are 3 # modification, are permitted provided that the following conditions are
4 # met: 4 # met:
5 # 5 #
6 # * Redistributions of source code must retain the above copyright 6 # * Redistributions of source code must retain the above copyright
7 # notice, this list of conditions and the following disclaimer. 7 # notice, this list of conditions and the following disclaimer.
8 # * Redistributions in binary form must reproduce the above 8 # * Redistributions in binary form must reproduce the above
9 # copyright notice, this list of conditions and the following 9 # copyright notice, this list of conditions and the following
10 # disclaimer in the documentation and/or other materials provided 10 # disclaimer in the documentation and/or other materials provided
(...skipping 414 matching lines...) Expand 10 before | Expand all | Expand 10 after
425 rm -rf $(OUTDIR)/$(basename $@).release 425 rm -rf $(OUTDIR)/$(basename $@).release
426 rm -rf $(OUTDIR)/$(basename $@).debug 426 rm -rf $(OUTDIR)/$(basename $@).debug
427 rm -rf $(OUTDIR)/$(basename $@).optdebug 427 rm -rf $(OUTDIR)/$(basename $@).optdebug
428 find $(OUTDIR) -regex '.*\(host\|target\)\.$(basename $@).*\.mk' -delete 428 find $(OUTDIR) -regex '.*\(host\|target\)\.$(basename $@).*\.mk' -delete
429 429
430 native.clean: 430 native.clean:
431 rm -f $(OUTDIR)/Makefile.native 431 rm -f $(OUTDIR)/Makefile.native
432 rm -rf $(OUTDIR)/native 432 rm -rf $(OUTDIR)/native
433 find $(OUTDIR) -regex '.*\(host\|target\)\.native\.mk' -delete 433 find $(OUTDIR) -regex '.*\(host\|target\)\.native\.mk' -delete
434 434
435 clean: $(addsuffix .clean, $(ARCHES) $(ANDROID_ARCHES) $(NACL_ARCHES)) native.cl ean gtags.clean 435 clean: $(addsuffix .clean, $(ARCHES) $(ANDROID_ARCHES) $(NACL_ARCHES)) native.cl ean gtags.clean tags.clean
436 436
437 # GYP file generation targets. 437 # GYP file generation targets.
438 OUT_MAKEFILES = $(addprefix $(OUTDIR)/Makefile.,$(BUILDS)) 438 OUT_MAKEFILES = $(addprefix $(OUTDIR)/Makefile.,$(BUILDS))
439 $(OUT_MAKEFILES): $(GYPFILES) $(ENVFILE) 439 $(OUT_MAKEFILES): $(GYPFILES) $(ENVFILE)
440 $(eval CXX_TARGET_ARCH:=$(shell $(CXX) -v 2>&1 | grep ^Target: | \ 440 $(eval CXX_TARGET_ARCH:=$(shell $(CXX) -v 2>&1 | grep ^Target: | \
441 cut -f 2 -d " " | cut -f 1 -d "-" )) 441 cut -f 2 -d " " | cut -f 1 -d "-" ))
442 $(eval CXX_TARGET_ARCH:=$(subst aarch64,arm64,$(CXX_TARGET_ARCH))) 442 $(eval CXX_TARGET_ARCH:=$(subst aarch64,arm64,$(CXX_TARGET_ARCH)))
443 $(eval CXX_TARGET_ARCH:=$(subst x86_64,x64,$(CXX_TARGET_ARCH))) 443 $(eval CXX_TARGET_ARCH:=$(subst x86_64,x64,$(CXX_TARGET_ARCH)))
444 $(eval V8_TARGET_ARCH:=$(subst .,,$(suffix $(basename $@)))) 444 $(eval V8_TARGET_ARCH:=$(subst .,,$(suffix $(basename $@))))
445 PYTHONPATH="$(shell pwd)/tools/generate_shim_headers:$(shell pwd)/build: $(PYTHONPATH):$(shell pwd)/build/gyp/pylib:$(PYTHONPATH)" \ 445 PYTHONPATH="$(shell pwd)/tools/generate_shim_headers:$(shell pwd)/build: $(PYTHONPATH):$(shell pwd)/build/gyp/pylib:$(PYTHONPATH)" \
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
490 grokdump: ia32.release 490 grokdump: ia32.release
491 @cat $(DUMP_FILE).tmpl > $(DUMP_FILE) 491 @cat $(DUMP_FILE).tmpl > $(DUMP_FILE)
492 @$(OUTDIR)/ia32.release/d8 --dump-heap-constants >> $(DUMP_FILE) 492 @$(OUTDIR)/ia32.release/d8 --dump-heap-constants >> $(DUMP_FILE)
493 493
494 # Support for the GNU GLOBAL Source Code Tag System. 494 # Support for the GNU GLOBAL Source Code Tag System.
495 gtags.files: $(GYPFILES) $(ENVFILE) 495 gtags.files: $(GYPFILES) $(ENVFILE)
496 @find include src test -name '*.h' -o -name '*.cc' -o -name '*.c' > $@ 496 @find include src test -name '*.h' -o -name '*.cc' -o -name '*.c' > $@
497 497
498 # We need to manually set the stack limit here, to work around bugs in 498 # We need to manually set the stack limit here, to work around bugs in
499 # gmake-3.81 and global-5.7.1 on recent 64-bit Linux systems. 499 # gmake-3.81 and global-5.7.1 on recent 64-bit Linux systems.
500 GPATH GRTAGS GSYMS GTAGS: gtags.files $(shell cat gtags.files 2> /dev/null) 500 # Using $(wildcard ...) gracefully ignores non-existing files, so that stale
501 # gtags.files after switching branches don't cause recipe failures.
502 GPATH GRTAGS GSYMS GTAGS: gtags.files $(wildcard $(shell cat gtags.files 2> /dev /null))
501 @bash -c 'ulimit -s 10240 && GTAGSFORCECPP=yes gtags -i -q -f $<' 503 @bash -c 'ulimit -s 10240 && GTAGSFORCECPP=yes gtags -i -q -f $<'
502 504
503 gtags.clean: 505 gtags.clean:
504 rm -f gtags.files GPATH GRTAGS GSYMS GTAGS 506 rm -f gtags.files GPATH GRTAGS GSYMS GTAGS
505 507
508 tags: gtags.files $(wildcard $(shell cat gtags.files 2> /dev/null))
509 @(ctags --version | grep 'Exuberant Ctags' >/dev/null) || \
510 (echo "Please install Exuberant Ctags (check 'ctags --version')" >&2; false)
511 ctags --fields=+l -L $<
512
513 tags.clean:
514 rm -r tags
515
506 dependencies builddeps: 516 dependencies builddeps:
507 $(error Use 'gclient sync' instead) 517 $(error Use 'gclient sync' instead)
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698