Browse Source

Do not compile less files on development build

Fixes #998
NEWTESTIMONIALPAGES
Reinhard Müller 3 months ago
parent
commit
cf78e55f58
2 changed files with 6 additions and 1 deletions
  1. 5
    0
      Makefile
  2. 1
    1
      build/buildrun.sh

+ 5
- 0
Makefile View File

@@ -10,6 +10,9 @@
.PHONY: all .FORCE
.FORCE:

# This will be overwritten in the command line running this Makefile.
build_env = development

# -----------------------------------------------------------------------------
# Update CSS files
# -----------------------------------------------------------------------------
@@ -17,10 +20,12 @@
# This step recompiles the less files into the final CSS files to be
# distributed to the web server.

ifneq ($(build_env),development)
all: look/fsfe.min.css look/valentine.min.css
look/%.min.css: $(shell find "look" -name '*.less')
echo "* Compiling $@"
lessc "look/$*.less" -x "$@"
endif

# -----------------------------------------------------------------------------
# Update XSL stylesheets

+ 1
- 1
build/buildrun.sh View File

@@ -20,7 +20,7 @@ build_into(){

{
echo "Starting phase 1" \
&& make --silent --directory="$basedir" 2>&1 \
&& make --silent --directory="$basedir" build_env="${build_env:-development}" 2>&1 \
&& echo "Finishing phase 1" \
|| die "Error during phase 1"
} | t_logstatus phase_1 || exit 1

Loading…
Cancel
Save