Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

add a makefile

  • Loading branch information...
commit 1eac66d1a9aa016f83f54a688c3ff1458545442e 1 parent d5d5fd5
Luke Closs lukec authored
Showing with 19 additions and 0 deletions.
  1. +19 −0 Makefile
19 Makefile
View
@@ -0,0 +1,19 @@
+INSTALL_DIR=/usr/local/vhs/
+ARDUINO_DIR=arduino_door_tweet
+ARDUINO_SRC=$(ARDUINO_DIR)/arduino_door_tweet.pde
+ARDUINO_HEX=$(ARDUINO_DIR)/applet/arduino_door_tweet.hex
+HOOKS_SRC=$(wildcard hooks/*.d/*)
+DAEMON=$(bin/arduino-daemon)
+LIBS=$(wildcard lib/*)
+
+$(ARDUINO_HEX): $(ARDUINO_SRC)
+ cd $(ARDUINO_DIR) && make && make upload
+
+install: $(ARDUINO_HEX) $(HOOKS_SRC) $(DAEMON) $(LIBS)
+ cp -R hooks $(INSTALL_DIR)
+ cp -R bin $(INSTALL_DIR)
+ cp -R lib $(INSTALL_DIR)
+ $(INSTALL_DIR)/bin/restart-daemon
+
+clean:
+ cd $(ARDUINO_DIR) && make clean
Please sign in to comment.
Something went wrong with that request. Please try again.