From 7de9a2cdb8e131c65dbaa3c7f9dac2bcb1824bbc Mon Sep 17 00:00:00 2001 From: "Brian J. Tarricone" Date: Wed, 4 May 2022 00:51:14 -0700 Subject: [PATCH] Tweak makefile --- Makefile | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefile index cd5c6bb..a4ec481 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -.PHONY: all build build-dev install clean uninstall run +.PHONY: all release dev install clean uninstall run run-dialog PREFIX ?= /usr/local BINDIR ?= $(PREFIX)/bin @@ -17,15 +17,15 @@ INSTALL ?= install DEV_LOG_LEVEL = debug -all: build +all: release -build: +release: HELPER_DIR=$(HELPER_DIR) cargo build --release -build-dev: +dev: HELPER_DIR=target/debug cargo build -install: build +install: release $(INSTALL) -m 0755 -d $(BINDIR) $(HELPER_DIR) $(CONFIG_DIR) $(INSTALL) -m 0755 target/release/bscreensaver $(BINDIR) $(INSTALL) -m 0755 $(addprefix target/release/,$(HELPERS)) $(HELPER_DIR) @@ -39,7 +39,7 @@ uninstall: rmdir -p $(BINDIR) $(HELPER_DIR) || true rmdir -p $(PREFIX) || true -run: build-dev +run: dev BSCREENSAVER_LOCAL_DEV=1 \ RUST_BACKTRACE=1 \ BSCREENSAVER_LOG=$(DEV_LOG_LEVEL) \