]> ruderich.org/simon Gitweb - safcm/safcm.git/blobdiff - Makefile
remote: guard against symlinks in earlier path components
[safcm/safcm.git] / Makefile
index 17f12134ad9b492be50dd9499656428c95327db9..b21ed3d0893740fd8fe2f590065f1f60738e43a2 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,6 @@
 LDFLAGS = '\
-    -X "main.versionGit=$(shell git describe --long --tags --dirty --always)" \
+    -X "main.versionGit=$(shell git describe --long --tags --dirty --always) \
+$(shell git show --no-patch --pretty=format:%as)" \
     -X "main.versionGo=$(shell go version)" \
 '
 # Build with `make GOFLAGS=` if -race is not supported
@@ -21,8 +22,13 @@ test:
        go vet ./...
        go test $(GOFLAGS) ./...
 
+lint:
+       shellcheck ci/run
+       shellcheck cmd/safcm-remote/build.sh
+       shellcheck cmd/safcm/testdata/ssh/prepare.sh
+
 clean:
-       rm -rf remote/helpers/
+       rm -rf cmd/safcm/remote/
        rm -f safcm
        rm -f cmd/safcm/testdata/ssh/ssh/authorized_keys
        rm -f cmd/safcm/testdata/ssh/ssh/id_ed25519
@@ -30,5 +36,6 @@ clean:
        rm -f cmd/safcm/testdata/ssh/ssh/known_hosts
        rm -f cmd/safcm/testdata/ssh/sshd/ssh_host_key
        rm -f cmd/safcm/testdata/ssh/sshd/ssh_host_key.pub
+       rm -rf cmd/safcm/testdata/ssh/project/no-changes.example.org/
 
 .PHONY: all test clean safcm