27 lines
572 B
Makefile
27 lines
572 B
Makefile
dev: clean .bin/gopherhole .bin/config.json
|
|
cd .bin && ./gopherhole -config config.json
|
|
|
|
clean:
|
|
@rm -rf .bin/gopherhole
|
|
|
|
clobber:
|
|
@rm -rf .bin
|
|
|
|
test:
|
|
dig -p 5353 twitter.com @localhost
|
|
dig -p 5353 google.com @localhost
|
|
dig -p 5353 loki.veldhousen.ninja @localhost
|
|
dig -p 5353 www.liveauctioneers.com @localhost
|
|
|
|
.PHONY: clean clobber dev
|
|
|
|
.bin:
|
|
mkdir -p .bin
|
|
|
|
.bin/gopherhole: .bin
|
|
# @go build --tags "sqlite_foreign_keys fts5" -v -o .bin/gopherhole .
|
|
@go build --tags "fts5" -v -o .bin/gopherhole .
|
|
|
|
.bin/config.json:
|
|
@cp ./config.example.json .bin/config.json
|