We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7932950 commit 3849325Copy full SHA for 3849325
src/Make.pkg
@@ -6,7 +6,11 @@ all: package
6
package: _obj/$(TARG).a
7
testpackage: _test/$(TARG).a
8
9
-elem=$(lastword $(subst /, ,$(TARG)))
+# GNU Make 3.80 has a bug in lastword
10
+# elem=$(lastword $(subst /, ,$(TARG)))
11
+TARG_words=$(subst /, ,$(TARG))
12
+elem=$(word $(words $(TARG_words)),$(TARG_words))
13
+
14
dir=$(patsubst %/$(elem),%,./$(TARG))
15
pkgdir=$(GOROOT)/pkg/$(GOOS)_$(GOARCH)
16
0 commit comments