X-Git-Url: https://jasonwoof.com/gitweb/?p=wfpl-cms.git;a=blobdiff_plain;f=Makefile;h=1b1cce677beb7f8ec7ade050762a41dc32e1affa;hp=6829dacaa6a7bee51982605e0358db4e02c4d14a;hb=HEAD;hpb=6e0c7370e2881f5c7fe6fe6e16d30fc5b5593f9e diff --git a/Makefile b/Makefile index 6829dac..1b1cce6 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: style.css clean: - rm -f $(objects) + rm -f css.css tags -style.css: styl.styl .image-mtimes.styl - compile-stylus $< +style.css: css/style.scss + ./build production && cp css/dist/css.css style.css -.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 code/*.php code/wfpl/*.php - exuberant-ctags *.php code/*.php code/wfpl/*.php +tags: *.php inc/*.php inc/wfpl/*.php + ctags *.php inc/*.php inc/wfpl/*.php