@@ -57,11 +57,11 @@ ghost: deps
57
57
$(call cmd_msg,GO,cmd/$@ )
58
58
@GOBIN=$(BIN ) $(GO ) install $(LDFLAGS ) $(CURDIR ) /cmd/$@
59
59
60
- $(BIN ) /ghost.% . linux :
60
+ $(BIN ) /ghost.linux. % :
61
61
$(call cmd_msg,GO,$(notdir $@ ) )
62
62
@GOOS=linux GOARCH=$* $(GO ) build $(LDFLAGS ) -o $@ $(CURDIR ) /cmd/ghost
63
63
64
- $(BIN ) /ghost.% . linux.sha1 : $(BIN ) /ghost.% .linux
64
+ $(BIN ) /ghost.linux. % .sha1 : $(BIN ) /ghost.% .linux
65
65
$(call cmd_msg,SHA1,$(notdir $< ) )
66
66
@cd $(BIN ) && sha1sum $(notdir $< ) > $(notdir $@ )
67
67
@@ -71,6 +71,9 @@ build-go: overlordd ghost ghost-all
71
71
72
72
build-py :
73
73
@ln -sf ../scripts/ghost.py bin
74
+ $(call cmd_msg,SHA1,ghost.py)
75
+ @sha1sum scripts/ghost.py > bin/ghost.py.sha1
76
+
74
77
@mkdir -p $(BUILD)
75
78
$(call cmd_msg,VENV,creating virtualenv)
76
79
@rm -rf $(BUILD)/.venv
@@ -79,14 +82,21 @@ build-py:
79
82
@cd $(BUILD); \
80
83
. $(BUILD)/.venv/bin/activate; \
81
84
pip install -q -r $(CURDIR)/requirements.txt; \
82
- pip install -q pyinstaller; \
83
- $(call cmd_msg,GEN,ovl.py.bin) ; \
84
- pyinstaller --onefile $(CURDIR ) /scripts/ovl.py > /dev/null; \
85
- $(call cmd_msg,GEN,ghost.py.bin) ; \
85
+ pip install -q pyinstaller
86
+
87
+ $(call cmd_msg,GEN,ovl.pybin)
88
+ @cd $(BUILD); . $(BUILD)/.venv/bin/activate; \
89
+ pyinstaller --onefile $(CURDIR)/scripts/ovl.py > /dev/null;
90
+ @mv $(BUILD)/dist/ovl $(BIN)/ovl.pybin
91
+ $(call cmd_msg,SHA1,ovl.pybin)
92
+ @cd $(BIN) && sha1sum ovl.pybin > ovl.pybin.sha1
93
+
94
+ $(call cmd_msg,GEN,ghost.pybin)
95
+ @cd $(BUILD); . $(BUILD)/.venv/bin/activate; \
86
96
pyinstaller --onefile $(CURDIR)/scripts/ghost.py > /dev/null
87
- $( call cmd_msg,MV,binaries to $(BIN ) )
88
- @mv $( BUILD ) /dist/ovl $( BIN ) /ovl.py.bin
89
- @mv $(BUILD ) /dist/ ghost $( BIN ) / ghost.py.bin
97
+ @mv $(BUILD)/dist/ghost $(BIN)/ghost.pybin
98
+ $(call cmd_msg,SHA1,ghost.pybin)
99
+ @cd $(BIN) && sha1sum ghost.pybin > ghost.pybin.sha1
90
100
91
101
go-fmt :
92
102
$(call cmd_msg,FMT,$(GO_DIRS ) )
@@ -124,5 +134,5 @@ clean-apps:
124
134
clean : clean-apps
125
135
$(call cmd_msg,RM,build artifacts)
126
136
@rm -rf $(BIN ) /ghost* $(BIN ) /overlordd $(BUILD ) \
127
- $(BIN ) /ghost.py.bin $(BIN ) /ovl.py.bin \
137
+ $(BIN ) /ghost.pybin $(BIN ) /ovl.pybin \
128
138
$(DIST_APPS_DIR )
0 commit comments