still refactoring
This commit is contained in:
parent
149583ffb3
commit
6e6aca44f0
36 changed files with 303 additions and 324 deletions
74
dnx.mk
74
dnx.mk
|
|
@ -1,9 +1,73 @@
|
|||
include common.mk
|
||||
# Common defs
|
||||
# assumes SOLUTIONDIR already defined
|
||||
#
|
||||
|
||||
$(BINTARGETPATH):
|
||||
dnu build
|
||||
PRJNAME := $(shell basename `pwd -P`)
|
||||
FRAMEWORK=dnx451
|
||||
ASPNET_ENV=Development
|
||||
ASPNET_LOG_LEVEL=Debug
|
||||
HOSTING=localhost
|
||||
HOSTADMIN=root
|
||||
FRAMEWORKALIAS=dnx451
|
||||
BINTARGET=$(PRJNAME).dll
|
||||
BINTARGETPATH=bin/$(CONFIGURATION)/$(FRAMEWORKALIAS)/$(BINTARGET)
|
||||
|
||||
build: project.
|
||||
$(DNU) build
|
||||
# OBS SUBDIRS=Yavsc.Server Yavsc.Abstract Yavsc cli
|
||||
#
|
||||
|
||||
# Git commit hash, in order to not publish some uncrontrolled code in production environment
|
||||
#
|
||||
|
||||
git_status := $(shell git status -s --porcelain |wc -l)
|
||||
|
||||
all: $(BINTARGETPATH)
|
||||
|
||||
rc-num.txt-check:
|
||||
ifndef rc_num
|
||||
@echo no rc num ... please, could you try and run 'make rc-num.txt' ?.
|
||||
else
|
||||
@echo 'Got rc num : $(rc_num)'
|
||||
endif
|
||||
|
||||
|
||||
restore:
|
||||
touch project.json
|
||||
dnu restore
|
||||
|
||||
project.lock.json: project.json
|
||||
dnu restore
|
||||
|
||||
watch: project.lock.json
|
||||
ASPNET_ENV=$(ASPNET_ENV) ASPNET_LOG_LEVEL=$(ASPNET_LOG_LEVEL) dnx-watch web --configuration=$(CONFIGURATION)
|
||||
|
||||
clean:
|
||||
rm -rf bin obj
|
||||
|
||||
cleanoutput:
|
||||
rm -rf bin/$(CONFIGURATION)
|
||||
rm -rf bin/output
|
||||
|
||||
$(BINTARGETPATH): project.json rc-num.txt-check
|
||||
dnu build --configuration=$(CONFIGURATION)
|
||||
|
||||
# Default target, from one level sub dirs
|
||||
|
||||
bin/output:
|
||||
@dnu publish
|
||||
|
||||
bin/output/wwwroot/version: bin/output
|
||||
@git log -1 --pretty=format:%h > bin/output/wwwroot/version
|
||||
|
||||
$(NUGETSOURCE)/$(PRJNAME)/$(PKGFILENAME): $(NUGETSOURCE)/$(PRJNAME) $(BINTARGETPATH) $(SOLUTIONDIR)/rc-num.txt
|
||||
nuget pack $(PRJNAME).nuspec -Version $(VERSION) -Properties config=$(CONFIGURATION) -OutputDirectory $(NUGETSOURCE)/$(PRJNAME)
|
||||
|
||||
$(NUGETSOURCE)/$(PRJNAME):
|
||||
mkdir -p $@
|
||||
|
||||
deploy-pkg: $(NUGETSOURCE)/$(PRJNAME)/$(PKGFILENAME)
|
||||
|
||||
.PHONY: rc-num.txt-check $(BINTARGETPATH)
|
||||
|
||||
.DEFAULT_GOAL :=
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue