]> ruderich.org/simon Gitweb - safcm/safcm.git/commitdiff
Makefile: move command to test target
authorSimon Ruderich <simon@ruderich.org>
Wed, 21 Apr 2021 06:28:08 +0000 (08:28 +0200)
committerSimon Ruderich <simon@ruderich.org>
Thu, 22 Apr 2021 06:06:50 +0000 (08:06 +0200)
The permissions are only relevant when running tests.

Makefile

index 5549539245c535c6d0e92d7022ea531622a83e3a..17f12134ad9b492be50dd9499656428c95327db9 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -12,10 +12,11 @@ safcm:
        go fmt ./...
        cd cmd/safcm-remote && ./build.sh
        go build $(GOFLAGS) -ldflags $(LDFLAGS) ruderich.org/simon/safcm/cmd/safcm
-       @# For proper permissions after initial clone with a strict umask
-       cd cmd/safcm/testdata/project && ../../../../safcm fixperms 2> /dev/null
 
 test:
+       @# For proper permissions after initial clone with a strict umask
+       cd cmd/safcm/testdata/project && ../../../../safcm fixperms 2> /dev/null
+       @#
        ./cmd/safcm/testdata/ssh/prepare.sh
        go vet ./...
        go test $(GOFLAGS) ./...