Files

21 lines
576 B
Makefile

.PHONY: help all phar deb docker
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\n \e[3mdocker\e[0m — build container image"
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/slotdbd.phar ./slotdbd.phar
deb:
fakeroot -- dpack build --type deb
docker:
docker build -t dev.noccylabs.info/slotdb/slotdb:latest .