2008-02-14 18:31:23 +01:00
|
|
|
# GNUstep makefile
|
|
|
|
|
|
|
|
include ../common.make
|
|
|
|
|
2014-08-06 21:43:03 +02:00
|
|
|
WEBSERVER_RESOURCE_DIRS = css fonts img js
|
2008-02-14 18:31:23 +01:00
|
|
|
|
2014-09-15 16:13:02 +02:00
|
|
|
build-static-files:
|
|
|
|
@if [ -d bower_components ]; then \
|
2014-10-08 16:36:46 +02:00
|
|
|
bower update; \
|
2014-09-15 16:13:02 +02:00
|
|
|
else \
|
2014-10-08 16:36:46 +02:00
|
|
|
bower install; \
|
2014-09-15 16:13:02 +02:00
|
|
|
fi
|
2014-09-23 15:47:24 +02:00
|
|
|
( cd bower_components/underscore/ && npm run-script build )
|
2014-09-15 16:13:02 +02:00
|
|
|
grunt build
|
|
|
|
|
|
|
|
all :: build-static-files
|
2008-02-14 18:31:23 +01:00
|
|
|
|
|
|
|
install ::
|
2008-05-20 23:59:34 +02:00
|
|
|
@if [ -L "$(SOGO_WEBSERVERRESOURCESDIR)" ]; then \
|
|
|
|
echo "$(SOGO_WEBSERVERRESOURCESDIR) is a symbolic link (for development?). Installation skipped."; \
|
|
|
|
else \
|
|
|
|
mkdir -p $(SOGO_WEBSERVERRESOURCESDIR); \
|
2014-08-06 21:43:03 +02:00
|
|
|
cp -r $(WEBSERVER_RESOURCE_DIRS) $(SOGO_WEBSERVERRESOURCESDIR)/; \
|
2008-05-20 23:59:34 +02:00
|
|
|
fi
|
2008-02-14 18:31:23 +01:00
|
|
|
|
2012-10-19 18:46:46 +02:00
|
|
|
check ::
|
|
|
|
|
2008-02-14 18:31:23 +01:00
|
|
|
clean ::
|
|
|
|
|
|
|
|
distclean :: clean
|
|
|
|
|
|
|
|
uninstall ::
|
2009-11-18 17:44:46 +01:00
|
|
|
@if [ -L "$(SOGO_WEBSERVERRESOURCESDIR)" ]; then \
|
|
|
|
echo "$(SOGO_WEBSERVERRESOURCESDIR) is a symbolic link (for development?). Uninstallation skipped."; \
|
|
|
|
else \
|
|
|
|
rm -rf $(SOGO_WEBSERVERRESOURCESDIR); \
|
|
|
|
fi
|