Makefile 512 B

12345678910111213141516171819202122232425
  1. # Convenience targets for building and installing Arch packages
  2. # prior to committing changes to git.
  3. PKGNAME=salt
  4. local:
  5. -rm -rf ../../build
  6. -rm $(PKGNAME)-*.pkg.tar.xz
  7. -rm -rf pkg
  8. if [ "$$(id -u)" -eq 0 ]; \
  9. then \
  10. makepkg -f -p PKGBUILD-local --asroot; \
  11. else \
  12. makepkg -f -p PKGBUILD-local; \
  13. fi
  14. rm -rf pkg
  15. -rm -rf ../../build
  16. install: local
  17. -for script in /etc/rc.d/salt*; \
  18. do \
  19. "$$script" stop; \
  20. done
  21. -yes | pacman -R $(PKGNAME)
  22. yes | pacman -U $(PKGNAME)-*.pkg.tar.xz