X-Git-Url: https://jasonwoof.com/gitweb/?p=wfpl-cms.git;a=blobdiff_plain;f=Makefile;h=6ad94788811b9e874c7d86c785fe0ab4bf497993;hp=6829dacaa6a7bee51982605e0358db4e02c4d14a;hb=3ed0f0b53ff1b3ea3e30292bf39eb6e30935e9eb;hpb=6e0c7370e2881f5c7fe6fe6e16d30fc5b5593f9e diff --git a/Makefile b/Makefile index 6829dac..6ad9478 100644 --- a/Makefile +++ b/Makefile @@ -1,24 +1,25 @@ svgs= generated_images= $(svgs:.svg=.png) images= +images += $(svgs) images += $(generated_images) -objects= $(generated_images) .image-mtimes.styl style.css tags +objects= $(generated_images) .sha1sums.styl css.css tags all: $(objects) clean: rm -f $(objects) -style.css: styl.styl .image-mtimes.styl - compile-stylus $< +css.css: style.styl .sha1sums.styl + compile-stylus $< $@ -.image-mtimes.styl: $(images) +.sha1sums.styl: $(images) ( \ - echo -n 'mtimes = {'; \ + echo -n 'sha1 = {'; \ div=' '; \ for x in $^; do \ - echo -n "$$div '$$x': \"$$x?m=$$(stat -c '%Y' $$x)\""; \ + echo -n "$$div '$$x': \"$$x?m=$$(sha1sum < $$x | head -c 10)\""; \ div=,; \ done; \ echo " }"; \ @@ -36,5 +37,5 @@ style.css: styl.styl .image-mtimes.styl ; exit 1 \ ) -tags: *.php code/*.php code/wfpl/*.php - exuberant-ctags *.php code/*.php code/wfpl/*.php +tags: *.php inc/*.php inc/wfpl/*.php + exuberant-ctags *.php inc/*.php inc/wfpl/*.php