X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=Makefile;h=c7a7078e67dcc795e06cc14bf06497f2b06d6545;hb=9cd73aa3d18a76feb8fe640071c9e7e90abf4f8f;hp=dcea8ba160ffc0c756231e00f6eaf03ebe00cb6d;hpb=16a4b92f58a1138e27419bd8482d67d4061a7bc7;p=wfpl-cms.git diff --git a/Makefile b/Makefile index dcea8ba..c7a7078 100644 --- a/Makefile +++ b/Makefile @@ -1,40 +1,13 @@ -svgs= -generated_images= $(svgs:.svg=.png) -images= -images += $(generated_images) - -objects= $(generated_images) .image-mtimes.styl style.css tags - -all: $(objects) +all: css.css clean: - rm -f $(objects) + rm -f css.css -style.css: styl.styl .image-mtimes.styl - compile-stylus $< +css.css: style.sass + ./build production -.image-mtimes.styl: $(images) - ( \ - echo -n 'mtimes = {'; \ - div=' '; \ - for x in $^; do \ - echo -n "$$div '$$x': \"$$x?m=$$(stat -c '%Y' $$x)\""; \ - 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 \ - ) +%.min.svg: %.svg + svgo $< $@ tags: *.php inc/*.php inc/wfpl/*.php - exuberant-ctags *.php inc/*.php inc/wfpl/*.php + ctags *.php inc/*.php inc/wfpl/*.php