19 lines
685 B
Makefile
19 lines
685 B
Makefile
STOW_DOWNLOAD_LOCATION ?= $(LOCAL_CACHE)/stow-2.4.1.tar.gz
|
|
STOW_DOWNLOAD_URL ?= http://ftp.gnu.org/gnu/stow/stow-2.4.1.tar.gz
|
|
BUILD_STOW ?= 0
|
|
|
|
$(STOW_DOWNLOAD_LOCATION): $(LOCAL_CACHE)
|
|
@echo Downloading Stow 2.4.1
|
|
curl -L -o $@ $(STOW_DOWNLOAD_URL)
|
|
|
|
$(LOCAL_TOOLS_BIN)/stow: $(STOW_DOWNLOAD_LOCATION) $(LOCAL_TOOLS) $(LOCAL_TOOLS_BIN)
|
|
ifeq ($(BUILD_STOW),1)
|
|
@echo Building Stow 2.4.1 from source
|
|
mkdir -p $(LOCAL_TOOLS)/stow
|
|
tar -C $(LOCAL_TOOLS)/stow --strip-components=1 -xzf $(STOW_DOWNLOAD_LOCATION)
|
|
cd $(LOCAL_TOOLS)/stow && /bin/sh ./configure && make
|
|
cp $(LOCAL_TOOLS)/stow/bin/stow $@
|
|
else
|
|
@echo Using system-installed Stow
|
|
ln -s $(STOW) $(LOCAL_TOOLS_BIN)/stow
|
|
endif
|