Skip to content

Commit

Permalink
Tidied README. Updated Makefile to tidy build/classes and cp over inc…
Browse files Browse the repository at this point in the history
…lude/.
  • Loading branch information
dmalan committed Sep 29, 2014
1 parent 9676e7d commit f2d4549
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,14 @@ TESTS = \
TESTOBJECTS = \
build/obj/TestStanfordCSLib.o

JAR = spl.jar


# ***************************************************************
# Entry to bring the package up to date
# The "make all" entry should be the first real entry

all: $(BUILD) $(OBJECTS) $(LIBRARIES) $(TESTS) tidy
all: $(BUILD) $(OBJECTS) $(LIBRARIES) $(TESTS) $(JAR) tidy


# ***************************************************************
Expand Down Expand Up @@ -282,6 +284,7 @@ lib/libcs.a: $(OBJECTS)
-rm -f build/lib/libcs.a
ar cr build/lib/libcs.a $(OBJECTS)
ranlib build/lib/libcs.a
cp -r c/include build/


# ***************************************************************
Expand All @@ -299,7 +302,7 @@ TestStanfordCSLib: $(TESTOBJECTS) lib/libcs.a
# ***************************************************************
# Java Back End

spl.jar: stanford/spl/JavaBackEnd.class
$(JAR): stanford/spl/JavaBackEnd.class
@cp java/lib/acm.jar build/lib/spl.jar
@(cd build/classes; jar ufm ../lib/spl.jar ../../java/include/JBEManifest.txt \
`find stanford -name '*.class'`)
Expand All @@ -319,6 +322,7 @@ tidy:
@rm -f `find . -name ',*' -o -name '.,*' -o -name '*~'`
@rm -f `find . -name '*.tmp' -o -name '*.err'`
@rm -f `find . -name core -o -name a.out`
@rm -rf build/classes
@rm -rf build/obj

scratch clean: tidy
Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

CS50's fork of Eric Roberts' Stanford Portable Library

## Building

make

## TODO

* Bug fixes.
Expand Down

0 comments on commit f2d4549

Please sign in to comment.