Add all and clean targets to makefile
authorMark McLoughlin <markmc@redhat.com>
Tue, 14 Jan 2014 14:02:34 +0000 (14:02 +0000)
committerMark McLoughlin <markmc@redhat.com>
Tue, 14 Jan 2014 14:02:34 +0000 (14:02 +0000)
Just for convenience, particularly 'make clean'.

Change-Id: Ic9964ace7fb4c675e84b3b9343fc8239abca44ac

Makefile

index cdfd9a4..7da0221 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,15 @@
+generated_templates =                \
+        overcloud.yaml               \
+        undercloud-vm.yaml           \
+        undercloud-bm.yaml           \
+        undercloud-vm-tuskar.yaml    \
+        undercloud-vm-ironic.yaml
+
 # Files included in overcloud-source.yaml via FileInclude
 overcloud_source_deps = nova-compute-instance.yaml
 
+all: $(generated_templates)
+
 overcloud.yaml: overcloud-source.yaml swift-source.yaml $(overcloud_source_deps)
        python ./tripleo_heat_merge/merge.py overcloud-source.yaml swift-source.yaml > $@.tmp
        mv $@.tmp $@
@@ -23,3 +32,6 @@ undercloud-vm-ironic.yaml: undercloud-source.yaml undercloud-vm-source.yaml iron
 
 test:
        @bash test_merge.bash
+
+clean:
+       rm -f $(generated_templates)