Skip to content

Instantly share code, notes, and snippets.

@Grommish
Created November 12, 2020 03:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Grommish/ea9488237e3b19dbb721d3e62b901b68 to your computer and use it in GitHub Desktop.
Save Grommish/ea9488237e3b19dbb721d3e62b901b68 to your computer and use it in GitHub Desktop.
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
@Grommish
Copy link
Author

In Compile
In Prepare
1 Install?
Makefile:151: *** No file. Stop.
make[2]: Leaving directory '/home/grommish/openwrt/feeds/packages/lang/rust'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment