-
Notifications
You must be signed in to change notification settings - Fork 12
/
Makefile
44 lines (37 loc) · 1.21 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
39
40
41
42
43
44
include ../defines.mk
include ../common.mk
SRCDIR=../..
all: proxmoxlib.js Nodes.pm pvemanagerlib.js pvemanager-mobile.js
.PHONY: install
install:
install -d ${TOOLKITDIR}
install -m 0644 proxmoxlib.js ${TOOLKITDIR}
install -d ${PERLLIBDIR}/PVE/API2
install -m 0644 Nodes.pm ${PERLLIBDIR}/PVE/API2
install -d ${WWWJSDIR}
install -m 0644 pvemanagerlib.js ${WWWJSDIR}
install -d ${WWWTOUCHDIR}
install -m 0644 pvemanager-mobile.js ${WWWTOUCHDIR}
.PHONY: clean
clean:
-rm -f proxmoxlib.js Nodes.pm pvemanagerlib.js pvemanager-mobile.js
.PHONY: backup
backup:
mkdir -p orig
cp -a ${TOOLKITDIR}/proxmoxlib.js orig/
cp -a ${PERLLIBDIR}/PVE/API2/Nodes.pm orig/
cp -a ${WWWJSDIR}/pvemanagerlib.js orig/
cp -a ${WWWTOUCHDIR}/pvemanager-mobile.js orig/
.PHONY: restore
restore:
install -d ${TOOLKITDIR}
install -m 0644 orig/proxmoxlib.js ${TOOLKITDIR}
install -d ${PERLLIBDIR}/PVE/API2
install -m 0644 orig/Nodes.pm ${PERLLIBDIR}/PVE/API2
install -d ${WWWJSDIR}
install -m 0644 orig/pvemanagerlib.js ${WWWJSDIR}
install -d ${WWWTOUCHDIR}
install -m 0644 orig/pvemanager-mobile.js ${WWWTOUCHDIR}
.PHONY: cleanbackup
cleanbackup:
-rm -f orig/proxmoxlib.js orig/Nodes.pm orig/pvemanagerlib.js orig/pvemanager-mobile.js