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