rjw | 1f88458 | 2022-01-06 17:20:42 +0800 | [diff] [blame^] | 1 | package_arch = $(subst -,_,${PACKAGE_ARCH}) |
2 | |||||
3 | all: | ||||
4 | install: | ||||
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 | |||||
10 | uninstall: | ||||
11 | rm -f $(DESTDIR)/usr/bin/mtklogger | ||||
12 | rm -f $(DESTDIR)/lib/systemd/system/mtklogger.service | ||||
13 | |||||
14 | clean: | ||||
15 | rm -rf usr/ | ||||
16 | rm -rf lib/ |