forked from cfengine/design-center
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
38 lines (29 loc) · 822 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
ifeq ($(DESTDIR),)
DESTDIR:=/var/cfengine/share/NovaBase
endif
ifeq ($(GIT),)
GIT:=git
endif
ifeq ($(BUNDLEREF),)
BUNDLEREF:=master
endif
UNAME := $(shell uname)
ifeq ($(UNAME), SunOS)
I:=/usr/local/bin/install
else
I:=/usr/bin/install
endif
check:
cd tools/test; make api_selftest_junit NOIGNORE=1
# NOTE: extract bundle with git clone -b $(BUNDLEREF) $(DESTDIR)/design-center.bundle
install-bundle:
mkdir -p $(DESTDIR)
$(GIT) bundle create $(DESTDIR)/design-center.bundle $(BUNDLEREF)
install-sketches:
/bin/mkdir -p $(DESTDIR)
# disabled # $(GIT) ls-files sketches | $(GIT) checkout-index --stdin -f --prefix=$(DESTDIR)/
$(I) -d $(DESTDIR)
/bin/cp -rp ./sketches $(DESTDIR)/
install-tools:
cd tools/cf-sketch; make install-full PREFIX=$(DESTDIR) GIT=$(GIT)
install: install-sketches install-tools