From 26ca06f271bbb32b192bb4ca8e2ec581e4a63424 Mon Sep 17 00:00:00 2001 From: Jorge Bucaran Date: Tue, 2 Feb 2016 05:16:33 +0900 Subject: [PATCH] Create empty fishfile during make install. --- Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 4d995da..d67aa2b 100644 --- a/Makefile +++ b/Makefile @@ -6,6 +6,7 @@ FISH_CONFIG := $(XDG_CONFIG_HOME)/fish/config.fish FISHER_HOME := $(dir $(abspath $(lastword $(MAKEFILE_LIST)))) FISHER_CONFIG := $(XDG_CONFIG_HOME)/fisherman FISHER_CACHE := $(FISHER_CONFIG)/cache +FISHER_FILE := $(FISHER_CONFIG)/fishfile MAN := $(FISHER_HOME)/man MAN1 := $(wildcard $(MAN)/man1/*.md) @@ -23,7 +24,7 @@ TILDEIFY = sed "s|$$HOME|~|" .PHONY: all test flush uninstall release -all: $(FISH_CONFIG) $(FISHER_CACHE) $(AUTHORS) $(DOCS) +all: $(FISH_CONFIG) $(FISHER_CACHE) $(FISHER_FILE) $(AUTHORS) $(DOCS) @if [ ! -s $(INDEX) ]; then\ echo "Downloading the index for the first time...";\ fish -c "__fisher_index_update";\ @@ -70,6 +71,9 @@ $(FISHER_CACHE): @[ -d $@ ] || echo "Creating $@" | $(TILDEIFY) @mkdir -p $@ +$(FISHER_FILE): + @touch $@ + $(AUTHORS): $(FISHER_HOME) @echo "# Authors" > $@ @git -C $^ shortlog -sne | cut -f2- | \