]> ruderich.org/simon Gitweb - safcm/safcm.git/blobdiff - Makefile
First working version
[safcm/safcm.git] / Makefile
diff --git a/Makefile b/Makefile
new file mode 100644 (file)
index 0000000..8ccec9d
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,14 @@
+all: safcm
+
+safcm:
+       go fmt ./...
+       cd cmd/safcm-remote && ./build.sh
+       go build -race 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
+
+clean:
+       rm -rf remote/helpers/
+       rm -f safcm
+
+.PHONY: all clean safcm