-
Notifications
You must be signed in to change notification settings - Fork 96
/
Makefile
41 lines (34 loc) · 1.01 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
# Makefile
#
# License: GPL
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
# PARTICULAR PURPOSE.
#
SHELL := bash -e
DESTDIR =
SHAREDIR = /usr/share/drbl/
all: ocs-sbin
@echo "No need to compile..."
ocs-sbin:
(cd sbin; ln -fs ocs-prep-repo prep-ocsroot)
(cd sbin; ln -fs ocs-cvt-dev cnvt-ocs-dev)
build:
@echo "Nothing to build."
install:
# install exec files
install -d ${DESTDIR}/usr/
cp -a sbin bin ${DESTDIR}/usr/
# install setup dir
install -d $(DESTDIR)/$(SHAREDIR)/
cp -a setup $(DESTDIR)/$(SHAREDIR)/
# install other shared files
cp -a samples prerun postrun scripts/sbin $(DESTDIR)/$(SHAREDIR)/
install -d $(DESTDIR)/usr/share/clonezilla/
cp -a doc $(DESTDIR)/usr/share/clonezilla/
# erase an extra COPYING
rm -f $(DESTDIR)/usr/share/clonezilla/doc/COPYING
# install config files
install -d $(DESTDIR)/etc/drbl/
cp -a conf/* $(DESTDIR)/etc/drbl/