refact & version file name

vnext
Paul Schneider 5 years ago
parent d6b15634ef
commit f65411b5b7
2 changed files with 10 additions and 8 deletions

@ -28,13 +28,6 @@ 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
@ -67,7 +60,7 @@ bin/output/wwwroot/version: bin/output
pack: $(NUGETSOURCE)/$(PKGFILENAME)
$(NUGETSOURCE)/$(PKGFILENAME): $(BINTARGETPATH) $(SOLUTIONDIR)/rc-num.txt
$(NUGETSOURCE)/$(PKGFILENAME): $(BINTARGETPATH) $(SOLUTIONDIR)/version.txt
ifeq ($(git_status),0)
nuget pack $(PRJNAME).nuspec -Version $(VERSION) -Properties config=$(CONFIGURATION) -OutputDirectory bin
else

@ -8,3 +8,12 @@ MAKE=make
NUGETSOURCE=$(HOME)/Nupkgs
VERSION=$(version)
CONFIGURATION=Debug
version-check:
ifndef version
@echo no version number specification ... please, could you try and run 'echo 1.2.3 > $(SOLUTIONDIR)version.txt' ?.
else
@echo 'Got version number : $(version)'
endif

Loading…