2018-01-04 05:06:24 +01:00
|
|
|
SOURCES = bin/maid bin/serv bin/pass bin/theme
|
|
|
|
BIN = bin/
|
2017-12-21 18:44:57 +01:00
|
|
|
|
|
|
|
.PHONY: all
|
|
|
|
all: $(SOURCES)
|
|
|
|
|
2018-01-04 05:06:24 +01:00
|
|
|
.PHONY: release
|
2017-12-21 18:44:57 +01:00
|
|
|
production: FLAGS = --release
|
|
|
|
production: $(SOURCES)
|
|
|
|
|
|
|
|
.PHONY: update
|
|
|
|
update:
|
|
|
|
shards update
|
|
|
|
|
|
|
|
.PHONY: install
|
|
|
|
install:
|
|
|
|
shards install
|
|
|
|
|
|
|
|
bin/maid: src/maid.cr
|
2018-01-04 05:06:24 +01:00
|
|
|
@mkdir -p ${BIN}
|
|
|
|
crystal build $< -o $@ $(FLAGS)
|
2017-12-21 18:44:57 +01:00
|
|
|
|
|
|
|
bin/pass: src/pass.cr
|
2018-01-04 05:06:24 +01:00
|
|
|
@mkdir -p ${BIN}
|
|
|
|
crystal build $< -o $@ $(FLAGS)
|
2017-12-21 18:44:57 +01:00
|
|
|
|
2018-01-04 05:06:24 +01:00
|
|
|
bin/theme: src/theme.cr src/theme_helper/*.cr
|
|
|
|
@mkdir -p ${BIN}
|
|
|
|
crystal build $< -o $@ $(FLAGS)
|
2017-12-21 18:44:57 +01:00
|
|
|
|
2018-01-04 05:06:24 +01:00
|
|
|
bin/trufetch: src/trufetch.cr
|
|
|
|
@mkdir -p ${BIN}
|
2017-12-24 05:32:24 +01:00
|
|
|
crystal build $< -o $@ $(FLAGS)
|
2018-01-04 05:06:24 +01:00
|
|
|
|
|
|
|
bin/git-blame: src/git-blame.cr
|
|
|
|
@mkdir -p ${BIN}
|
|
|
|
crystal build $< -o $@ ${FLAGS}
|
|
|
|
|
|
|
|
bin/plain-text: src/plain-text.cr
|
|
|
|
@mkdir -p ${BIN}
|
|
|
|
crystal build $< -o $@ ${FLAGS}
|