forked from cfengine/masterfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
31 lines (24 loc) · 968 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
PWD:=$(shell pwd)
ifeq ($(CORE),)
CORE:=$(PWD)/../core/
endif
ifeq ($(DESTDIR),)
DESTDIR:=/var/cfengine/masterfiles
endif
INSTALL = /usr/bin/install
INSTALL_DATA = ${INSTALL} -m 600
INSTALL_DIR = ${INSTALL} -m 750 -d
copy:
cp $(CORE)/tests/acceptance/default.cf.sub tests/acceptance
cp $(CORE)/tests/acceptance/testall tests/acceptance
check: copy
cd tests/acceptance && ./testall --agent=$(CORE)/cf-agent/cf-agent --cfpromises=$(CORE)/cf-promises/cf-promises --cfserverd=$(CORE)/cf-serverd/cf-serverd --cfkey=$(CORE)/cf-key/cf-key
checklog: copy
cd tests/acceptance && ./testall --agent=$(CORE)/cf-agent/cf-agent --cfpromises=$(CORE)/cf-promises/cf-promises --cfserverd=$(CORE)/cf-serverd/cf-serverd --cfkey=$(CORE)/cf-key/cf-key --printlog
install:
for d in "" controls inventory lib/3.5 lib/3.6 services sketches/meta update; do \
$(INSTALL_DIR) $(DESTDIR)/$$d; \
for f in $$d/*.cf; do\
$(INSTALL_DATA) $$f $(DESTDIR)/$$f; \
done; \
done;