Explorar o código

Allow override of cargoflags

Jeremy Soller %!s(int64=6) %!d(string=hai) anos
pai
achega
8a972542be
Modificáronse 1 ficheiros con 3 adicións e 2 borrados
  1. 3 2
      Makefile

+ 3 - 2
Makefile

@@ -1,13 +1,14 @@
 TARGET?=
 
+CARGO?=cargo
+CARGOFLAGS?=
+
 BUILD=target
 ifneq ($(TARGET),)
 	BUILD="target/$(TARGET)"
 	CARGOFLAGS+="--target=$(TARGET)"
 endif
 
-CARGO?=cargo
-
 ifeq ($(TARGET),aarch64-unknown-linux-gnu)
 	CC?=aarch64-linux-gnu-gcc
 endif