diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -7,6 +7,10 @@ bin=$(HOME)/.bin git_difme=$(bin)/git-difme git_difme_src=git-difme.scm +config_dir = $(HOME)/.config/git-difme +config_file=$(config_dir)/config +example_config=examples/config + nothing: @echo "Give me something to make. " .PHONY: nothing @@ -14,6 +18,9 @@ nothing: git-difme: $(git_difme) .PHONY: git-difme +config: $(config_file) +.PHONY: config + $(git_difme): $(git_difme_src) @mkdir -p $(bin) @touch $@ @@ -24,3 +31,8 @@ $(git_difme): $(git_difme_src) @echo "Script at" $@ @echo "Add" $(bin) "to PATH" +$(config_dir): + @mkdir -p $@ + +$(config_file): $(example_config) $(config_dir) + @cp -i $< $@ |