package_arch = $(subst -,_,${PACKAGE_ARCH}) | |
all: | |
install: | |
find -name "*.$(package_arch).rpm" | while read i; do echo $${i}; ${bindir}/rpm2cpio $${i} | cpio -idmv ; done | |
install -d $(DESTDIR)/usr/bin | |
install -d $(DESTDIR)/lib/systemd/system | |
install -m 0755 usr/bin/mtklogger $(DESTDIR)/usr/bin | |
uninstall: | |
rm -f $(DESTDIR)/usr/bin/mtklogger | |
rm -f $(DESTDIR)/lib/systemd/system/mtklogger.service | |
clean: | |
rm -rf usr/ | |
rm -rf lib/ |