-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
55 lines (34 loc) · 1.43 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
45
46
47
48
49
50
51
52
53
54
PROG = libliqbase
VERS = 0.3.0
CC = g++
LD = g++
OPT_FLAGS = -O3
#DESTDIR ?= tmp
ETCDIR = $(DESTDIR)/etc
PREFIX = $(DESTDIR)/usr
SUDODIR = $(ETCDIR)/sudoers.d
BINDIR = $(PREFIX)/bin
PGDIR = $(PREFIX)/share/liqbase
PREFIX = $(DESTDIR)/usr
.PHONY: clean distclean
all:
$(MAKE) -C src
clean:
$(MAKE) clean -C src
.PHONY: clean
install:
install -d $(BINDIR)
install -d $(SUDODIR)
mkdir -p $(PREFIX)/include
mkdir -p $(PREFIX)/include/liqbase
cp -r include/*.h $(PREFIX)/include/liqbase/
mkdir -p $(PREFIX)/lib
install src/libliqbase.so.1 $(PREFIX)/lib/
mkdir -p $(PREFIX)/share/liqbase
mkdir -p $(PREFIX)/share/liqbase/libliqbase
mkdir -p $(PREFIX)/share/liqbase/libliqbase/media
cp -r media/* $(PREFIX)/share/liqbase/libliqbase/media/
install -m 0755 liqbase_base_fs/usr/bin/liqbase-playground-cpu-ondemand $(BINDIR)
install -m 0755 liqbase_base_fs/usr/bin/liqbase-playground-cpu-powersave $(BINDIR)
install -m 0755 liqbase_base_fs/usr/bin/liqbase-playground-cpu-performance $(BINDIR)
install -m 0755 liqbase_base_fs/etc/sudoers.d/libliqbase.sudoers $(SUDODIR)