Created
November 12, 2020 03:14
-
-
Save Grommish/ea9488237e3b19dbb721d3e62b901b68 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
feq ($(shell test -e $(DL_DIR)/$(RUST_INSTALL_FILENAME) && echo -n yes),yes) | |
RUST_HAS_INSTALL:=1 | |
else | |
RUST_HAS_INSTALL:=0 | |
endif | |
define Host/Prepare | |
$(info In Prepare) | |
# This is our CARGO_HOME, so make sure it's there to receive files | |
[ -d $(CARGO_HOME) ] || (mkdir -p $(CARGO_HOME)) | |
# Allows outside packages to call $$(BUILD_DIR_HOST)/rust as the dir | |
# rather than needing the version number. | |
[ -L $(BUILD_DIR_HOST)/rust ] || \ | |
(cd $(BUILD_DIR_HOST); ln -s "$(PKG_NAME)-$(PKG_VERSION)" rust) | |
$(info $(RUST_HAS_INSTALL) Install?) | |
if [ $(RUST_HAS_INSTALL) -eq 1 ] | |
then | |
$(error Has file) | |
else | |
$(error No file) | |
fi | |
$(call Host/Prepare/Default) | |
endef |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In Compile
In Prepare
1 Install?
Makefile:151: *** No file. Stop.
make[2]: Leaving directory '/home/grommish/openwrt/feeds/packages/lang/rust'