forked from thomasvandoren/puppet-redis
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
46 lines (40 loc) · 879 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#
# Common puppet tasks.
#
# author: Thomas Van Doren
#
ECHO=@echo
GIT=git
PUPPET=puppet
RAKE=@rake
RM=@rm
.PHONY: help
help:
$(ECHO) "make <target>"
$(ECHO) ""
$(ECHO) " Common puppet tasks."
$(ECHO) ""
$(ECHO) " check - parse and validate all manifests."
$(ECHO) ""
$(ECHO) " build - build the tar ball for puppet forge."
$(ECHO) ""
$(ECHO) " clean - remove build artifacts."
$(ECHO) ""
$(ECHO) " git-clean - remove *all* unversioned files."
$(ECHO) ""
$(ECHO) " help - print this help page."
$(ECHO) ""
.PHONY: check
check:
$(RAKE) || true
@find . -type f -name '*.pp' -exec $(PUPPET) parser validate {} ';'
@find tests -type f -name '*.pp' -exec $(PUPPET) apply --noop --verbose {} ';'
.PHONY: build
build:
$(PUPPET) module build .
.PHONY: clean
clean:
$(RM) -fr pkg
.PHONY: git-clean
git-clean:
$(GIT) clean -dxf