Makefile
50 lines
| 956 B
| text/x-makefile
|
MakefileLexer
r6 | ||||
r46 | BIN = txt2web | |||
r50 | DIST = $(BIN).tar.xz | |||
r55 | SCRIPT = $(BIN).ros | |||
r1 | ||||
r57 | BLACK := $(shell tput setaf 0) | |||
RED := $(shell tput setaf 1) | ||||
GREEN := $(shell tput setaf 2) | ||||
YELLOW := $(shell tput setaf 3) | ||||
LIGHTPURPLE := $(shell tput setaf 4) | ||||
PURPLE := $(shell tput setaf 5) | ||||
BLUE := $(shell tput setaf 6) | ||||
WHITE := $(shell tput setaf 7) | ||||
RESET := $(shell tput sgr0) | ||||
r44 | all: $(BIN) | |||
r57 | run: | |||
bin/${SCRIPT} | ||||
r46 | dist: $(DIST) | |||
r44 | graphs: diagrams.png | |||
r1 | ||||
r55 | $(BIN): bin/$(BIN) | |||
ln -f $< | ||||
bin/$(BIN): *.asd src/*.lisp src/*.ps strings/*.sexp bin/$(BIN).ros | ||||
r57 | @echo | |||
@echo "* ${GREEN}Building ${YELLOW}${BIN} ${GREEN}binary${RESET}..." | ||||
r55 | ros build bin/$(SCRIPT) | |||
r1 | ||||
r44 | %.png: %.dot | |||
r1 | dot $< -T png -o $@ | |||
r46 | $(DIST): $(BIN) extras/* | |||
r57 | @echo | |||
@echo "* ${GREEN}Packaging${RESET}..." | ||||
r46 | tar cfvJ $@ $< extras | |||
r1 | clean: | |||
r55 | rm -f $(BIN) bin/$(BIN) $(DIST) | |||
r44 | ||||
r52 | clean-cache: | |||
-rm -rf ~/.cache/common-lisp | ||||
r44 | ||||
r52 | fresh: clean clean-cache all | |||
r57 | .PHONY: all run graphs clean clean-cache fresh | |||