X-Git-Url: https://jasonwoof.com/gitweb/?p=wfpl-cms.git;a=blobdiff_plain;f=Makefile;h=6ad94788811b9e874c7d86c785fe0ab4bf497993;hp=f0d0adb07595fef5fdc4788ee768b956f21e80b9;hb=3ed0f0b53ff1b3ea3e30292bf39eb6e30935e9eb;hpb=19da07bf62eaca97c6516e664733fa1d534389b3 diff --git a/Makefile b/Makefile index f0d0adb..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 '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 +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