(fix) reworked the targets to not always generate static files

feature/saveSortContacts
Ludovic Marcotte 2015-08-07 09:15:38 -04:00
parent 7f2ef967b4
commit f6ea2229f8
1 changed files with 10 additions and 7 deletions

View File

@ -4,7 +4,9 @@ include ../common.make
WEBSERVER_RESOURCE_DIRS = css fonts img js
build-static-files:
.DEFAULT_GOAL := all
dev:
npm install --production
@if [ ! -e angular-material/src ]; then \
git submodule init; \
@ -17,9 +19,10 @@ build-static-files:
fi
grunt --stack build
all :: build-static-files
all:
@echo "The 'all' target does nothing. Use 'make dev' to generate static files and 'make install' to install them."
install ::
install:
@if [ -L "$(SOGO_WEBSERVERRESOURCESDIR)" ]; then \
echo "$(SOGO_WEBSERVERRESOURCESDIR) is a symbolic link (for development?). Installation skipped."; \
else \
@ -27,13 +30,13 @@ install ::
cp -r $(WEBSERVER_RESOURCE_DIRS) $(SOGO_WEBSERVERRESOURCESDIR)/; \
fi
check ::
check:
clean ::
clean:
distclean :: clean
distclean: clean
uninstall ::
uninstall:
@if [ -L "$(SOGO_WEBSERVERRESOURCESDIR)" ]; then \
echo "$(SOGO_WEBSERVERRESOURCESDIR) is a symbolic link (for development?). Uninstallation skipped."; \
else \