You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
705 B
33 lines
705 B
dev: clean .bin/gopherhole .bin/config.json
|
|
cd .bin && ./gopherhole -config config.json
|
|
|
|
client-dev: client/node_modules
|
|
cd ./client && npm run dev
|
|
|
|
client/node_modules:
|
|
cd ./client && npm install
|
|
|
|
clean:
|
|
@rm -rf .bin/gopherhole
|
|
|
|
clobber:
|
|
@rm -rf .bin ./client/node_modules
|
|
|
|
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
|