X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2FMakefile;h=6dd4610cbd0885556738bb02d6355c4e012a261e;hb=c1589ebc0b6ea34d608af61bad80979abbaeb9fc;hp=c47ac1297a07de2e78de38bd0112d92d19965acd;hpb=926c47b3fa1c373a671edf3378b2b2abe3750912;p=pintos-anon diff --git a/src/Makefile b/src/Makefile index c47ac12..6dd4610 100644 --- a/src/Makefile +++ b/src/Makefile @@ -1,12 +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 + 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 $(TAGS_SOURCES) + +tags:: + ctags -T --no-warn $(TAGS_SOURCES) +