2013-04-13 21:59:55 -07:00
|
|
|
# Copyright 2013 Prometheus Team
|
|
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
# you may not use this file except in compliance with the License.
|
|
|
|
# You may obtain a copy of the License at
|
|
|
|
#
|
|
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
#
|
|
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
# See the License for the specific language governing permissions and
|
|
|
|
# limitations under the License.
|
|
|
|
|
|
|
|
.SUFFIXES:
|
|
|
|
|
|
|
|
include ../../Makefile.INCLUDE
|
|
|
|
|
|
|
|
all: populate
|
|
|
|
|
|
|
|
populate: leveldb-$(LEVELDB_VERSION).tar.gz protobuf-$(PROTOCOL_BUFFERS_VERSION).tar.bz2 snappy-$(SNAPPY_VERSION).tar.gz
|
|
|
|
|
|
|
|
leveldb-$(LEVELDB_VERSION).tar.gz: wget-stamp
|
|
|
|
$(WGET) http://leveldb.googlecode.com/files/leveldb-$(LEVELDB_VERSION).tar.gz
|
|
|
|
|
|
|
|
protobuf-$(PROTOCOL_BUFFERS_VERSION).tar.bz2: wget-stamp
|
|
|
|
$(WGET) http://protobuf.googlecode.com/files/$@
|
|
|
|
|
|
|
|
snappy-$(SNAPPY_VERSION).tar.gz: wget-stamp
|
|
|
|
$(WGET) http://snappy.googlecode.com/files/snappy-$(SNAPPY_VERSION).tar.gz
|
|
|
|
|
|
|
|
wget-implementation-Darwin-stamp:
|
2013-04-17 02:43:35 -07:00
|
|
|
[ -x "$$(which wget)" ] || $(BREW_INSTALL) wget
|
2013-04-13 21:59:55 -07:00
|
|
|
touch $@
|
|
|
|
|
|
|
|
wget-implementation-Linux-stamp:
|
2013-04-17 02:43:35 -07:00
|
|
|
[ -x "$$(which wget)" ] || $(APT_GET_INSTALL) wget
|
2013-04-13 21:59:55 -07:00
|
|
|
touch $@
|
|
|
|
|
|
|
|
wget-stamp: wget-implementation-$(UNAME)-stamp
|
|
|
|
[ -x "$$(which wget)" ] || { echo "wget not found." ; false ; }
|
|
|
|
touch $@
|
|
|
|
|
|
|
|
clean:
|
|
|
|
-[ -n "$(REALLY_CLEAN)" ] && rm -rf *.bz2
|
|
|
|
-[ -n "$(REALLY_CLEAN)" ] && rm -rf *.gz
|
|
|
|
rm -rf *-stamp
|
|
|
|
|
|
|
|
.PHONY: clean populate
|