-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
30 lines (26 loc) · 731 Bytes
/
Makefile
File metadata and controls
30 lines (26 loc) · 731 Bytes
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
# Makefile for CS50 Tiny Search Engine
#
# David Kotz - April 2016, 2017, 2021
L = libcs50
.PHONY: all clean
############## default: make all libs and programs ##########
# If libcs50 contains set.c, we build a fresh libcs50.a;
# otherwise we use the pre-built library provided by instructor.
all:
(cd $L && if [ -r set.c ]; then make $L.a; else cp $L-given.a $L.a; fi)
make -C common
make -C crawler
make -C indexer
#make -C querier
############### TAGS for emacs users ##########
TAGS: Makefile */Makefile */*.c */*.h */*.md */*.sh
etags $^
############## clean ##########
clean:
rm -f *~
rm -f TAGS
make -C libcs50 clean
make -C common clean
make -C crawler clean
make -C indexer clean
make -C querier clean