forked from robinrodricks/FluentFTP
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
50 lines (40 loc) · 1.49 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
BUILD = xbuild
RELEASEDIR = Releases
RELEASE = FluentFTP.$(shell date +%y.%m.%d)
RELEASEPATH = $(RELEASEDIR)/$(RELEASE)
SNK = $(HOME)/Dropbox/Documents/FluentFTP-SNK/FluentFTP.snk
all: debug
release:
$(BUILD) /p:Configuration=Release FluentFTP/FluentFTP.csproj
release-signed:
$(BUILD) /p:Configuration=Release /p:SignAssembly=true /p:AssemblyOriginatorKeyFile="$(SNK)" FluentFTP/FluentFTP.csproj
debug:
$(BUILD) /p:Configuration=Debug FluentFTP/FluentFTP.csproj
test: debug
$(BUILD) /p:Configuration=Debug Tests/Tests.csproj
mono Tests/bin/Debug/tests.exe
clean:
rm -rf Examples/bin
rm -rf Examples/obj
rm -rf FluentFTP/bin
rm -rf FluentFTP/obj
rm -rf Tests/bin
rm -rf Tests/obj
rm -rf $(RELEASEDIR)/*
codeplex: clean release debug
rm -rf $(RELEASEPATH)
mkdir -p $(RELEASEPATH)
mkdir -p $(RELEASEPATH)/bin
mkdir -p $(RELEASEPATH)/source
mkdir -p $(RELEASEPATH)/examples
cp -R FluentFTP/bin/* $(RELEASEPATH)/bin
cp -R FluentFTP/*.cs $(RELEASEPATH)/source
cp -R Examples/*.cs $(RELEASEPATH)/examples
cp LICENSE.TXT $(RELEASEPATH)
cd $(RELEASEDIR); zip -r $(RELEASE).zip $(RELEASE)/
rm -rf $(RELEASEPATH)
@echo Release: $(RELEASEDIR)/$(RELEASE).zip
nuget: clean release-signed
#nuget pack System.Net.FtpClient/System.Net.FtpClient.csproj -Prop Configuration=Release -OutputDirectory $(RELEASEDIR)
nuget pack FluentFTP/FluentFTP.nuspec -Version $(shell monodis --assembly FluentFTP/bin/Release/FluentFTP.dll | awk '/Version/ {print $$2}') -OutputDirectory $(RELEASEDIR)
packages: codeplex nuget