X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2FMakefile;h=90c36af421eaa8af9e1ba016920c02552dfcca4a;hb=7a1f43925b0780ac983c529f7ecba8d7437a9890;hp=72b234a1312739b7d8dafaf735409f6fde5e3012;hpb=750d21936d284127e265d050ccbce76fca1ece1a;p=pintos-anon diff --git a/src/Makefile b/src/Makefile index 72b234a..90c36af 100644 --- a/src/Makefile +++ b/src/Makefile @@ -1,10 +1,18 @@ +SUBDIRS = threads userprog vm filesys + all:: - @echo "Run 'make' in the threads, userprog, filesys, or vm directory." + @echo "Run 'make' in subdirectories $(SUBDIRS)." @echo "This top-level make has only 'clean' targets." clean:: - for d in threads; do $(MAKE) -C $$d $@; done + for d in $(SUBDIRS) tests; do $(MAKE) -C $$d $@; done -distclean:: - $(MAKE) clean +distclean:: clean find . -name '*~' -exec rm '{}' \; + +TAGS:: + etags --members *.[chS] `find $(SUBDIRS) -name \*.[chS]` + +tags:: + ctags -T *.[chS] `find . -name \*.[chS]` +