-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
77 lines (62 loc) · 3.24 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
BUILD_SUBDIRS = threads userprog vm filesys
all::
@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 $(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 `$(TAGS_SOURCES)`
tags::
ctags -T --no-warn `$(TAGS_SOURCES)`
cscope.files::
$(TAGS_SOURCES) > cscope.files
cscope:: cscope.files
cscope -b -q -k
##################
# Handin your work
##################
turnin.tar: clean
tar cvf turnin.tar `find . -type f | grep -v \.tar$$ | grep -v \.tar\.gz$$ | grep -v /\.git | grep -v \.swp$$ | grep -v CVS | grep -v svn | grep -v \.pl$$ | grep -v ~$$`
LAB1_NAME := threads
LAB2_NAME := user
LAB3_NAME := vm
LAB4_NAME := filesys
turnin_threads: turnin.tar
mv turnin.tar threads_turnin.tar
gzip threads_turnin.tar
@echo "Created threads_turnin.tar.gz for submission. Please upload to Canvas."
@echo "Before uploading, please verify:"
@echo " Your README.threads is correctly filled out."
@echo " Your programming_log.threads reflects your programming work on this project."
@echo "If either of those items are not done, please update your submission and run the make turnin command again. We also recommend you review the Turnin Checklist, which is linked from the main project page."
turnin_user: turnin.tar
mv turnin.tar userprog_turnin.tar
gzip userprog_turnin.tar
@echo "Created userprog_turnin.tar.gz for submission. Please upload to Canvas."
@echo "Before uploading, please verify:"
@echo " Your README.userprog is correctly filled out."
@echo " Your programming_log.userprog reflects your programming work on this project."
@echo " Your pair programming log is in the userprog directory."
@echo "If either of those items are not done, please update your submission and run the make turnin command again. We also recommend you review the Turnin Checklist, which is linked from the main project page."
turnin_vm: turnin.tar
mv turnin.tar vm_turnin.tar
gzip vm_turnin.tar
@echo "Created vm_turnin.tar.gz for submission. Please upload to Canvas."
@echo "Before uploading, please verify:"
@echo " Your README.vm is correctly filled out."
@echo " Your programming_log.vm reflects your programming work on this project."
@echo "If either of those items are not done, please update your submission and run the make turnin command again. We also recommend you review the Turnin Checklist, which is linked from the main project page."
turnin_fs: turnin.tar
mv turnin.tar filesys_turnin.tar
gzip filesys_turnin.tar
@echo "Created filesys_turnin.tar.gz for submission. Please upload to Canvas."
@echo "Before uploading, please verify:"
@echo " Your README.filesys is correctly filled out."
@echo " Your programming_log.filesys reflects your programming work on this project."
@echo "If either of those items are not done, please update your submission and run the make turnin command again. We also recommend you review the Turnin Checklist, which is linked from the main project page."