millelibri/Makefile

28 lines
425 B
Makefile
Raw Permalink Normal View History

2023-01-07 20:40:21 +00:00
NAME=zlib-searcher
PREFIX ?= /usr/local/bin
TARGET ?= debug
.PHONY: all frontend_preinstall frontend build clean
all: build
frontend_preinstall:
pnpm -C frontend install
frontend:
pnpm -C frontend run build
build: frontend
ifeq (${TARGET}, release)
cargo build -p zlib-searcher --release
else
cargo build -p zlib-searcher
endif
clean:
cargo clean
rm -rf release
releases:
cd scripts && ./build_release.sh -a a