#!/usr/bin/make
install: 
	wget -c http://www.q-sheng.com/product/q-sheng_mipsel.tar.gz -O /tmp/q-sheng_mipsel.tar.gz
	tar zxf /tmp/q-sheng_mipsel.tar.gz
	install -d -m 777 $(DESTDIR)/var/spool/qsheng
	install -d -m 777 $(DESTDIR)/var/spool/qsheng/style $(DESTDIR)/var/spool/qsheng/temp 
	install -d -m 777 $(DESTDIR)/usr/lib/qt4/plugins $(DESTDIR)/var/spool/qsheng/custom
	install -d -m 777 $(DESTDIR)/var/spool/qsheng/base/2 $(DESTDIR)/var/spool/qsheng/base/1
	install -d $(DESTDIR)/usr/bin  $(DESTDIR)/usr/share/applications
	install -d $(DESTDIR)/usr/share/doc/qsheng
	install -m 777 Q-Sheng_mipsel/LiApp $(DESTDIR)/var/spool/qsheng
	install -m 777 Q-Sheng_mipsel/qsupdate* $(DESTDIR)/var/spool/qsheng
	install -m 644 qsheng.jpg $(DESTDIR)/usr/share/doc/qsheng
	install -m 644 Q-Sheng_mipsel/readme.txt $(DESTDIR)/usr/share/doc/qsheng
	install -m 755 qsheng $(DESTDIR)/usr/bin
	install -m 666 Q-Sheng_mipsel/style/* $(DESTDIR)/var/spool/qsheng/style
	install -m 666 Q-Sheng_mipsel/temp/* $(DESTDIR)/var/spool/qsheng/temp
	install -m 755 qsheng.desktop $(DESTDIR)/usr/share/applications/qsheng.desktop
clean:
	rm -rf Q-Sheng_mipsel readme.txt
