Index: Makefile |
diff --git a/Makefile b/Makefile |
new file mode 100644 |
index 0000000000000000000000000000000000000000..5d8eef6d7d1fe3916206b776a0552d53c88de55a |
--- /dev/null |
+++ b/Makefile |
@@ -0,0 +1,35 @@ |
+include $(GOROOT)/src/Make.inc |
+ |
+TARG=github.com/josvazg/remotize |
+GOFILES=remotize.go |
+ |
+include $(GOROOT)/src/Make.pkg |
+ |
+clean: cleandeps |
+ |
+cleandeps: |
+ gomake -C tool clean |
+ gomake -C goremote clean |
+ gomake -C sample/dep clean |
+ gomake -C sample clean |
+ |
+all: $(GOROOT)/src/Make.rpkg _obj test sample/_obj |
+ |
+$(GOROOT)/src/Make.rpkg: tool/Make.rpkg |
+ cp tool/Make.rpkg $(GOROOT)/src/Make.rpkg |
+ |
+tool/_obj: _obj tool/gen.go tool/detect.go tool/tool_test.go |
+ gomake -C tool test install |
+ rm tool/remotized*.go |
+ |
+goremote/_obj: tool/_obj goremote/goremote.go |
+ #cd goremote && gotest |
+ gomake -C goremote install |
+ |
+sample/dep/_obj: sample/dep/dep.go |
+ gomake -C sample/dep install |
+ |
+sample/_obj: goremote/_obj sample/dep/_obj sample/sample.go sample/sample_test.go |
+ gomake -C sample test |
+ |
+ |