X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=Makefile;h=c7a7078e67dcc795e06cc14bf06497f2b06d6545;hb=01c953a17babb9d6fedb751671d7e05bc6f33a92;hp=4610bd4d444ae2069176f169054e6a158a61b699;hpb=f2f0ae126ce56ba2eb42fee9a44afe848c74cab8;p=wfpl-cms.git diff --git a/Makefile b/Makefile index 4610bd4..c7a7078 100644 --- a/Makefile +++ b/Makefile @@ -1,40 +1,13 @@ -svgs= -generated_images= $(svgs:.svg=.png) -images= -images += $(generated_images) - -objects= $(generated_images) .sha1sums.styl css.css tags - -all: $(objects) +all: css.css clean: - rm -f $(objects) + rm -f css.css -css.css: style.styl .sha1sums.styl - compile-stylus $< $@ +css.css: style.sass + ./build production -.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 \ - ) +%.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