-
Notifications
You must be signed in to change notification settings - Fork 75
/
Makefile
38 lines (32 loc) · 1.16 KB
/
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
DESTDIR:=
PREFIX:=/usr/local
CLOUD9_DIR:=/var/lib
CLOUD9_NAME:=/cloud9
JEKYLL:=$(shell which jekyll)
HTMLPROOFER:=$(shell which htmlproofer)
all: ./bone101
./bone101: Makefile _config.yml
ifdef JEKYLL
$(JEKYLL) build -d ./bone101
else
$(error jekyll not installed)
endif
clean:
rm -rf ./bone101
test:
ifdef HTMLPROOFER
$(HTMLPROOFER) "./bone101" --disable-external --alt-ignore "/.*/" --only-4xx --url-ignore "/#.*/" --url-swap "/bone101:" --file-ignore "/Support/bone101/UI/","/Support/bone101/PBUI/","/Support/bonecard/create/"
else
@echo htmlproofer not found
endif
install: ./bone101
install -m 0775 -d $(DESTDIR)$(PREFIX)/share/bone101
cp -dr --preserve=mode,timestamp ./bone101/* $(DESTDIR)$(PREFIX)/share/bone101/
install -m 0775 -d $(DESTDIR)$(PREFIX)/share/applications
cp --preserve=mode,timestamp bone101.desktop $(DESTDIR)$(PREFIX)/share/applications/
install -m 0755 -d $(DESTDIR)/home/debian/Desktop
cp --preserve=mode,timestamp bone101.desktop $(DESTDIR)/home/debian/Desktop/
chown 1000:1000 $(DESTDIR)/home/debian
chown 1000:1000 $(DESTDIR)/home/debian/Desktop
chown 1000:1000 $(DESTDIR)/home/debian/Desktop/bone101.desktop
.PHONY: clean test install