X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2FMakefile;h=626e6dd924ceb070e8606ce4ebd099ffcef74c0d;hb=127ad6d1d303bf93142a4b951ac08f136e4646e5;hp=d6d325516d88f40805af8eb05aa190e4b194d62e;hpb=c2fdbe98af66ad0870d2e5466f539d655a8eeff7;p=pintos-anon diff --git a/src/Makefile b/src/Makefile index d6d3255..626e6dd 100644 --- a/src/Makefile +++ b/src/Makefile @@ -1,19 +1,26 @@ -SUBDIRS = threads userprog vm filesys +BUILD_SUBDIRS = threads userprog vm filesys all:: - @echo "Run 'make' in subdirectories $(SUBDIRS)." + @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 $(SUBDIRS); 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 `find . -name \*.[chS]` + etags --members `$(TAGS_SOURCES)` tags:: - ctags -T `find . -name \*.[chS]` + ctags -T --no-warn `$(TAGS_SOURCES)` +cscope.files:: + $(TAGS_SOURCES) > cscope.files