Add group commands
This commit is contained in:
11
Makefile
11
Makefile
@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user