Skip to content

Instantly share code, notes, and snippets.

@akofink
Created January 31, 2013 23:21
Show Gist options
  • Save akofink/4687645 to your computer and use it in GitHub Desktop.
Save akofink/4687645 to your computer and use it in GitHub Desktop.
An example Java Makefile. It's true! It can be used for more than just C.
default: clean CompileMessage LinkedRankList.class Program_1.class
CompileMessage:
@echo 'Compiling source...'
LinkedRankList.class:
@printf 'LinkedRankList'
@javac LinkedRankList.java >> makelog
@echo ' - Success'
Program_1.class:
@printf 'Program_1'
@javac Program_1.java >> makelog
@echo ' - Success'
clean:
@echo 'Removing binaries...'
@rm -rf *.class makelog >> makelog
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment