master
mk 26 lines 615 Bytes
Raw
1 # util functions
2 OS ?= $(shell sh -c 'uname -s 2>/dev/null || echo not')
3 ifeq ($(OS),Windows_NT)
4 WINDOWS :=1
5 ?exe :=.exe # windows compat
6 PATH_SEP :=;
7 else
8 ?exe :=
9 PATH_SEP :=:
10 endif
11
12 # Platforms are now defined in .github/build-platforms.yml
13 # The cmd/ipfs-try-build target is deprecated in favor of GitHub Actions
14 # Use 'make supported' to see the list of platforms
15
16 space:=$() $()
17 comma:=,
18 join-with=$(subst $(space),$1,$(strip $2))
19
20 # debug target, prints variable. Example: `make print-GOFLAGS`
21 print-%:
22 @echo $*=$($*)
23
24 # phony target that will mean that recipe is always executed
25 ALWAYS:
26 .PHONY: ALWAYS