mirror of
https://github.com/jorgebucaran/fisher
synced 2024-10-09 09:36:53 +02:00
Create empty fishfile during make install.
This commit is contained in:
parent
bc2215b50e
commit
77d806f846
1 changed files with 5 additions and 1 deletions
6
Makefile
6
Makefile
|
@ -6,6 +6,7 @@ FISH_CONFIG := $(XDG_CONFIG_HOME)/fish/config.fish
|
||||||
FISHER_HOME := $(dir $(abspath $(lastword $(MAKEFILE_LIST))))
|
FISHER_HOME := $(dir $(abspath $(lastword $(MAKEFILE_LIST))))
|
||||||
FISHER_CONFIG := $(XDG_CONFIG_HOME)/fisherman
|
FISHER_CONFIG := $(XDG_CONFIG_HOME)/fisherman
|
||||||
FISHER_CACHE := $(FISHER_CONFIG)/cache
|
FISHER_CACHE := $(FISHER_CONFIG)/cache
|
||||||
|
FISHER_FILE := $(FISHER_CONFIG)/fishfile
|
||||||
|
|
||||||
MAN := $(FISHER_HOME)/man
|
MAN := $(FISHER_HOME)/man
|
||||||
MAN1 := $(wildcard $(MAN)/man1/*.md)
|
MAN1 := $(wildcard $(MAN)/man1/*.md)
|
||||||
|
@ -23,7 +24,7 @@ TILDEIFY = sed "s|$$HOME|~|"
|
||||||
|
|
||||||
.PHONY: all test flush uninstall release
|
.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\
|
@if [ ! -s $(INDEX) ]; then\
|
||||||
echo "Downloading the index for the first time...";\
|
echo "Downloading the index for the first time...";\
|
||||||
fish -c "__fisher_index_update";\
|
fish -c "__fisher_index_update";\
|
||||||
|
@ -70,6 +71,9 @@ $(FISHER_CACHE):
|
||||||
@[ -d $@ ] || echo "Creating $@" | $(TILDEIFY)
|
@[ -d $@ ] || echo "Creating $@" | $(TILDEIFY)
|
||||||
@mkdir -p $@
|
@mkdir -p $@
|
||||||
|
|
||||||
|
$(FISHER_FILE):
|
||||||
|
@touch $@
|
||||||
|
|
||||||
$(AUTHORS): $(FISHER_HOME)
|
$(AUTHORS): $(FISHER_HOME)
|
||||||
@echo "# Authors" > $@
|
@echo "# Authors" > $@
|
||||||
@git -C $^ shortlog -sne | cut -f2- | \
|
@git -C $^ shortlog -sne | cut -f2- | \
|
||||||
|
|
Loading…
Reference in a new issue