Paul Schneider 9 years ago
parent bba75c1d0b
commit f327f6ac78
1 changed files with 10 additions and 9 deletions

@ -1,9 +1,9 @@
DESTDIR=/srv/www/yavscpre DESTDIR=/srv/www/yavscpre
PRODDESTDIR=/srv/www/yavsc PRODDESTDIR=/srv/www/yavsc
ASPNET_ENV=Development ASPNET_ENV=Development
CONFIGURATION=Debug
all: project.lock.json all: bin/$(CONFIGURATION)
dnu build
git_status := $(shell git status -s --porcelain |wc -l) git_status := $(shell git status -s --porcelain |wc -l)
@ -11,6 +11,7 @@ status:
ifeq ($(git_status),0) ifeq ($(git_status),0)
@echo Nothing to be done. @echo Nothing to be done.
else else
@echo There are pending changes:
@git status @git status
endif endif
@ -20,22 +21,22 @@ project.lock.json: project.json
dnu restore dnu restore
watch: project.lock.json watch: project.lock.json
@ASPNET_ENV=$(ASPNET_ENV) dnx-watch web --configuration=Debug ASPNET_ENV=$(ASPNET_ENV) dnx-watch web --configuration=$(CONFIGURATION)
run: run:
@ASPNET_ENV=$(ASPNET_ENV) dnx web --configuration=Debug ASPNET_ENV=$(ASPNET_ENV) dnx web --configuration=$(CONFIGURATION)
clean: clean:
rm -rf bin obj rm -rf bin obj
cleanoutput: cleanoutput:
@rm -rf bin/Release rm -rf bin/$(CONFIGURATION)
@rm -rf bin/output rm -rf bin/output
bin/Release: bin/$(CONFIGURATION): project.lock.json
@dnu build --configuration=Release dnu build --configuration=$(CONFIGURATION)
bin/output: bin/Release bin/output: bin/$(CONFIGURATION)
@dnu publish @dnu publish
bin/output/wwwroot/version: bin/output bin/output/wwwroot/version: bin/output

Loading…