JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
stylus helper for ckeditor sizing
[wfpl-cms.git] / Makefile
index 6829dac..bd18a82 100644 (file)
--- 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 '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 +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