~smoser/cloud-init/lp-1077700

« back to all changes in this revision

Viewing changes to Makefile

  • Committer: Joshua Harlow
  • Date: 2012-11-08 05:00:33 UTC
  • mto: This revision was merged to the branch mainline in revision 706.
  • Revision ID: harlowja@yahoo-inc.com-20121108050033-ahyuopeskza34ph5
Add a makefile yaml checking target
and fix the cases where the cc yaml
is not correct.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
PY_FILES=$(shell find cloudinit bin tests tools -name "*.py" -type f )
3
3
PY_FILES+="bin/cloud-init"
4
4
 
 
5
YAML_FILES=$(shell find cloudinit bin tests tools -name "*.yaml" -type f )
 
6
YAML_FILES+=$(shell find doc/examples -name "cloud-config*.txt" -type f )
 
7
 
 
8
 
5
9
all: test
6
10
 
7
11
pep8:
23
27
        rm -rf /var/log/cloud-init.log \
24
28
                   /var/lib/cloud/
25
29
 
 
30
yaml:
 
31
        @$(CWD)/tools/validate-yaml.py $(YAML_FILES)
 
32
                   
26
33
rpm:
27
34
        ./packages/brpm
28
35
 
29
36
deb:
30
37
        ./packages/bddeb
31
38
 
32
 
.PHONY: test pylint pyflakes 2to3 clean pep8 rpm deb
 
39
.PHONY: test pylint pyflakes 2to3 clean pep8 rpm deb yaml
33
40