blob: 28faa2fe09faa455aa06123846dff32a62dedf7a [file] [log] [blame]
rjw1f884582022-01-06 17:20:42 +08001package_arch = $(subst -,_,${PACKAGE_ARCH})
2
3all:
4install:
5 find -name "*.$(package_arch).rpm" | while read i; do echo $${i}; ${bindir}/rpm2cpio $${i} | cpio -idmv ; done
6 install -d $(DESTDIR)/usr/bin
7 install -d $(DESTDIR)/lib/systemd/system
8 install -m 0755 usr/bin/mtklogger $(DESTDIR)/usr/bin
9
10uninstall:
11 rm -f $(DESTDIR)/usr/bin/mtklogger
12 rm -f $(DESTDIR)/lib/systemd/system/mtklogger.service
13
14clean:
15 rm -rf usr/
16 rm -rf lib/