Changed arduino to use new Makefile system.
This commit is contained in:
parent
9d069e29fa
commit
62d1e908c6
2 changed files with 40 additions and 17 deletions
|
@ -1,16 +1,26 @@
|
|||
|
||||
VERSION = 0022
|
||||
BASEURL = http://arduino.googlecode.com/files/
|
||||
OUT = /srv/puppet/files/common/packages
|
||||
include $(CURDIR)/../Makefile.inc
|
||||
|
||||
all: $(OUT)/arduino32.tgz $(OUT)/arduino64.tgz
|
||||
VERSION = 1.0
|
||||
|
||||
$(OUT)/arduino32.tgz:
|
||||
@umask 022
|
||||
cd $(OUT) && wget -nv -N $(BASEURL)/arduino-$(VERSION).tgz && \
|
||||
ln -sf arduino-$(VERSION).tgz arduino32.tgz
|
||||
TARGET32 = arduino32-$(VERSION).tgz
|
||||
SOURCE32 = http://arduino.googlecode.com/files/arduino-$(VERSION)-linux.tgz
|
||||
TARGET64 = arduino64-$(VERSION).tgz
|
||||
SOURCE64 = http://arduino.googlecode.com/files/arduino-$(VERSION)-linux64.tgz
|
||||
|
||||
$(OUT)/arduino64.tgz:
|
||||
@umask 022
|
||||
cd $(OUT) && wget -nv -N $(BASEURL)/arduino-$(VERSION)-64-2.tgz && \
|
||||
ln -sf arduino-$(VERSION)-64-2.tgz arduino64.tgz
|
||||
all: download manifest
|
||||
download: $(PACKAGES)/$(TARGET32) $(PACKAGES)/$(TARGET64)
|
||||
manifest: $(MANIFESTS)/arduino.pp
|
||||
|
||||
$(PACKAGES)/$(TARGET32):
|
||||
@umask 022; echo $@; \
|
||||
test -f $@ || curl -o $@ $(SOURCE32)
|
||||
|
||||
$(PACKAGES)/$(TARGET64):
|
||||
@umask 022; echo $@; \
|
||||
test -f $@ || curl -o $@ $(SOURCE64)
|
||||
|
||||
$(MANIFESTS)/arduino.pp: $(PACKAGES)/$(TARGET32) $(PACKAGES)/$(TARGET64)
|
||||
@umask 022; echo $@; \
|
||||
echo '$$arduino32_package_latest = "$(TARGET32)"' > $@ && \
|
||||
echo '$$arduino64_package_latest = "$(TARGET64)"' >> $@
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue