]> gitweb @ CieloNegro.org - sugar.git/blobdiff - GNUmakefile
Auto commit by The Sugar System.
[sugar.git] / GNUmakefile
index 6ffe0fb4d069b792a43f138aa6dc92880755d68b..5fa12308cc9cde3d1d9f7cb5d9bcfd560740ddf6 100644 (file)
@@ -9,6 +9,8 @@ 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:
@@ -43,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