X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?p=pintos-anon;a=blobdiff_plain;f=src%2FMakefile;h=229f85d1dcc3deb707c897033bc0327f10eddc4d;hp=72b234a1312739b7d8dafaf735409f6fde5e3012;hb=fd2a5afa946474ba0839de0e9da238dbaecbd6a5;hpb=750d21936d284127e265d050ccbce76fca1ece1a diff --git a/src/Makefile b/src/Makefile index 72b234a..229f85d 100644 --- a/src/Makefile +++ b/src/Makefile @@ -1,10 +1,29 @@ +BUILD_SUBDIRS = threads userprog vm filesys + all:: - @echo "Run 'make' in the threads, userprog, filesys, or vm directory." + @echo "Run 'make' in subdirectories: $(BUILD_SUBDIRS)." @echo "This top-level make has only 'clean' targets." +CLEAN_SUBDIRS = $(BUILD_SUBDIRS) examples utils + clean:: - for d in threads; do $(MAKE) -C $$d $@; done + for d in $(CLEAN_SUBDIRS); do $(MAKE) -C $$d $@; done + rm -f TAGS tags -distclean:: - $(MAKE) clean +distclean:: clean find . -name '*~' -exec rm '{}' \; + +TAGS_SUBDIRS = $(BUILD_SUBDIRS) devices lib +TAGS_SOURCES = find $(TAGS_SUBDIRS) -name \*.[chS] -print + +TAGS:: + etags --members `$(TAGS_SOURCES)` + +tags:: + ctags -T --no-warn `$(TAGS_SOURCES)` + +cscope.files:: + $(TAGS_SOURCES) > cscope.files + +cscope:: cscope.files + cscope -b -q -k