Skip to content

Commit

Permalink
Support classic installation via make
Browse files Browse the repository at this point in the history
The classic `make` and `make install` steps should work for installing
puzzlefs, so:
1. change the default make action to do a release build
2. add an install target in the Makefile

Signed-off-by: Ariel Miculas <[email protected]>
  • Loading branch information
ariel-miculas committed Jun 29, 2024
1 parent 591ffec commit fe47579
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
SRC=$(shell find . -name \*.rs | grep -v "^./target")

.PHONY: debug
debug:
cargo build
PREFIX?=/usr/local
ROOT_SBINDIR?=$(PREFIX)/sbin
INSTALL=install

.PHONY: release
release:
cargo build --release

.PHONY: debug
debug:
cargo build

.PHONY: check
check:
RUST_BACKTRACE=1 cargo test -- --nocapture
Expand All @@ -24,3 +27,6 @@ fmt:
.PHONY: clean
clean:
-cargo clean

install:
$(INSTALL) -m0755 -D target/release/puzzlefs -t $(ROOT_SBINDIR)

0 comments on commit fe47579

Please sign in to comment.