blob: 28faa2fe09faa455aa06123846dff32a62dedf7a [file] [log] [blame]
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/