null :=
SPACE := $(null) $(null)
all: html js json video audio images
Makefile: Makefile.inc
Makefile.inc: configure
./configure $@
include Makefile.inc
UGLIFYJS := node_modules/.bin/uglifyjs $(UGLIFYJSFLAGS)
%.gz: %
ifdef GZIP
ifdef DEFLUFF
$(GZIP) -c $< | $(DEFLUFF) > $@
else
$(GZIP) -c $< > $@
endif
touch $< $@
endif
# === HTML ===
html: www/index.html
www/index.html: www/index.html.dist
$(if $(DEBUG), sed -e 's:$(subst www/,,$(JSOUT)):$(subst $(SPACE),">