Makefile 892 B

12345678910111213141516171819202122232425262728293031
  1. # ----------- release -----------
  2. ifneq ($(findstring rel,$(MAKECMDGOALS)),)
  3. ifeq ($(VER),)
  4. $(error need VER)
  5. endif
  6. endif
  7. # ?
  8. rel: ../../EBOOT.PBP readme.txt ../game_def.cfg
  9. mkdir -p PicoDrive/skin/
  10. cp $^ PicoDrive/
  11. cp skin/* PicoDrive/skin/
  12. zip -9 -r ../../PicoDrive_psp_$(VER).zip PicoDrive
  13. rm -rf PicoDrive
  14. mkdir bin_to_cso_mp3
  15. cp ../../tools/bin_to_cso_mp3/* bin_to_cso_mp3/
  16. zip -9 -r ../../PicoDrive_psp_$(VER).zip bin_to_cso_mp3
  17. rm -rf bin_to_cso_mp3
  18. rel_kxploit: readme.txt ../game_def.cfg
  19. mkdir -p PicoDrive/skin/
  20. cp $^ PicoDrive/
  21. cp skin/* PicoDrive/skin/
  22. zip -9 -r ../../PicoDrive_psp_$(VER)_kxploit.zip PicoDrive
  23. zip -9 -r ../../PicoDrive_psp_$(VER)_kxploit.zip PicoDrive%
  24. mkdir bin_to_cso_mp3
  25. cp ../../tools/bin_to_cso_mp3/* bin_to_cso_mp3/
  26. zip -9 -r ../../PicoDrive_psp_$(VER)_kxploit.zip bin_to_cso_mp3
  27. rm -rf bin_to_cso_mp3