fastmirror/Makefile
2024-05-22 13:58:36 -07:00

19 lines
371 B
Makefile

TESTHOST := nnny-sync-alpha.nebula
fmt:
go fmt ./...
lint:
golangci-lint run
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