Skip to content

Commit

Permalink
cleanup makefile
Browse files Browse the repository at this point in the history
nice names for things
  • Loading branch information
0xcaff committed Sep 5, 2024
1 parent 37998a0 commit 79a3f52
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
steps:
- uses: actions/checkout@v4

- run: make load_vendored
- run: make vendor

- run: cargo build --target ${{ matrix.target }} --release

Expand Down
12 changes: 6 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ packages/vendor/libduckdb-sys:
mkdir -p packages/vendor/libduckdb-sys
curl -L https://crates.io/api/v1/crates/libduckdb-sys/1.0.0/download | tar --strip-components=1 -xz -C packages/vendor/libduckdb-sys

load_vendored: packages/vendor/duckdb packages/vendor/duckdb-loadable-macros packages/vendor/libduckdb-sys
vendor: packages/vendor/duckdb packages/vendor/duckdb-loadable-macros packages/vendor/libduckdb-sys

debug:
debug: vendor
cargo build --package duckdb_protobuf
cargo run \
--package duckdb_metadata_bin \
Expand All @@ -44,7 +44,7 @@ debug:
--duckdb-version $(DUCKDB_VERSION) \
--platform $(DUCKDB_PLATFORM)

release:
release: vendor
cargo build --package duckdb_protobuf --release
cargo run \
--package duckdb_metadata_bin \
Expand All @@ -59,9 +59,9 @@ release:
test: release
cargo test --package duckdb_protobuf

run: release
install: release
duckdb \
-unsigned \
-cmd "LOAD 'target/release/protobuf.duckdb_extension'"
-cmd "FORCE INSTALL 'target/release/protobuf.duckdb_extension'"

.PHONY: debug release test load_vendored run-debug
.PHONY: test release debug vendor

0 comments on commit 79a3f52

Please sign in to comment.