[PATCH stable] debian: use a wildcard target for docker-debian-$codename
Augie Fackler
raf at durin42.com
Sat Apr 22 18:19:32 UTC 2017
# HG changeset patch
# User Augie Fackler <augie at google.com>
# Date 1492879857 14400
# Sat Apr 22 12:50:57 2017 -0400
# Branch stable
# Node ID ad14d79e419fb860ee59071d7c557810f913a4cc
# Parent b5b6bd456279f011ec94f2a16a708d2833dd8119
debian: use a wildcard target for docker-debian-$codename
This makes it easier to build packages for stretch as well as jessie.
diff --git a/Makefile b/Makefile
--- a/Makefile
+++ b/Makefile
@@ -193,9 +193,11 @@ deb:
ppa:
contrib/builddeb --source-only
-docker-debian-jessie:
- mkdir -p packages/debian-jessie
- contrib/dockerdeb debian jessie
+# Use the code name here, eg jessie for debian 8 and stretch for
+# debian 9
+docker-debian-%:
+ mkdir -p packages/debian-$*
+ contrib/dockerdeb debian $*
contrib/docker/ubuntu-%: contrib/docker/ubuntu.template
sed "s/__CODENAME__/$*/" $< > $@
@@ -273,7 +275,7 @@ docker-centos7:
.PHONY: help all local build doc cleanbutpackages clean install install-bin \
install-doc install-home install-home-bin install-home-doc \
dist dist-notests check tests check-code update-pot \
- osx deb ppa docker-debian-jessie \
+ osx deb ppa docker-debian-% \
docker-ubuntu-trusty docker-ubuntu-trusty-ppa \
docker-ubuntu-xenial docker-ubuntu-xenial-ppa \
docker-ubuntu-yakkety docker-ubuntu-yakkety-ppa \
More information about the Mercurial-devel
mailing list