]> gitweb @ CieloNegro.org - sugar.git/blobdiff - GNUmakefile
Auto commit by The Sugar System.
[sugar.git] / GNUmakefile
index 107eae235871179e7ae790efce16ae4194e1634f..8d1bdb76085ae881990efa421094823b25320f41 100644 (file)
@@ -9,18 +9,21 @@ help:
        @echo "  make install - update the current dot files with the repository"
        @echo "  make import FILES=<FILES>"
        @echo "               - import the dot files into the repository"
+       @echo "  make diff FILE=<FILE>"
+       @echo "               - show diff of the dot file"
        @echo
 
 lint:
        perl ./tools/list-files.pl | perl ./tools/find-missing.pl
        perl ./tools/list-files.pl | perl ./tools/find-outdated.pl
        perl ./tools/list-files.pl | perl ./tools/find-changed.pl
+       -git status
 
 update:
        git pull
        perl ./tools/list-files.pl | perl ./tools/update.pl
        perl ./tools/list-files.pl | perl ./tools/find-outdated.pl
-       git status
+       -git status
 
 commit:
        git add -A
@@ -42,4 +45,14 @@ import:
        -git status
 endif
 
-.PHONY: help lint update commit install import
+ifeq ($(FILE),)
+diff:
+       @echo "Specify one file."
+       @echo "Usage: make diff FILE=<FILE>"
+       @exit 1
+else
+diff:
+       perl ./tools/diff.pl $(FILE) | $(PAGER)
+endif
+
+.PHONY: help lint update commit install import diff