Attempting to pull in the Bounce library

This commit is contained in:
Dan Buch 2013-12-29 23:28:46 -05:00
parent 31d62328ba
commit af4691730f
3 changed files with 17 additions and 0 deletions

2
.gitignore vendored
View File

@ -1,4 +1,6 @@
/postgresql/tutorial/weather/data/
/arduino/arduino.mk
/arduino/libraries/.raw/
/arduino/libraries/*
.dep
*.hex

View File

@ -1,2 +1,17 @@
EVERYTHING := \
arduino.mk \
libraries/Bounce/Bounce.h
.PHONY: all
all: $(EVERYTHING)
arduino.mk:
curl -L -o $@ -s http://ed.am/dev/make/arduino-mk/arduino.mk
libraries/Bounce/Bounce.h: libraries/.raw/Bounce-Arduino-Wiring/Bounce
ln -svf $(PWD)/libraries/.raw/Bounce-Arduino-Wiring/Bounce $(PWD)/libraries/Bounce
libraries/.raw/Bounce-Arduino-Wiring/Bounce:
mkdir -p libraries/.raw/Bounce-Arduino-Wiring && \
curl -L -s https://github.com/thomasfredericks/Bounce-Arduino-Wiring/archive/8c6fb3b3437b66215c579d23b716916c9b65881b.tar.gz | \
tar xzf - -C libraries/.raw/Bounce-Arduino-Wiring --strip-components=1

View File