X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=Makefile;h=bd18a82f9bdf1d8707e4056865595a55eafe373e;hb=3cd287d53569b6b873c971d171624288c4d63f1a;hp=f0d0adb07595fef5fdc4788ee768b956f21e80b9;hpb=19da07bf62eaca97c6516e664733fa1d534389b3;p=wfpl-cms.git diff --git a/Makefile b/Makefile index f0d0adb..bd18a82 100644 --- a/Makefile +++ b/Makefile @@ -3,22 +3,22 @@ generated_images= $(svgs:.svg=.png) images= images += $(generated_images) -objects= $(generated_images) .image-mtimes.styl style.css tags +objects= $(generated_images) .sha1sums.styl style.css tags all: $(objects) clean: rm -f $(objects) -style.css: styl.styl .image-mtimes.styl +style.css: styl.styl .sha1sums.styl compile-stylus $< -.image-mtimes.styl: $(images) +.sha1sums.styl: $(images) ( \ - echo -n 'w-mtime = {'; \ + 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 +36,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