Skip to content

Commit

Permalink
Added jar option to makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
rngcntr committed Oct 1, 2016
1 parent 529dfb1 commit 1a71187
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
bin/*
manning.jar
4 changes: 4 additions & 0 deletions makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
all: src/view/Manning.class
%.class: %.java
mkdir -p bin
javac -Xlint:unchecked -d bin -cp lib/json-simple-1.1.1.jar:lib/jline-2.12.jar:src/ $<
jar:
make
jar -cfm manning.jar manifest.txt -C bin .
clean:
find bin -iname *.class | xargs rm -f
run:
Expand Down
3 changes: 3 additions & 0 deletions manifest.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Manifest-Version: 1.0
Main-Class: view/Manning
Class-Path: lib/json-simple-1.1.1.jar lib/jline-2.12.jar

0 comments on commit 1a71187

Please sign in to comment.