Makefile 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. BUILD = xbuild
  2. RELEASEDIR = Releases
  3. RELEASE = System.Net.FtpClient.$(shell date +%y.%m.%d)
  4. RELEASEPATH = $(RELEASEDIR)/$(RELEASE)
  5. SNK = $(HOME)/Dropbox/Documents/System.Net.FtpClient-SNK/System.Net.FtpClient.snk
  6. all: debug
  7. release:
  8. $(BUILD) /p:Configuration=Release System.Net.FtpClient/System.Net.FtpClient.csproj
  9. release-signed:
  10. $(BUILD) /p:Configuration=Release /p:SignAssembly=true /p:AssemblyOriginatorKeyFile="$(SNK)" System.Net.FtpClient/System.Net.FtpClient.csproj
  11. debug:
  12. $(BUILD) /p:Configuration=Debug System.Net.FtpClient/System.Net.FtpClient.csproj
  13. test: debug
  14. $(BUILD) /p:Configuration=Debug Tests/Tests.csproj
  15. mono Tests/bin/Debug/tests.exe
  16. clean:
  17. rm -rf Examples/bin
  18. rm -rf Examples/obj
  19. rm -rf System.Net.FtpClient/bin
  20. rm -rf System.Net.FtpClient/obj
  21. rm -rf Tests/bin
  22. rm -rf Tests/obj
  23. rm -rf $(RELEASEDIR)/*
  24. codeplex: clean release debug
  25. rm -rf $(RELEASEPATH)
  26. mkdir -p $(RELEASEPATH)
  27. mkdir -p $(RELEASEPATH)/bin
  28. mkdir -p $(RELEASEPATH)/source
  29. mkdir -p $(RELEASEPATH)/examples
  30. cp -R System.Net.FtpClient/bin/* $(RELEASEPATH)/bin
  31. cp -R System.Net.FtpClient/*.cs $(RELEASEPATH)/source
  32. cp -R Examples/*.cs $(RELEASEPATH)/examples
  33. cp LICENSE.TXT $(RELEASEPATH)
  34. cd $(RELEASEDIR); zip -r $(RELEASE).zip $(RELEASE)/
  35. rm -rf $(RELEASEPATH)
  36. @echo Release: $(RELEASEDIR)/$(RELEASE).zip
  37. nuget: clean release-signed
  38. #nuget pack System.Net.FtpClient/System.Net.FtpClient.csproj -Prop Configuration=Release -OutputDirectory $(RELEASEDIR)
  39. nuget pack System.Net.FtpClient/System.Net.FtpClient.nuspec -Version $(shell monodis --assembly System.Net.FtpClient/bin/Release/System.Net.FtpClient.dll | awk '/Version/ {print $$2}') -OutputDirectory $(RELEASEDIR)
  40. packages: codeplex nuget