X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2FMakefile;h=ee58cc33149c6ce8e6d513feb63c5c9feff20b56;hb=fd24c2387f5cf1b802e885c7430ba1f1bb852e13;hp=90c36af421eaa8af9e1ba016920c02552dfcca4a;hpb=d46fd132092304422193b717d9a60641604cc1b5;p=pintos-anon diff --git a/src/Makefile b/src/Makefile index 90c36af..ee58cc3 100644 --- a/src/Makefile +++ b/src/Makefile @@ -1,18 +1,24 @@ -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) tests; do $(MAKE) -C $$d $@; done + for d in $(CLEAN_SUBDIRS); do $(MAKE) -C $$d $@; done + rm -f TAGS tags distclean:: clean find . -name '*~' -exec rm '{}' \; +TAGS_SUBDIRS = $(BUILD_SUBDIRS) devices lib +TAGS_SOURCES = `find $(TAGS_SUBDIRS) -name \*.[chS] -print` + TAGS:: - etags --members *.[chS] `find $(SUBDIRS) -name \*.[chS]` + etags --members $(TAGS_SOURCES) tags:: - ctags -T *.[chS] `find . -name \*.[chS]` + ctags -T --no-warn $(TAGS_SOURCES)