X-Git-Url: https://jasonwoof.com/gitweb/?p=wfpl-cms.git;a=blobdiff_plain;f=Makefile;fp=Makefile;h=c7a7078e67dcc795e06cc14bf06497f2b06d6545;hp=b32e60b28b7f5d575c6aa4db72d7fbaf7946234e;hb=9cd73aa3d18a76feb8fe640071c9e7e90abf4f8f;hpb=4a77c4714474748eb99eb67ef29fa03612077d0a diff --git a/Makefile b/Makefile index b32e60b..c7a7078 100644 --- a/Makefile +++ b/Makefile @@ -1,41 +1,10 @@ -svgs= -minified_svgs= $(svgs:.svg=.min.svg) -generated_images= $(svgs:.svg=.png) -images= -images += $(generated_images) $(minified_svgs) - -objects= $(generated_images) $(minified_svgs) .sha1sums.styl css.css tags - -all: $(objects) +all: css.css clean: - rm -f $(objects) - -css.css: style.styl .sha1sums.styl inc/wfpl/stylus_helpers.styl - stylus -p $< > $@ || rm -f "$@" + rm -f css.css -.sha1sums.styl: $(images) - ( \ - echo -n 'sha1 = {'; \ - div=' '; \ - for x in $^; do \ - echo -n "$$div '$$x': \"$$x?m=$$(sha1sum < $$x | head -c 10)\""; \ - div=,; \ - done; \ - echo " }"; \ - ) > $@ || ( \ - rm -f $@; \ - exit 1; \ - ) -%.png: %.svg - ( \ - inkscape -f $< -e $@ --export-area-page --without-gui --export-dpi=360 \ - && mogrify -alpha off -geometry '25%' $@ \ - && pngfix $@ \ - ) || ( \ - rm -f $@ \ - ; exit 1 \ - ) +css.css: style.sass + ./build production %.min.svg: %.svg svgo $< $@