mirror of
https://github.com/imgurbot12/rmenu.git
synced 2024-11-10 11:33:48 +01:00
35 lines
773 B
Makefile
35 lines
773 B
Makefile
# RMenu Installation/Deployment Configuration
|
|
|
|
CARGO=cargo
|
|
FLAGS=--release
|
|
|
|
DEST=$(HOME)/.config/rmenu
|
|
INSTALL=$(CARGO_PATH)/bin
|
|
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}
|
|
cp -vf ./target/release/rmenu ${INSTALL}/rmenu
|
|
cp -vf ./target/release/desktop ${DEST}/drun
|
|
cp -vf ./target/release/run ${DEST}/run
|
|
cp -vf ./target/release/audio ${DEST}/audio
|
|
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}
|
|
${CARGO} build -p audio ${FLAGS}
|