From ae74d02c35d20621ba972c9c22d966a5264d92b7 Mon Sep 17 00:00:00 2001 From: Paul Schneider Date: Fri, 4 May 2018 17:56:35 +0200 Subject: [PATCH] . --- dnx.mk | 1 + msbuild.mk | 16 ++++++++++++++++ versioning.mk | 5 ++--- yaxwtui.Gtk3/Makefile | 21 +++++++++++++++++++++ 4 files changed, 40 insertions(+), 3 deletions(-) create mode 100644 msbuild.mk create mode 100644 yaxwtui.Gtk3/Makefile diff --git a/dnx.mk b/dnx.mk index fe0bbb41..60a3819d 100644 --- a/dnx.mk +++ b/dnx.mk @@ -9,6 +9,7 @@ ASPNET_LOG_LEVEL=Debug HOSTING=localhost HOSTADMIN=root FRAMEWORKALIAS=dnx451 +# nuget package destination, at generation time BINTARGET=$(PRJNAME).dll BINTARGETPATH=bin/$(CONFIGURATION)/$(FRAMEWORKALIAS)/$(BINTARGET) diff --git a/msbuild.mk b/msbuild.mk new file mode 100644 index 00000000..0784efe7 --- /dev/null +++ b/msbuild.mk @@ -0,0 +1,16 @@ + + +MSBUILD=msbuild +MONO=mono +CONFIGURATION=Debug +BINTYPE=exe +PRJNAME := $(shell basename `pwd -P`) +SOLUTIONDIR=$(HOME)/workspace/yavsc +rc_num := $(shell cat $(SOLUTIONDIR)/rc-num.txt) +VERSION=1.0.5-rc$(rc_num) + +BINTARGET=$(PRJNAME).$(BINTYPE) +BINTARGETPATH=bin/$(CONFIGURATION)/$(BINTARGET) +NUGETSOURCE=$(HOME)/Nupkgs +PKGFILENAME=$(PRJNAME).$(VERSION).nupkg + diff --git a/versioning.mk b/versioning.mk index 377fed9b..082449a9 100644 --- a/versioning.mk +++ b/versioning.mk @@ -4,10 +4,9 @@ SOLUTIONDIR=$(HOME)/workspace/yavsc rc_num := $(shell cat $(SOLUTIONDIR)/rc-num.txt) DESTDIR=$(SOLUTIONDIR)/build MAKE=make -VERSION=1.0.5-rc$(rc_num) -CONFIGURATION=Release -# nuget package destination, at generation time NUGETSOURCE=$(HOME)/Nupkgs PKGFILENAME=$(PRJNAME).$(VERSION).nupkg +VERSION=1.0.5-rc$(rc_num) +CONFIGURATION=Release diff --git a/yaxwtui.Gtk3/Makefile b/yaxwtui.Gtk3/Makefile new file mode 100644 index 00000000..7c6ebb14 --- /dev/null +++ b/yaxwtui.Gtk3/Makefile @@ -0,0 +1,21 @@ + +include ../msbuild.mk + +all: build + +run: $(BINTARGETPATH) + $(MONO) $(BINTARGETPATH) + +$(BINTARGETPATH): build + +build: + $(MSBUILD) $(PRJNAME).csproj /t:Build + +restore: + $(MSBUILD) $(PRJNAME).csproj /t:Restore + +clean: + $(MSBUILD) $(PRJNAME).csproj /t:Clean + +.PHONY: run build restore +