19 lines
456 B
Makefile
19 lines
456 B
Makefile
.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\n \e[3mdeb\e[0m — build deb package"
|
|
|
|
all: phar
|
|
|
|
phar:
|
|
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:
|
|
fakeroot -- dpack build --type deb
|
|
|