Skip to content

Commit

Permalink
refactor(wasm): makefile command location
Browse files Browse the repository at this point in the history
  • Loading branch information
gregnr committed Feb 21, 2024
1 parent 256f406 commit 0f42732
Showing 1 changed file with 15 additions and 14 deletions.
29 changes: 15 additions & 14 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -35,20 +35,6 @@ else
OUT_FILES := build/Release/queryparser.node $(wildcard build/*)
endif

build: $(OUT_FILES)

build-cache: $(LIBPG_QUERY_ARCHIVE) $(LIBPG_QUERY_HEADER)

rebuild: clean build

rebuild-cache: clean-cache build-cache

clean:
-@ rm -r $(OUT_FILES) > /dev/null 2>&1

clean-cache:
-@ rm -rf $(LIBPG_QUERY_DIR)

# Clone libpg_query source (lives in CACHE_DIR)
$(LIBPG_QUERY_DIR):
mkdir -p $(CACHE_DIR)
Expand Down Expand Up @@ -87,4 +73,19 @@ else
yarn rebuild
endif

# Commands
build: $(OUT_FILES)

build-cache: $(LIBPG_QUERY_ARCHIVE) $(LIBPG_QUERY_HEADER)

rebuild: clean build

rebuild-cache: clean-cache build-cache

clean:
-@ rm -r $(OUT_FILES) > /dev/null 2>&1

clean-cache:
-@ rm -rf $(LIBPG_QUERY_DIR)

.PHONY: build build-cache rebuild rebuild-cache clean clean-cache

0 comments on commit 0f42732

Please sign in to comment.