forked from linuxdeepin/deepin-anything
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
24 lines (21 loc) · 1.09 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
VERSION := 0.0
DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
all:
sed 's|@@VERSION@@|$(VERSION)|g' debian/deepin-anything-dkms.dkms.in | tee debian/deepin-anything-dkms.dkms
make -C library all
cd server && qmake -makefile -nocache QMAKE_STRIP=: PREFIX=/usr LIB_INSTALL_DIR=/usr/lib/$(DEB_HOST_MULTIARCH) deepin-anything-server.pro && make all
install:
mkdir -p $(DESTDIR)/usr/lib/$(DEB_HOST_MULTIARCH)
cp library/bin/release/* $(DESTDIR)/usr/lib/$(DEB_HOST_MULTIARCH)
mkdir -p $(DESTDIR)/usr/src/deepin-anything-$(VERSION)
cp -r kernelmod/* $(DESTDIR)/usr/src/deepin-anything-$(VERSION)
mkdir -p $(DESTDIR)/usr/lib/modules-load.d
echo "vfs_monitor" | tee $(DESTDIR)/usr/lib/modules-load.d/anything.conf
mkdir -p $(DESTDIR)/usr/include/deepin-anything
cp -r library/inc/* $(DESTDIR)/usr/include/deepin-anything
cp -r kernelmod/vfs_change_uapi.h $(DESTDIR)/usr/include/deepin-anything
cp -r kernelmod/vfs_change_consts.h $(DESTDIR)/usr/include/deepin-anything
make -C server install INSTALL_ROOT=$(DESTDIR)
clean:
rm -f debian/deepin-anything-dkms.dkms
make -C library clean