rmenu/Makefile

33 lines
694 B
Makefile
Raw Normal View History

# RMenu Installation/Deployment Configuration
CARGO=cargo
FLAGS=--release
DEST=$(HOME)/.config/rmenu
2023-08-08 01:07:20 +02:00
INSTALL=$(CARGO_PATH)/bin
2023-08-09 00:08:10 +02:00
SWAY_CONF=/etc/sway/config.d
all: install sway
sway:
echo "Installing Configuration for Sway"
sudo cp -vf ./rmenu/public/99-rmenu-sway.conf ${SWAY_CONF}/.
install: build deploy
deploy:
mkdir -p ${DEST}
2023-08-08 01:07:20 +02:00
cp -vf ./target/release/rmenu ${INSTALL}/rmenu
cp -vf ./target/release/desktop ${DEST}/drun
cp -vf ./target/release/run ${DEST}/run
cp -vf ./rmenu/public/config.yaml ${DEST}/config.yaml
build: build-rmenu build-plugins
build-rmenu:
${CARGO} build -p rmenu ${FLAGS}
build-plugins:
${CARGO} build -p run ${FLAGS}
${CARGO} build -p desktop ${FLAGS}