.Makefile 686 Bytes
Newer Older
1 2 3 4 5 6 7 8
#This makefile only contains development workflow rules.
.PHONY: all
all: generate-completions README.md

.PHONY: generate-completions
generate-completions: completions/zsh/_argotk.hs completions/bash/argotk.sh

completions/zsh/_argotk.hs: argotk.hs default.nix
9
	bash -c './argotk.hs --zsh-completion-script ./argotk.hs > completions/zsh/_argotk.hs'
10 11

completions/bash/argotk.sh: argotk.hs default.nix
12
	bash -c './argotk.hs --bash-completion-script ./argotk.hs > completions/bash/argotk.sh'
13 14

README.md: .README.md argotk.hs default.nix
15
	pandoc --filter `which panpipe` .README.md -o README.md
16 17

README.html: README.md
18
	pandoc README.md -o README.html
19 20 21 22

.PHONY:clean
clean:
	rm README.html