diff Makefile @ 29031:e63dfbbdbd07 stable

make: turn ubuntu docker into template This allows us to easily add more ubuntu docker targets (which following patches will do). Also, we no longer need the mkdir command.
author Sean Farley <sean@farley.io>
date Tue, 26 Apr 2016 23:33:17 -0700
parents db5084d27df5
children 8d1d5b0058cb
line wrap: on
line diff
--- a/Makefile	Wed Apr 27 14:02:18 2016 -0700
+++ b/Makefile	Tue Apr 26 23:33:17 2016 -0700
@@ -181,8 +181,10 @@
 	mkdir -p packages/debian-jessie
 	contrib/dockerdeb debian jessie
 
-docker-ubuntu-trusty:
-	mkdir -p packages/ubuntu-trusty
+contrib/docker/ubuntu-%: contrib/docker/ubuntu.template
+	sed "s/__CODENAME__/$*/" $< > $@
+
+docker-ubuntu-trusty: contrib/docker/ubuntu-trusty
 	contrib/dockerdeb ubuntu trusty
 
 fedora20: