-
Notifications
You must be signed in to change notification settings - Fork 5
/
Makefile
45 lines (39 loc) · 1.18 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
#
# Makefile
# Sean Kirmani, 2017-09-17 16:49
#
DIRS=${wildcard ./lab*}
vware_baseurl=http://edx-org-utaustinx.s3.amazonaws.com/UT601x/
vware_zipfile=ValvanoWareTM4C123.zip
vware_destdir=ValvanoWare
init::
@git config core.hooksPath .githooks
@git config core.whitespace cr-at-eol
if [ ! -d ${vware_destdir} ]; \
then \
echo ${vware_destdir}/ >> .gitignore && \
curl -O ${vware_baseurl}${vware_zipfile} && \
unzip ${vware_zipfile} && \
mv ${vware_zipfile:.zip=} ${vware_destdir} && \
rm ${vware_zipfile} || exit $$?; \
fi;
all: init
@for i in ${DIRS}; \
do \
if [ -f $${i}/Makefile ]; \
then \
make -C $${i} || exit $$?; \
fi; \
done
clean: init
@rm -f ${wildcard *~} __dummy__
@rm -f ${wildcard utils/*~} __dummy__
@for i in ${DIRS}; \
do \
if [ -f $${i}/Makefile ]; \
then \
make -C $${i} clean; \
fi; \
done
# vim:ft=make
#