X-Git-Url: http://git.cielonegro.org/gitweb.cgi?a=blobdiff_plain;f=GNUmakefile;h=107eae235871179e7ae790efce16ae4194e1634f;hb=ed4d72a28e9df4da16e644b73514129c2f2d3e56;hp=0835be7f389014a9d0e3e3a078b53416d625aa64;hpb=013b2d3103f916fda0ba25a85673c4a45da72ce6;p=sugar.git diff --git a/GNUmakefile b/GNUmakefile index 0835be7..107eae2 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -1,6 +1,45 @@ +help: + @echo + @echo " .:. Sugar - The Dot-Files Manager .:." + @echo + @echo "Usage:" + @echo " make lint - lint The Sugar System" + @echo " make update - update repository with the current dot files" + @echo " make commit - commit changes to the repository" + @echo " make install - update the current dot files with the repository" + @echo " make import FILES=" + @echo " - import the dot files into the repository" + @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 + 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 + +update: + git pull + perl ./tools/list-files.pl | perl ./tools/update.pl + perl ./tools/list-files.pl | perl ./tools/find-outdated.pl + git status + +commit: + git add -A + git commit -m 'Auto commit by The Sugar System.' + git push + git log --stat --unified -1 --color + +install: lint + perl ./tools/list-files.pl | perl ./tools/install.pl + +ifeq ($(FILES),) +import: + @echo "Specify at least one file." + @echo "Usage: make import FILES=" + @exit 1 +else +import: + perl ./tools/import.pl $(FILES) + -git status +endif -.PHONY: lint \ No newline at end of file +.PHONY: help lint update commit install import