mirror of
https://github.com/donovanglover/nix-config.git
synced 2024-11-25 09:43:11 +01:00
32 lines
537 B
Makefile
32 lines
537 B
Makefile
SOURCES = bin/maid bin/serv bin/pass bin/mktex bin/theme
|
|
|
|
.PHONY: all
|
|
all: $(SOURCES)
|
|
|
|
.PHONY: production
|
|
production: FLAGS = --release
|
|
production: $(SOURCES)
|
|
|
|
.PHONY: update
|
|
update:
|
|
shards update
|
|
|
|
.PHONY: install
|
|
install:
|
|
shards install
|
|
|
|
bin/maid: src/maid.cr
|
|
crystal build $^ -o $@ $(FLAGS)
|
|
|
|
bin/serv: src/serv.cr
|
|
crystal build $^ -o $@ $(FLAGS)
|
|
|
|
bin/pass: src/pass.cr
|
|
crystal build $^ -o $@ $(FLAGS)
|
|
|
|
bin/mktex: src/mktex.cr
|
|
crystal build $^ -o $@ $(FLAGS)
|
|
|
|
bin/theme: src/theme.cr lib/theme.cr
|
|
crystal build $< -o $@ $(FLAGS)
|