Skip to content

Commit 48d01c8

Browse files
committed
fix make issues that caused npm package example builds to fail
1 parent a3e541d commit 48d01c8

File tree

5 files changed

+8
-10
lines changed

5 files changed

+8
-10
lines changed

.gitignore

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ source/twr-gcc-unit-test/a.exe
33
source/out/
44
examples/.parcel-cache/
55
examples/dist/**
6+
examples/**/out/
67
examples/**/*.o
78
examples/**/*.bc
89
examples/**/*.js
@@ -14,5 +15,3 @@ lib-c/twr.a
1415
lib-c/twrd.a
1516
lib-js/
1617
azure/
17-
examples/lib/out/*
18-
examples/pong/out/*

examples/lib/Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ TWRCFLAGS := --target=wasm32 -nostdinc -nostdlib -isystem ../../include
1818
CFLAGS := -c -Wall -O3 $(TWRCFLAGS)
1919
CFLAGS_DEBUG := -c -Wall -g -O0 $(TWRCFLAGS)
2020

21+
$(info $(shell mkdir -p out))
22+
2123
.PHONY: pre-build default
2224

2325
default: pre-build twrlibex.js testex.wasm testex-a.wasm

examples/tests-audio/Makefile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ CPPLIB := ../twr-cpp
44
CFLAGS := -c -Wall -O3 $(TWRCFLAGS) -I $(CPPLIB)
55
CFLAGS_DEBUG := -c -Wall -g -O0 $(TWRCFLAGS) -I $(CPPLIB)
66

7-
7+
$(info $(shell mkdir -p out))
88

99
.PHONY: default
1010

@@ -29,4 +29,5 @@ tests-audio-a.wasm: tests-audio-a.o
2929

3030
clean:
3131
rm -f *.o
32-
rm -f *.wasm
32+
rm -f *.wasm
33+
rm -f out/*

examples/tests-audio/out/timerLib.d.ts

Lines changed: 0 additions & 6 deletions
This file was deleted.

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
"walkthrough",
1515
"api",
1616
"canvas",
17+
"audio",
1718
"2d",
1819
"draw",
1920
"example",
@@ -40,6 +41,7 @@
4041
"./examples/*/*.h",
4142
"./examples/*/*.ts",
4243
"./examples/*/*.js",
44+
"./examples/*/out/*.js",
4345
"./examples/*/*.txt",
4446
"./examples/*/*.wasm",
4547
"./examples/*/package.json",

0 commit comments

Comments
 (0)