-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathMakefile
More file actions
40 lines (29 loc) · 1.04 KB
/
Copy pathMakefile
File metadata and controls
40 lines (29 loc) · 1.04 KB
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
# Makefile for jkarel directory
# Last modified on Sat Apr 4 15:14:03 2009 by eroberts
# -----------------------------------------------------
# This Makefile creates the karel.jar archive used to
# implement the Java-based version of Karel the Robot.
JAR = karel.jar
JAVAC = javac -d ../../../classes -classpath ../../../acm.jar
# ***************************************************************
# Main entries
all: $(JAR)
@true
# ***************************************************************
# Java compilations
karel.jar: always
@mkdir -p classes
@echo "[Compiling source files]"
@(cd src/stanford/karel ; $(JAVAC) *.java)
@echo "[Creating karel.jar]"
@(cd classes ; jar xf ../acm.jar)
@(cd classes ; jar cf ../karel.jar */*/*.class)
always:
# ***************************************************************
# Standard entries to remove files from the directories
# tidy -- eliminate unwanted files
# clean -- delete derived files in preparation for rebuild
tidy:
rm -f -r *~ .,* core a.out
clean scratch: tidy
rm -f -r $(JAR) classes