summaryrefslogtreecommitdiffhomepage
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile12
1 files changed, 8 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 9c9840f..1cae15d 100644
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,9 @@
DESTDIR=
+DISTROS=debian8 debian9 ubuntu1604lts ubuntu1710
+VERSION=$(shell dpkg-parsechangelog --show-field Version)
all:
- make -C src
+ make -C src VERSION=$(VERSION)
install: all
mkdir -p $(DESTDIR)/var/www/webbox
@@ -29,11 +31,13 @@ deb:
deb-src:
dpkg-source -b .
-debs: deb-src
- # TODO: build for different OSes
+$(DISTROS): deb-src
+ sudo pbuilder build --basetgz /var/cache/pbuilder/$@.tgz --buildresult result/$@ ../webbox_$(VERSION).dsc ; \
+
+debs: $(DISTROS)
clean:
make -C src clean
dh_clean
-.PHONY: clean
+.PHONY: clean $(DISTROS)