X-Git-Url: http://git.cielonegro.org/gitweb.cgi?a=blobdiff_plain;f=GNUmakefile;fp=GNUmakefile;h=107eae235871179e7ae790efce16ae4194e1634f;hb=ed4d72a28e9df4da16e644b73514129c2f2d3e56;hp=866991b30b96671a7298462c81ca4949960fb008;hpb=1d08ea050d896720eb30b7ab23694918d1be6df9;p=sugar.git diff --git a/GNUmakefile b/GNUmakefile index 866991b..107eae2 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -7,6 +7,8 @@ help: @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: @@ -29,4 +31,15 @@ commit: install: lint perl ./tools/list-files.pl | perl ./tools/install.pl -.PHONY: help lint update commit install +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: help lint update commit install import