projects
/
pintos-anon
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Ignore tags and cscope files.
[pintos-anon]
/
src
/
Makefile
diff --git
a/src/Makefile
b/src/Makefile
index d6d325516d88f40805af8eb05aa190e4b194d62e..229f85d1dcc3deb707c897033bc0327f10eddc4d 100644
(file)
--- a/
src/Makefile
+++ b/
src/Makefile
@@
-1,19
+1,29
@@
-SUBDIRS = threads userprog vm filesys
+
BUILD_
SUBDIRS = threads userprog vm filesys
all::
all::
- @echo "Run 'make' in subdirectories
$(
SUBDIRS)."
+ @echo "Run 'make' in subdirectories
: $(BUILD_
SUBDIRS)."
@echo "This top-level make has only 'clean' targets."
@echo "This top-level make has only 'clean' targets."
+CLEAN_SUBDIRS = $(BUILD_SUBDIRS) examples utils
+
clean::
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 '{}' \;
find . -name '*~' -exec rm '{}' \;
+TAGS_SUBDIRS = $(BUILD_SUBDIRS) devices lib
+TAGS_SOURCES = find $(TAGS_SUBDIRS) -name \*.[chS] -print
+
TAGS::
TAGS::
- etags --members `
find . -name \*.[chS]
`
+ etags --members `
$(TAGS_SOURCES)
`
tags::
tags::
- ctags -T `find . -name \*.[chS]`
+ ctags -T --no-warn `$(TAGS_SOURCES)`
+
+cscope.files::
+ $(TAGS_SOURCES) > cscope.files
+cscope:: cscope.files
+ cscope -b -q -k