files tree made better.

This commit is contained in:
2019-01-01 16:28:47 +00:00
parent cb96933a25
commit 5b8e9b3975
1633 changed files with 18220 additions and 41869 deletions

View File

@ -0,0 +1,66 @@
include versioning.mk
SUBDIRS=Yavsc Yavsc.Server Yavsc.Abstract cli test
all: $(SUBDIRS)
Yavsc.Abstract:
$(MAKE) -C Yavsc.Abstract VERSION=$(VERSION)
Yavsc.Server: Yavsc.Abstract
$(MAKE) -C Yavsc.Server VERSION=$(VERSION)
Yavsc: Yavsc.Server
make -C Yavsc VERSION=$(VERSION)
Yavsc-deploy-pkg: Yavsc
make -C Yavsc deploy-pkg
Yavsc.Server-deploy-pkg: Yavsc.Server
make -C Yavsc.Server deploy-pkg
Yavsc.Abstract-deploy-pkg: Yavsc.Abstract
make -C Yavsc.Abstract deploy-pkg
cli-deploy-pkg: cli check
make -C cli deploy-pkg
cli: Yavsc-deploy-pkg Yavsc.Server-deploy-pkg Yavsc.Abstract-deploy-pkg
make -C cli
undoLocalYavscNugetDeploy:
rm -rf ~/.dnx/packages/Yavsc.Abstract.$(VERSION).nupkg
rm -rf ~/.dnx/packages/Yavsc.Server.$(VERSION).nupkg
rm -rf ~/.dnx/packages/Yavsc.$(VERSION).nupkg
check: cli
make -C cli check
make -C test
test:
make -C test
pushInPre:
make -C Yavsc pushInPre
pushInProd:
make -C Yavsc pushInProd
deploy-pkgs: Yavsc-deploy-pkg Yavsc.Server-deploy-pkg Yavsc.Abstract-deploy-pkg cli-deploy-pkg
memo:
vim ~/TODO.md
rc-num:
@echo echo 1-alpha1 < $< ^ $^ @ $@
clean:
for subdir in $(SUBDIRS) ; do \
make -C $${subdir} clean ; \
done
watch:
make -C Yavsc watch
.PHONY: all $(SUBDIRS)

81
scripts/build/make/dnx.mk Normal file
View File

@ -0,0 +1,81 @@
# Common defs
# assumes SOLUTIONDIR already defined
#
ifndef PRJNAME
PRJNAME := $(shell basename `pwd -P`)
endif
FRAMEWORK=dnx451
ASPNET_ENV=Development
ASPNET_LOG_LEVEL=Debug
HOSTING=localhost
HOSTADMIN=root
FRAMEWORKALIAS=dnx451
# nuget package destination, at generation time
BINTARGET=$(PRJNAME).dll
BINTARGETPATH=bin/$(CONFIGURATION)/$(FRAMEWORKALIAS)/$(BINTARGET)
PKGFILENAME=$(PRJNAME).$(VERSION).nupkg
dnu=dnu
dnx=dnx
# 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
MONO_OPTIONS=--debug 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.lock.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
pack: $(NUGETSOURCE)/$(PKGFILENAME)
$(NUGETSOURCE)/$(PKGFILENAME): $(BINTARGETPATH) $(SOLUTIONDIR)/rc-num.txt
ifeq ($(git_status),0)
nuget pack $(PRJNAME).nuspec -Version $(VERSION) -Properties config=$(CONFIGURATION) -OutputDirectory bin
else
$(error Please, commit your changes before publishing your NuGet packages)
endif
deploy-pkg: pack
@mv bin/$(PKGFILENAME) $(NUGETSOURCE)
.PHONY: rc-num.txt-check
# .DEFAULT_GOAL := $(BINTARGETPATH)

View File

@ -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

View File

@ -0,0 +1,10 @@
ifndef PRJNAME
PRJNAME := $(shell basename `pwd -P`)
endif
SOLUTIONDIR=$(HOME)/workspace/yavsc
rc_num := $(shell cat $(SOLUTIONDIR)/rc-num.txt)
MAKE=make
NUGETSOURCE=$(HOME)/Nupkgs
VERSION=1.0.5-rc$(rc_num)
CONFIGURATION=Debug