-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathMakefile
37 lines (25 loc) · 863 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
NAME=vim
TEST_FILES = $(wildcard tests/*.pp)
test: $(NAME) dependencies
for file in $(TEST_FILES); do \
puppet apply --modulepath=`pwd`/$(NAME) --noop $$file || exit 1; \
done
# FIXME: document then remove the no-documentation-check
check: $(NAME)
puppet-lint --with-filename --fail-on-warnings --no-documentation-check --no-80chars-check vim/manifests/*.pp
# do an ugly symlink so we can rely on the name being known
$(NAME):
ln -sf . $(NAME)
DEPENDENCIES = concat stdlib vcsrepo wget
dependencies: $(DEPENDENCIES)
concat:
git clone [email protected]:puppetlabs/puppet-concat.git concat
stdlib:
git clone [email protected]:puppetlabs/puppetlabs-stdlib.git stdlib
vcsrepo:
git clone [email protected]:puppetlabs/puppetlabs-vcsrepo.git vcsrepo
wget:
git clone [email protected]:maestrodev/puppet-wget.git wget
clean:
rm $(NAME)
rm -rf $(DEPENDENCIES)