Add group commands

This commit is contained in:
2025-03-13 22:29:05 +01:00
parent dda2a7b4ae
commit 680daec300
7 changed files with 141 additions and 5 deletions

View File

@ -1,13 +1,18 @@
.PHONY: help all phar
.PHONY: help all phar deb
help:
@echo "\e[1mTargets:\e[0m"
@echo " \e[3mall\e[0m — build everything\n \e[3mphar\e[0m — build the phar"
@echo " \e[3mall\e[0m — build everything\n \e[3mphar\e[0m — build the phar\n \e[3mdeb\e[0m — build deb package"
all: phar
phar:
box compile
echo "<?php return [ 'version' => '$(shell git describe --tags)', 'builddate' => '$(shell date)' ];" > src/build.php \
&& box compile \
&& echo "yay"
rm -f src/build.php
mv bin/slotcli.phar ./slotcli.phar
deb:
dpack build --type deb