Skip to content
This repository has been archived by the owner on Dec 14, 2020. It is now read-only.

Commit

Permalink
Modified makefile to use xbuild and download nuget packages.
Browse files Browse the repository at this point in the history
  • Loading branch information
ColonelThirtyTwo committed Mar 25, 2015
1 parent af3c763 commit 82613c8
Show file tree
Hide file tree
Showing 10 changed files with 14 additions and 372 deletions.
63 changes: 12 additions & 51 deletions Makefile
@@ -1,64 +1,25 @@
default: all
@:

SVN_EXEC_FILES = $(wildcard scripts/*.sh)
SVN_NO_EXEC_FILES = \
$(wildcard */*.cs) \
$(wildcard */*/*.cs) \
$(wildcard */*/*/*.cs) \
$(wildcard */*.sql) \
$(wildcard */*.aspx) \
$(wildcard */*.js) \
$(wildcard web/doc/*) \
$(wildcard */*.css) \
$(wildcard */*.master) \
$(wildcard */web.config) \
$(wildcard */Web.config) \
$(wildcard */*.csproj) \
Makefile \
$(wildcard */Makefile) \
LICENSE \
README

SVN_EOL_FILES = $(SVN_EXEC_FILES) $(SVN_NO_EXEC_FILES)

svn:
unix2dos $(SVN_EOL_FILES)
dos2unix $(SVN_EXEC_FILES)
svn ps svn:eol-style native $(SVN_EOL_FILES)
svn pd svn:executable $(SVN_NO_EXEC_FILES)
svn ps svn:executable $(SVN_EXEC_FILES)

all clean install:
@$(MAKE) -C Newtonsoft.Json $@
@$(MAKE) -C MonkeyWrench $@
@$(MAKE) -C MonkeyWrench.DataClasses $@
@$(MAKE) -C MonkeyWrench.Database $@
@$(MAKE) -C MonkeyWrench.Database.Manager $@
@$(MAKE) -C MonkeyWrench.Scheduler $@
@$(MAKE) -C MonkeyWrench.Builder $@
@$(MAKE) -C MonkeyWrench.Web.WebService $@
@$(MAKE) -C MonkeyWrench.Web.UI $@
@$(MAKE) -C MonkeyWrench.CmdClient $@

publish: install

wsdl: publish
all:
nuget restore
@$(MAKE) -C MonkeyWrench generate-assembly-info
xbuild

clean:
xbuild /target:clean
rm -f MonkeyWrench/AssemblyInfo.cs

wsdl:
$(MAKE) -C MonkeyWrench.Web.WebService $@

build:
@$(MAKE) -C MonkeyWrench all
@$(MAKE) -C MonkeyWrench.DataClasses all
@$(MAKE) -C MonkeyWrench.Database all
@$(MAKE) -C MonkeyWrench.Database.Manager all
@$(MAKE) -C MonkeyWrench.Builder all
@$(MAKE) -C MonkeyWrench.CmdClient all
build: all
mono --debug class/lib/MonkeyWrench.Builder.exe

schedule update: all
mono --debug class/lib/MonkeyWrench.Scheduler.exe

web: all publish
web: all
scripts/web.sh

generate:
Expand Down
31 changes: 0 additions & 31 deletions MonkeyWrench.Builder/Makefile

This file was deleted.

33 changes: 0 additions & 33 deletions MonkeyWrench.CmdClient/Makefile

This file was deleted.

31 changes: 0 additions & 31 deletions MonkeyWrench.DataClasses/Makefile
@@ -1,26 +1,3 @@
SOURCES = \
$(wildcard *.cs) \
$(wildcard */*.cs)

TOPDIR = ..

LIBRARY = MonkeyWrench.DataClasses.dll
OUT_DIR = $(TOPDIR)/class/lib
OUT = $(OUT_DIR)/$(LIBRARY)

BUILDABLE_REFS = \
$(OUT_DIR)/Npgsql.dll \
$(OUT_DIR)/MonkeyWrench.dll

REFERENCES = \
$(foreach ref,$(BUILDABLE_REFS),-r:$(ref)) \
-r:System.Data.dll \
-r:System.Web.dll \
-r:System.Web.Services.dll

$(OUT): $(SOURCES) $(BUILDABLE_REFS)
@echo " DMCS $(LIBRARY)"
@dmcs -target:library -debug:full -out:$@ $(SOURCES) $(REFERENCES)

generate: ../scripts/database.sql CustomTypes.sql
gmcs SqlToCSharp.cs -out:SqlToCSharp.exe -debug+
Expand All @@ -30,11 +7,3 @@ generate: ../scripts/database.sql CustomTypes.sql
rm -f tmp
rm SqlToCSharp.exe*
dos2unix Database/*.generated.cs

all: $(OUT)

clean:
@rm -f $(OUT)*

publish install: all
@:
31 changes: 0 additions & 31 deletions MonkeyWrench.Database.Manager/Makefile

This file was deleted.

30 changes: 0 additions & 30 deletions MonkeyWrench.Database/Makefile

This file was deleted.

32 changes: 0 additions & 32 deletions MonkeyWrench.Scheduler/Makefile

This file was deleted.

50 changes: 0 additions & 50 deletions MonkeyWrench.Web.UI/Makefile

This file was deleted.

52 changes: 0 additions & 52 deletions MonkeyWrench.Web.WebService/Makefile
@@ -1,57 +1,5 @@
SOURCES = \
$(wildcard *.cs) \
$(wildcard */*.cs)

TOPDIR = ..

LIBRARY = MonkeyWrench.Web.WebService.dll
OUT_DIR = $(TOPDIR)/class/lib
OUT = $(OUT_DIR)/$(LIBRARY)

BUILDABLE_REFS = \
$(OUT_DIR)/MonkeyWrench.dll \
$(OUT_DIR)/MonkeyWrench.DataClasses.dll \
$(OUT_DIR)/MonkeyWrench.Database.dll \
$(OUT_DIR)/Newtonsoft.Json.dll

REFERENCES = \
$(foreach ref,$(BUILDABLE_REFS),-r:$(ref)) \
-r:Npgsql.dll \
-r:System.Data.dll \
-r:System.Web.dll \
-r:System.Runtime.Caching.dll \
-r:System.Web.Services.dll

SOURCES = \
$(wildcard *.cs) \
$(wildcard */*.cs)

$(OUT): $(SOURCES) $(BUILDABLE_REFS)
@echo " DMCS $(LIBRARY)"
@MONO_PATH=$(OUT_DIR):$(MONO_PATH) dmcs -target:library -debug:full -out:$@ $(SOURCES) $(REFERENCES)

all: $(OUT)

clean:
@rm -f $(OUT)*
@rm -f bin/*.dll bin/*.mdb bin/*.pdb

install: all
@echo " PUBLISH $(LIBRARY)"
@mkdir -p bin
@cp -p $(OUT)* bin
@cp -p $(OUT_DIR)/Npgsql.dll* bin
@cp -p $(OUT_DIR)/MonkeyWrench.dll* bin
@cp -p $(OUT_DIR)/MonkeyWrench.DataClasses.dll* bin
@cp -p $(OUT_DIR)/MonkeyWrench.Database.dll* bin
@cp -p $(OUT_DIR)/Newtonsoft.Json.dll* bin

dataclasses:
$(MAKE) -C $(TOPDIR)/MonkeyWrench.DataClasses
$(MAKE) dependencies

wsdl: WebServices.wsdl

WebServices.wsdl: all
curl http://localhost:8123/WebServices/WebServices.asmx?wsdl > WebServices.wsdl -m 5

0 comments on commit 82613c8

Please sign in to comment.