feat: improved makefile w/ package option. may start releases soon

This commit is contained in:
imgurbot12 2023-08-25 14:53:23 -07:00
parent 553cff8075
commit 4d8b895359

View File

@ -9,14 +9,29 @@ SWAY_CONF=/etc/sway/config.d
all: install sway
#: deploy sway configuration to sway config folder
sway:
echo "Installing Configuration for Sway"
sudo cp -vf ./rmenu/public/99-rmenu-sway.conf ${SWAY_CONF}/.
#: clean remaining build artifcats
clean:
rm -rf $(PWD)/rmenu.zip /tmp/rmenu-build
${CARGO} clean
#: build and locally deploy rmenu
install: build deploy
#: 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
deploy:
mkdir -p ${DEST}
mkdir -p ${DEST} ${INSTALL}
cp -vfr themes ${DEST}/themes
cp -vfr other-plugins/* ${DEST}/.
cp -vf ./target/release/rmenu ${INSTALL}/rmenu
@ -28,12 +43,15 @@ deploy:
cp -vf ./rmenu/public/config.yaml ${DEST}/config.yaml
ln -sf ${DEST}/themes/dark.css ${DEST}/style.css
#: build rmenu and its various plugins
build: build-rmenu build-plugins
#: build rmenu and rmenu-build binaries
build-rmenu:
${CARGO} build -p rmenu ${FLAGS}
${CARGO} build -p rmenu-plugin --bin rmenu-build ${FLAGS}
#: build rmenu plugin binaries
build-plugins:
${CARGO} build -p run ${FLAGS}
${CARGO} build -p desktop ${FLAGS}