Skip to content

Commit 1dd4f09

Browse files
committed
Fix path
1 parent 5519302 commit 1dd4f09

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

Makefile

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,24 @@
11
CWD ?= $(realpath $(CURDIR))
2+
PROJ = mongoose/tutorials/http/http-server
23
VERSION ?= 7.18
34

45
all: linux macos windows
56

67
linux: mongoose
7-
$(MAKE) -C mongoose/examples/http-server example CC=musl-gcc CFLAGS_EXTRA="-static -s -Os"
8-
mv mongoose/examples/http-server/example mongoose_$@
8+
$(MAKE) -C $(PROJ) example CC=musl-gcc CFLAGS_EXTRA="-static -s -Os"
9+
mv $(PROJ)/example mongoose_$@
910

1011
windows: mongoose
11-
$(MAKE) -C mongoose/examples/http-server example \
12-
CC="docker run --platform linux/amd64 --rm -v $(CWD):$(CWD) -w $(CWD)/mongoose/examples/http-server mdashnet/vc98 wine cl" \
12+
$(MAKE) -C $(PROJ) example \
13+
CC="docker run --platform linux/amd64 --rm -v $(CWD):$(CWD) -w $(CWD)/$(PROJ) mdashnet/vc98 wine cl" \
1314
CFLAGS="/MD /nologo /Os" \
1415
CFLAGS_EXTRA="-UMG_ENABLE_IPV6" \
1516
OUT=/Femongoose.exe
16-
mv mongoose/examples/http-server/mongoose.exe .
17+
mv $(PROJ)/mongoose.exe .
1718

1819
macos: mongoose
19-
$(MAKE) -C mongoose/examples/http-server example CFLAGS_EXTRA="-Os"
20-
mv mongoose/examples/http-server/example mongoose_$@
20+
$(MAKE) -C $(PROJ) example CFLAGS_EXTRA="-Os"
21+
mv $(PROJ)/example mongoose_$@
2122

2223
version:
2324
echo $(VERSION)

0 commit comments

Comments
 (0)