Style, more doc in README
This commit is contained in:
12
Makefile
12
Makefile
@@ -15,10 +15,9 @@
|
||||
# OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
.PHONY: clean build upload
|
||||
.SILENT:
|
||||
.NOTPARALLEL:
|
||||
|
||||
EXECUTABLES = clang gcc uuid rsync lld taskset
|
||||
DEPENDENCIES := $(foreach exec,$(EXECUTABLES), $(if $(shell which $(exec) 2> /dev/null),X,$(error "No '$(exec)' in PATH, please install it and restart octopus !")))
|
||||
EXECUTABLES= clang gcc uuid rsync lld taskset
|
||||
XXXX:= $(foreach exec,$(EXECUTABLES), $(if $(shell which $(exec) 2> /dev/null),X,$(error "No '$(exec)' in PATH, please install it and restart octopus !")))
|
||||
|
||||
### Generic flags
|
||||
SRCS= spectre_v1 spectre_v2
|
||||
@@ -50,9 +49,9 @@ VULN1:= $(shell cat /sys/devices/system/cpu/vulnerabilities/spectre_v1)
|
||||
VULN2:= $(shell cat /sys/devices/system/cpu/vulnerabilities/spectre_v2)
|
||||
|
||||
ifndef PROGRESS
|
||||
HIT_TOTAL != ${MAKE} ${MAKECMDGOALS} --dry-run PROGRESS="HIT_MARK" | grep -c "HIT_MARK"
|
||||
HIT_COUNT = $(eval HIT_N != expr ${HIT_N} + 1)${HIT_N}
|
||||
PROGRESS = echo "[`expr ${HIT_COUNT} '*' 100 / ${HIT_TOTAL}`%]"
|
||||
HIT_TOTAL!= $(MAKE) $(MAKECMDGOALS) --dry-run PROGRESS="HIT_MARK" | grep -c "HIT_MARK"
|
||||
HIT_COUNT= $(eval HIT_N != expr $(HIT_N) + 1)$(HIT_N)
|
||||
PROGRESS= echo "[`expr $(HIT_COUNT) '*' 100 / $(HIT_TOTAL)`%]"
|
||||
endif
|
||||
|
||||
SUB_ONE= $(word 1, $(subst -, ,$@))
|
||||
@@ -108,7 +107,6 @@ PROGS+= $(RSCPROGS)
|
||||
PROGS+= $(RGROGS)
|
||||
PROGS+= $(RSGPROGS)
|
||||
|
||||
|
||||
all: upload
|
||||
echo -e "\033[1mThank you for helping science today !\033[0m"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user