Makefile 436 B

123456789101112
  1. CHECK_YUI_COMPRESSOR := $(shell command -v yui-compressor 2> /dev/null)
  2. CURRENT_DIR := $(shell dirname $(realpath $(firstword $(MAKEFILE_LIST))))
  3. default: --check-yui-compressor
  4. yui-compressor ${CURRENT_DIR}/gogs/public/css/dark-gogs.dev.css \
  5. -o ${CURRENT_DIR}/gogs/public/css/dark-gogs.css
  6. --check-yui-compressor:
  7. @if [ "${CHECK_YUI_COMPRESSOR}" = "" ]; then \
  8. echo "Error: yui-compressor is not installed"; \
  9. exit 1; \
  10. fi