2023-08-08 00:20:20 +02:00
|
|
|
# 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
|
|
|
|
|
2023-08-25 23:53:23 +02:00
|
|
|
#: deploy sway configuration to sway config folder
|
2023-08-09 00:08:10 +02:00
|
|
|
sway:
|
|
|
|
echo "Installing Configuration for Sway"
|
|
|
|
sudo cp -vf ./rmenu/public/99-rmenu-sway.conf ${SWAY_CONF}/.
|
2023-08-08 00:20:20 +02:00
|
|
|
|
2023-08-25 23:53:23 +02:00
|
|
|
#: clean remaining build artifcats
|
|
|
|
clean:
|
|
|
|
rm -rf $(PWD)/rmenu.zip /tmp/rmenu-build
|
|
|
|
${CARGO} clean
|
|
|
|
|
|
|
|
#: build and locally deploy rmenu
|
2023-08-08 00:20:20 +02:00
|
|
|
install: build deploy
|
|
|
|
|
2023-08-25 23:53:23 +02:00
|
|
|
#: build rmenu components and zip into final artifact
|
|
|
|
package: DEST=/tmp/rmenu-build/config
|
|
|
|
package: INSTALL=/tmp/rmenu-build/bin
|
|
|
|
package: build deploy
|
|
|
|
cd /tmp/rmenu-build && zip -r $(PWD)/rmenu.zip .
|
|
|
|
rm -rf /tmp/rmenu-build
|
|
|
|
|
|
|
|
#: locally deploy build-artifcats into their designated locations
|
2023-08-08 00:20:20 +02:00
|
|
|
deploy:
|
2023-08-25 23:53:23 +02:00
|
|
|
mkdir -p ${DEST} ${INSTALL}
|
2023-08-20 23:06:17 +02:00
|
|
|
cp -vfr themes ${DEST}/themes
|
2023-08-20 02:36:47 +02:00
|
|
|
cp -vfr other-plugins/* ${DEST}/.
|
2023-08-08 01:07:20 +02:00
|
|
|
cp -vf ./target/release/rmenu ${INSTALL}/rmenu
|
2023-08-20 00:24:44 +02:00
|
|
|
cp -vf ./target/release/rmenu-build ${INSTALL}/rmenu-build
|
2023-08-15 02:42:50 +02:00
|
|
|
cp -vf ./target/release/desktop ${DEST}/rmenu-desktop
|
|
|
|
cp -vf ./target/release/run ${DEST}/rmenu-run
|
|
|
|
cp -vf ./target/release/network ${DEST}/rmenu-network
|
2023-08-15 07:11:14 +02:00
|
|
|
cp -vf ./target/release/window ${DEST}/rmenu-window
|
2023-08-08 00:20:20 +02:00
|
|
|
cp -vf ./rmenu/public/config.yaml ${DEST}/config.yaml
|
2023-08-20 23:06:17 +02:00
|
|
|
ln -sf ${DEST}/themes/dark.css ${DEST}/style.css
|
2023-08-08 00:20:20 +02:00
|
|
|
|
2023-08-25 23:53:23 +02:00
|
|
|
#: build rmenu and its various plugins
|
2023-08-08 00:20:20 +02:00
|
|
|
build: build-rmenu build-plugins
|
|
|
|
|
2023-08-25 23:53:23 +02:00
|
|
|
#: build rmenu and rmenu-build binaries
|
2023-08-08 00:20:20 +02:00
|
|
|
build-rmenu:
|
|
|
|
${CARGO} build -p rmenu ${FLAGS}
|
2023-08-20 00:24:44 +02:00
|
|
|
${CARGO} build -p rmenu-plugin --bin rmenu-build ${FLAGS}
|
2023-08-08 00:20:20 +02:00
|
|
|
|
2023-08-25 23:53:23 +02:00
|
|
|
#: build rmenu plugin binaries
|
2023-08-08 00:20:20 +02:00
|
|
|
build-plugins:
|
|
|
|
${CARGO} build -p run ${FLAGS}
|
|
|
|
${CARGO} build -p desktop ${FLAGS}
|
2023-08-15 02:42:50 +02:00
|
|
|
${CARGO} build -p network ${FLAGS}
|
2023-08-15 07:11:14 +02:00
|
|
|
${CARGO} build -p window ${FLAGS}
|