Browse Source

Cleaned up makefile.

pull/2/head
Gregory Rudolph 4 years ago
parent
commit
4c3c42a738
Signed by: rudi
GPG Key ID: EF64F3CBD1A1EBDD
  1. 12
      Makefile

12
Makefile

@ -7,13 +7,14 @@ default: @@ -7,13 +7,14 @@ default:
@echo \"make run\" to run Driver class
@echo \"make jar\" to compile executable jar
@echo \"make clean\" to clean up artifacts
build:
$(JCC) $(JFLAGS) Driver.java
run:
$(JCC) $(JFLAGS) Driver.java
java Driver
jar:
$(JCC) $(JFLAGS) Driver.java
run: jar
java -jar MTGClone.jar
jar: build
@echo "Manifest-Version: 1.0" > manifest.txt
@echo "Class-Path: ." >> manifest.txt
@echo "Main-Class: Driver" >> manifest.txt
@ -21,6 +22,7 @@ jar: @@ -21,6 +22,7 @@ jar:
jar -cmf manifest.txt MTGClone.jar *.class
$(RM) manifest.txt
$(RM) *.class
clean:
$(RM) *.class
$(RM) manifest.txt

Loading…
Cancel
Save