diff options
Diffstat (limited to '')
-rw-r--r-- | Makefile | 34 |
1 files changed, 33 insertions, 1 deletions
@@ -29,9 +29,15 @@ CMDS = keccak-224sum keccak-256sum keccak-384sum keccak-512sum keccaksum \ +.PHONY: default +default: command shell + .PHONY: all -all: $(foreach C,$(CMDS),bin/$(C)) +all: command shell + +.PHONY: command +commands: $(foreach C,$(CMDS),bin/$(C)) bin/%: obj/%.o obj/common.o @mkdir -p bin @@ -42,6 +48,32 @@ obj/%.o: src/%.c src/*.h $(CC) $(FLAGS) $(COPTIMISE) -c -o $@ $< $(CFLAGS) $(CPPFLAGS) +.PHONY: shell +shell: bash zsh fish + +.PHONY: bash +bash: $(foreach C,$(CMDS),bin/$(C).bash) + +.PHONY: zsh +zsh: $(foreach C,$(CMDS),bin/$(C).zsh) + +.PHONY: fish +fish: $(foreach C,$(CMDS),bin/$(C).fish) + +bin/%.bash: src/completion + @mkdir -p bin + auto-auto-complete bash --output $@ --source $< command=$* + +bin/%.zsh: src/completion + @mkdir -p bin + auto-auto-complete zsh --output $@ --source $< command=$* + +bin/%.fish: src/completion + @mkdir -p bin + auto-auto-complete fish --output $@ --source $< command=$* + + + .PHONY: clean clean: -rm -r bin obj |