X-Git-Url: http://git.cielonegro.org/gitweb.cgi?a=blobdiff_plain;f=GNUmakefile;fp=GNUmakefile;h=5fa12308cc9cde3d1d9f7cb5d9bcfd560740ddf6;hb=5a4ae2f676698eb4c47e399858b7459269bf3fae;hp=6ffe0fb4d069b792a43f138aa6dc92880755d68b;hpb=1326b9b57e53f03dce3aa4fa9db9f28c9b91a9ee;p=sugar.git diff --git a/GNUmakefile b/GNUmakefile index 6ffe0fb..5fa1230 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -9,6 +9,8 @@ help: @echo " make install - update the current dot files with the repository" @echo " make import FILES=" @echo " - import the dot files into the repository" + @echo " make diff 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=" + @exit 1 +else +diff: + perl ./tools/diff.pl $(FILE) | $(PAGER) +endif + +.PHONY: help lint update commit install import diff