2019-01-05 12:25:38 +01:00
|
|
|
.phony: build
|
|
|
|
build:
|
|
|
|
./build.bash
|
2019-03-17 22:28:25 +01:00
|
|
|
./Documentation/MANPAGE-render.bash
|
2019-01-05 12:25:38 +01:00
|
|
|
|
|
|
|
.phony: test
|
|
|
|
test:
|
|
|
|
./test.bash
|
|
|
|
|
2019-05-01 13:11:42 +02:00
|
|
|
.phony: root_test
|
|
|
|
root_test:
|
|
|
|
./build.bash
|
2021-03-12 17:42:44 +01:00
|
|
|
cd tests/root_test && go test -c && sudo ./root_test.test -test.v
|
2019-05-01 13:11:42 +02:00
|
|
|
|
2019-01-05 12:25:38 +01:00
|
|
|
.phony: format
|
|
|
|
format:
|
|
|
|
go fmt ./...
|
2019-03-17 22:28:25 +01:00
|
|
|
|
2021-08-13 10:41:48 +02:00
|
|
|
# Keep in sync with uninstall!
|
2019-03-17 22:28:25 +01:00
|
|
|
.phony: install
|
|
|
|
install:
|
|
|
|
install -Dm755 -t "$(DESTDIR)/usr/bin/" gocryptfs
|
|
|
|
install -Dm755 -t "$(DESTDIR)/usr/bin/" gocryptfs-xray/gocryptfs-xray
|
|
|
|
install -Dm644 -t "$(DESTDIR)/usr/share/man/man1/" Documentation/gocryptfs.1
|
2019-03-18 08:27:24 +01:00
|
|
|
install -Dm644 -t "$(DESTDIR)/usr/share/man/man1/" Documentation/gocryptfs-xray.1
|
2019-03-17 22:28:25 +01:00
|
|
|
install -Dm644 -t "$(DESTDIR)/usr/share/licenses/gocryptfs" LICENSE
|
2021-07-29 12:12:49 +02:00
|
|
|
|
2021-08-13 10:41:48 +02:00
|
|
|
.phony: uninstall
|
|
|
|
uninstall:
|
|
|
|
rm -f "$(DESTDIR)/usr/bin/gocryptfs"
|
|
|
|
rm -f "$(DESTDIR)/usr/bin/gocryptfs-xray"
|
|
|
|
rm -f "$(DESTDIR)/usr/share/man/man1/gocryptfs.1"
|
|
|
|
rm -f "$(DESTDIR)/usr/share/man/man1/gocryptfs-xray.1"
|
|
|
|
rm -f "$(DESTDIR)/usr/share/licenses/gocryptfs/LICENSE"
|
|
|
|
|
2021-07-29 12:12:49 +02:00
|
|
|
.phony: ci
|
|
|
|
ci:
|
|
|
|
uname -a ; go version ; openssl version
|
|
|
|
df -Th / /tmp /var/tmp
|
|
|
|
|
|
|
|
./build-without-openssl.bash
|
|
|
|
./build.bash
|
|
|
|
./test.bash
|
|
|
|
make root_test
|
|
|
|
./crossbuild.bash
|
|
|
|
|
|
|
|
echo "Rebuild with locked dependencies"
|
|
|
|
# Download dependencies to "vendor" directory
|
|
|
|
go mod vendor
|
|
|
|
# Delete global cache
|
|
|
|
go clean -modcache
|
|
|
|
# GOPROXY=off makes sure we fail instead of making network requests
|
|
|
|
# (we should not need any!)
|
2021-07-29 11:21:16 +02:00
|
|
|
GOPROXY=off ./build.bash
|
2021-07-29 12:12:49 +02:00
|
|
|
# Delete "vendor" dir
|
2021-08-11 20:23:46 +02:00
|
|
|
rm -R vendor
|