Makefile 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. VERSION=0.61.03
  2. COREDIR=synfig-core
  3. STUDIODIR=synfig-studio
  4. ETLDIR=etl
  5. OUTPUTDIR=output
  6. SRCPKG=Synfig.mpkg
  7. OUTPKG=$(OUTPUTDIR)/Synfig-$(VERSION).mpkg
  8. PKGDIR=$(OUTPKG)/Contents/Packages
  9. SSH_USER=darco@www.bridgetone.com
  10. SSH_DIR=~/voria/files
  11. all: src osx package
  12. publish:
  13. cd $(OUTPUTDIR) && tar c *.gz *.zip *.exe *.bz2 | ssh $(SSH_USER) "cd $(SSH_DIR) && tar xv"
  14. osx-pkg:
  15. rm -fr $(OUTPKG)
  16. rm -fr $(OUTPKG).zip
  17. cp -R $(SRCPKG) $(OUTPKG)
  18. cp -r $(OUTPUTDIR)/*.pkg $(PKGDIR)
  19. cd $(OUTPUTDIR) && zip -r Synfig-$(VERSION).mpkg.zip *.mpkg
  20. core-osx:
  21. [ -d $(OUTPUTDIR) ] || mkdir $(OUTPUTDIR)
  22. rm -fr $(COREDIR)
  23. svn export https://svn.voria.com/code/synfig-core/trunk $(COREDIR) || exit 2
  24. cd $(COREDIR) && ./macosxbuild.sh
  25. cp -r $(COREDIR)/macosxbuild/*.pkg $(OUTPUTDIR)
  26. studio-osx:
  27. [ -d $(OUTPUTDIR) ] || mkdir $(OUTPUTDIR)
  28. rm -fr $(STUDIODIR)
  29. svn export https://svn.voria.com/code/synfig-studio/trunk $(STUDIODIR) || exit 2
  30. cd $(STUDIODIR) && ./macosxbuild.sh
  31. cp -r $(STUDIODIR)/macosxbuild/*.pkg $(OUTPUTDIR)
  32. core-w32:
  33. [ -d $(OUTPUTDIR) ] || mkdir $(OUTPUTDIR)
  34. rm -fr $(COREDIR)
  35. svn export https://svn.voria.com/code/synfig-core/trunk $(COREDIR) || exit 2
  36. cd $(COREDIR) && ./win32build.sh
  37. cp -r $(COREDIR)/win32build/*.exe $(OUTPUTDIR)
  38. studio-w32:
  39. [ -d $(OUTPUTDIR) ] || mkdir $(OUTPUTDIR)
  40. rm -fr $(STUDIODIR)
  41. svn export https://svn.voria.com/code/synfig-studio/trunk $(STUDIODIR) || exit 2
  42. cd $(STUDIODIR) && ./win32build.sh
  43. cp -r $(STUDIODIR)/win32build/*.exe $(OUTPUTDIR)
  44. core-src:
  45. [ -d $(OUTPUTDIR) ] || mkdir $(OUTPUTDIR)
  46. rm -fr $(COREDIR)
  47. svn export https://svn.voria.com/code/synfig-core/trunk $(COREDIR) || exit 2
  48. cd $(COREDIR) && libtoolize --ltdl --copy --force && autoreconf --force --install && ./configure
  49. make -C $(COREDIR) dist
  50. cp -r $(COREDIR)/*.gz $(OUTPUTDIR)
  51. studio-src:
  52. [ -d $(OUTPUTDIR) ] || mkdir $(OUTPUTDIR)
  53. rm -fr $(STUDIODIR)
  54. svn export https://svn.voria.com/code/synfig-studio/trunk $(STUDIODIR) || exit 2
  55. cd $(STUDIODIR) && autoreconf --force --install && ./configure
  56. make -C $(STUDIODIR) dist
  57. cp -r $(STUDIODIR)/*.gz $(OUTPUTDIR)
  58. etl-src:
  59. [ -d $(OUTPUTDIR) ] || mkdir $(OUTPUTDIR)
  60. rm -fr $(ETLDIR)
  61. svn export https://svn.voria.com/code/ETL/trunk $(ETLDIR) || exit 2
  62. cd $(ETLDIR) && autoreconf --force --install && ./configure
  63. make -C $(ETLDIR) dist
  64. cp -r $(ETLDIR)/*.gz $(OUTPUTDIR)
  65. src: etl-src core-src studio-src
  66. osx: core-osx studio-osx
  67. w32: core-w32 studio-w32
  68. clean:
  69. rm -fr $(COREDIR)
  70. rm -fr $(STUDIODIR)
  71. rm -fr $(ETLDIR)
  72. rm -fr $(OUTPUTDIR)