fastmirror/Makefile

19 lines
371 B
Makefile
Raw Normal View History

2024-05-22 20:58:36 +00:00
TESTHOST := nnny-sync-alpha.nebula
2024-05-22 16:55:46 +00:00
fmt:
go fmt ./...
lint:
golangci-lint run
2024-05-22 20:58:36 +00:00
test:
rsync -avP --exclude .git --delete ./ root@$(TESTHOST):/root/fastmirror
ssh root@$(TESTHOST) "cd /root/fastmirror && make dotest"
dotest:
rm -f /etc/apt/sources.list.d/*
cp /root/ubuntu.sources /etc/apt/sources.list.d/
go build -o ./fastmirror ./cmd/fastmirror
./fastmirror