Makefile 827 B

12345678910111213141516171819202122232425262728
  1. DESTDIR=/
  2. all: clean build
  3. build:
  4. mkdir -p build/usr/lib/ || true
  5. mkdir -p build/usr/bin/ || true
  6. mkdir -p build/usr/share/applications || true
  7. cp -prfv live-installer build/usr/lib/
  8. install data/live-installer.sh build/usr/bin/live-installer
  9. install data/live-installer.desktop build/usr/share/applications/live-installer.desktop
  10. mkdir -p build/usr/lib/live-installer/scripts
  11. install data/preinstall.sh build/usr/lib/live-installer/scripts/preinstall.sh
  12. install data/postinstall.sh build/usr/lib/live-installer/scripts/postinstall.sh
  13. #set parmissions
  14. chmod 755 -R build
  15. chown root -R build
  16. install:
  17. cp -prfv build/* $(DESTDIR)/
  18. uninstall:
  19. rm -rf $(DESTDIR)/usr/lib/live-installer
  20. rm -f $(DESTDIR)/usr/bin/live-installer
  21. rm -f $(DESTDIR)/usr/share/applications/live-installer.desktop
  22. clean:
  23. rm -rf build