Skip to content

Instantly share code, notes, and snippets.

@itto-ki
Created August 5, 2018 07:39
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 itto-ki/c89015334427d17b931ad33725442d8b to your computer and use it in GitHub Desktop.
Save itto-ki/c89015334427d17b931ad33725442d8b to your computer and use it in GitHub Desktop.
# Basic Info
CUSTOM_TARGET := i386-sawayakanaos
# Directories
SRC_DIR := src
TARGET_DIR := target
DEBUG_BUILD_DIR := $(TARGET_DIR)/$(CUSTOM_TARGET)/debug/
# Files
SRCS := $(SRC_DIR)/lib.rs
# COMMAND
XARGO_FLAG := --target $(CUSTOM_TARGET)
.PHONY: build clean
build: $(SRCS)
xargo build $(XARGO_FLAG)
clean:
rm -rf $(TARGET_DIR)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment