Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- .SUFFIXES: .java .class .jar
- CP = -classpath .:classes:/opt/pi4j/lib/'*':/usr/share/java/'*'
- JFLAGS = $(CP) -d .
- JC = javac
- JVM = java -jar
- JAR = jar cvfm
- SRC = \
- Core.java\
- Motor.java\
- PiBotCommunicator.java
- MAIN = Core
- MAINCLASS = $(MAIN).class
- MAINJAR = $(MAIN).jar
- CLASSES = $(SRC:.java=.class)
- %.class: %.java
- $(JC) $(JFLAGS) $<
- MANIFEST.MF:
- $(shell echo Main-Class: $(MAIN) > MANIFEST.MF)
- $(MAINJAR): $(CLASSES) MANIFEST.MF
- $(JAR) $(MAINJAR) MANIFEST.MF $(CLASSES)
- default: $(MAINJAR)
- run: $(MAINJAR)
- $(JVM) $(MAINJAR)
- clean:
- rm *.class $(MAINJAR) MANIFEST.MF
- Core.jar: $(CLASSES)
- Core.class: Motor.class PiBotCommunicator.class
- Motor.class: PiBotCommunicator.class
- Core.class: Core.java
- Motor.class: Motor.java
- PiBotCommunicator.class: PiBotCommunicator.java
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement