Skip to content

Commit bf84600

Browse files
committed
Fixed up the multi-platform Makefile
1 parent 131242d commit bf84600

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

Makefile

+9-9
Original file line numberDiff line numberDiff line change
@@ -20,24 +20,24 @@ BUILD_LINE=GOOS=$(GOOS) GOARCH=$(GOARCH) go build -o $@ $(SOURCES)
2020
# Build binary for all platforms
2121
all: $(addprefix $(BUILDS)/, ccbootutil ccbootutil.osx ccbootutil.exe)
2222

23-
$(BUILDS)/ccbootutil: $(SOURCES)
24-
$(BUILDS)/ccbootutil: GOOS=linux GOARCH=amd64
23+
$(BUILDS)/ccbootutil: GOOS=linux
24+
$(BUILDS)/ccbootutil: GOARCH=amd64
2525
$(BUILDS)/ccbootutil: BINNAME=ccbootutil
26-
$(BUILDS)/ccbootutil:
26+
$(BUILDS)/ccbootutil: $(SOURCES) Makefile
2727
$(MKDIR_LINE)
2828
$(BUILD_LINE)
2929

30-
$(BUILDS)/ccbootutil.osx: $(SOURCES)
31-
$(BUILDS)/ccbootutil.osx: GOOS=darwin GOARCH=amd64
30+
$(BUILDS)/ccbootutil.osx: GOOS=darwin
31+
$(BUILDS)/ccbootutil.osx: GOARCH=amd64
3232
$(BUILDS)/ccbootutil.osx: BINNAME=ccbootutil.osx
33-
$(BUILDS)/ccbootutil.osx:
33+
$(BUILDS)/ccbootutil.osx: $(SOURCES) Makefile
3434
$(MKDIR_LINE)
3535
$(BUILD_LINE)
3636

37-
$(BUILDS)/ccbootutil.exe: $(SOURCES)
38-
$(BUILDS)/ccbootutil.exe: GOOS=windows GOARCH=386
37+
$(BUILDS)/ccbootutil.exe: GOOS=windows
38+
$(BUILDS)/ccbootutil.exe: GOARCH=386
3939
$(BUILDS)/ccbootutil.exe: BINNAME=ccbootutil.exe
40-
$(BUILDS)/ccbootutil.exe:
40+
$(BUILDS)/ccbootutil.exe: $(SOURCES) Makefile
4141
$(MKDIR_LINE)
4242
$(BUILD_LINE)
4343

0 commit comments

Comments
 (0)