X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2FMakefile;h=229f85d1dcc3deb707c897033bc0327f10eddc4d;hb=HEAD;hp=6dd4610cbd0885556738bb02d6355c4e012a261e;hpb=615bf3b3d2a8573ed6fb9ddc0055745e163ac999;p=pintos-anon diff --git a/src/Makefile b/src/Makefile index 6dd4610..229f85d 100644 --- a/src/Makefile +++ b/src/Makefile @@ -4,7 +4,7 @@ all:: @echo "Run 'make' in subdirectories: $(BUILD_SUBDIRS)." @echo "This top-level make has only 'clean' targets." -CLEAN_SUBDIRS = $(BUILD_SUBDIRS) examples +CLEAN_SUBDIRS = $(BUILD_SUBDIRS) examples utils clean:: for d in $(CLEAN_SUBDIRS); do $(MAKE) -C $$d $@; done @@ -14,11 +14,16 @@ distclean:: clean find . -name '*~' -exec rm '{}' \; TAGS_SUBDIRS = $(BUILD_SUBDIRS) devices lib -TAGS_SOURCES = `find $(TAGS_SUBDIRS) -name \*.[chS] -print` +TAGS_SOURCES = find $(TAGS_SUBDIRS) -name \*.[chS] -print TAGS:: - etags --members $(TAGS_SOURCES) + etags --members `$(TAGS_SOURCES)` tags:: - ctags -T --no-warn $(TAGS_SOURCES) + ctags -T --no-warn `$(TAGS_SOURCES)` +cscope.files:: + $(TAGS_SOURCES) > cscope.files + +cscope:: cscope.files + cscope -b -q -k