diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 12 |
1 files changed, 8 insertions, 4 deletions
@@ -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) |