Skip to content

Commit

Permalink
Minify HTML templates upon compiling program.
Browse files Browse the repository at this point in the history
  • Loading branch information
allinurl committed May 8, 2018
1 parent 9016440 commit e148730
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -25,19 +25,21 @@ BUILT_SOURCES = \
chartsjs.h \
appjs.h

CLEANFILES = \
src/tpls.h \
src/bootstrapcss.h \
src/facss.h \
src/appcss.h \
src/d3js.h \
src/hoganjs.h \
src/chartsjs.h \
src/appjs.h
CLEANFILES = \
src/tpls.h \
src/bootstrapcss.h \
src/facss.h \
src/appcss.h \
src/d3js.h \
src/hoganjs.h \
src/chartsjs.h \
src/appjs.h \
resources/tpls.html.tmp

# Tpls
tpls.h: bin2c$(EXEEXT) resources/tpls.html
./bin2c resources/tpls.html src/tpls.h tpls
cat resources/tpls.html | sed "s/^[ \t]*//" | sed "/^$$/d" | tr -d "\r\n" > resources/tpls.html.tmp
./bin2c resources/tpls.html.tmp src/tpls.h tpls
# Bootstrap
bootstrapcss.h: bin2c$(EXEEXT) resources/css/bootstrap.min.css
./bin2c resources/css/bootstrap.min.css src/bootstrapcss.h bootstrap_css
Expand Down

0 comments on commit e148730

Please sign in to comment.