Browse Source

Merge pull request #1 from Rudi9719/master

Makefile and gitignore
pull/2/head
jordanmason-stleo 4 years ago committed by GitHub
parent
commit
f1b8719fe0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      .gitignore
  2. 27
      Makefile

3
.gitignore vendored

@ -0,0 +1,3 @@ @@ -0,0 +1,3 @@
*.class
manifest.txt
*.jar

27
Makefile

@ -0,0 +1,27 @@ @@ -0,0 +1,27 @@
JCC = javac
JFLAGS = -g
default:
@echo \"make build\" to compile Java classes
@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
@echo "Manifest-Version: 1.0" > manifest.txt
@echo "Class-Path: ." >> manifest.txt
@echo "Main-Class: Driver" >> manifest.txt
@echo "" >> manifest.txt
jar -cmf manifest.txt MTGClone.jar *.class
$(RM) manifest.txt
$(RM) *.class
clean:
$(RM) *.class
$(RM) manifest.txt
$(RM) MTGClone.jar
Loading…
Cancel
Save