mumble-voip/mumble-www

Fix Makefile

Closed this issue · 1 comments

I was just checking out what you guys were doing and ran into an issue with the Makefile.

I fixed it with the following:

diff --git a/Makefile b/Makefile
index 62e594d..0d13e21 100644
--- a/Makefile
+++ b/Makefile
@@ -1,10 +1,12 @@
+VPATH = src
+
 all: public mumble-www package
 
 public: $(shell find hugo/ -type f)
        (cd hugo/; hugo)
 
 mumble-www: mumble-www.go githubcache.go snapshotcache.go config.go downloads.go programflags.go
-       (cd src/; GO111MODULE=on go build -o ../$@ $^)
+       (cd src/; GO111MODULE=on go build -o ../$@ $(^F))
 
 package: public mumble-www
        7z a mumble-www.7z public mumble-www

The rule prerequisites are not available in the current directory. I'm no make master, so I'm sure there's a more elegant solution than mine.

The go server was dropped quite some time ago, so this is no longer an issue.