BIN = target/release BAR = topbar DESKTOP = init FILE_MANAGER = editor LAUNCHER = launcher LAYOUT = layout-manager BAR_ORIG = $(BIN)/$(BAR) DESKTOP_ORIG = $(BIN)/$(DESKTOP) FILE_MANAGER_ORIG = $(BIN)/$(FILE_MANAGER) LAUNCHER_ORIG = $(BIN)/$(LAUNCHER) LAYOUT_ORIG = $(BIN)/$(LAYOUT) BAR_DEST = /usr/local/bin/$(BAR) DESKTOP_DEST = $(HOME)/.config/river/$(DESKTOP) FILE_MANAGER_DEST = /usr/local/bin/$(FILE_MANAGER) LAUNCHER_DEST = /usr/local/bin/$(LAUNCHER) LAYOUT_DEST = /usr/local/bin/$(LAYOUT) all: build install bar diropen launcher layout build: cargo build --release install: build install -Dm755 $(DESKTOP_ORIG) $(DESKTOP_DEST) bar: build sudo install -Dm755 $(BAR_ORIG) $(BAR_DEST) diropen: build sudo install -Dm755 $(FILE_MANAGER_ORIG) $(FILE_MANAGER_DEST) launcher: build sudo install -Dm755 $(LAUNCHER_ORIG) $(LAUNCHER_DEST) layout: build sudo install -Dm755 $(LAYOUT_ORIG) $(LAYOUT_DEST) clean: cargo clean .PHONY: all build install clean :