Skip to content

Commit 0f42732

Browse files
committed
refactor(wasm): makefile command location
1 parent 256f406 commit 0f42732

File tree

1 file changed

+15
-14
lines changed

1 file changed

+15
-14
lines changed

Makefile

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -35,20 +35,6 @@ else
3535
OUT_FILES := build/Release/queryparser.node $(wildcard build/*)
3636
endif
3737

38-
build: $(OUT_FILES)
39-
40-
build-cache: $(LIBPG_QUERY_ARCHIVE) $(LIBPG_QUERY_HEADER)
41-
42-
rebuild: clean build
43-
44-
rebuild-cache: clean-cache build-cache
45-
46-
clean:
47-
-@ rm -r $(OUT_FILES) > /dev/null 2>&1
48-
49-
clean-cache:
50-
-@ rm -rf $(LIBPG_QUERY_DIR)
51-
5238
# Clone libpg_query source (lives in CACHE_DIR)
5339
$(LIBPG_QUERY_DIR):
5440
mkdir -p $(CACHE_DIR)
@@ -87,4 +73,19 @@ else
8773
yarn rebuild
8874
endif
8975

76+
# Commands
77+
build: $(OUT_FILES)
78+
79+
build-cache: $(LIBPG_QUERY_ARCHIVE) $(LIBPG_QUERY_HEADER)
80+
81+
rebuild: clean build
82+
83+
rebuild-cache: clean-cache build-cache
84+
85+
clean:
86+
-@ rm -r $(OUT_FILES) > /dev/null 2>&1
87+
88+
clean-cache:
89+
-@ rm -rf $(LIBPG_QUERY_DIR)
90+
9091
.PHONY: build build-cache rebuild rebuild-cache clean clean-cache

0 commit comments

Comments
 (0)