puppet/murmur/Makefile
Ossi Salmi d785e48a55 Fix curl error handling in Makefiles
Add option -f to make curl fail on server errors. Fixes #7.
2013-08-14 14:16:24 +03:00

18 lines
516 B
Makefile

include $(CURDIR)/../Makefile.inc
VERSION = 1.2.4
TARGET = murmur-static_x86-$(VERSION).tar.bz2
SOURCE = http://downloads.sourceforge.net/project/mumble/Mumble/$(VERSION)/murmur-static_x86-$(VERSION).tar.bz2
all: download manifest
download: $(PACKAGES)/$(TARGET)
manifest: $(MANIFESTS)/murmur.pp
$(PACKAGES)/$(TARGET):
@umask 022; echo $@; \
test -f $@ || curl -f -L -o $@ $(SOURCE)
$(MANIFESTS)/murmur.pp: $(PACKAGES)/$(TARGET)
@umask 022; echo $@; \
echo '$$murmur_package_latest = "$(TARGET)"' > $@