mirror of
				https://github.com/davidgiven/fluxengine.git
				synced 2025-10-24 11:11:02 -07:00 
			
		
		
		
	| @@ -48,7 +48,10 @@ endif | |||||||
| EXT ?= | EXT ?= | ||||||
|  |  | ||||||
| ifeq ($(PROGRESSINFO),) | ifeq ($(PROGRESSINFO),) | ||||||
| rulecount := $(strip $(shell $(MAKE) --no-print-directory -q $(OBJ)/build.mk PROGRESSINFO=1 && $(MAKE) --no-print-directory -n $(MAKECMDGOALS) PROGRESSINFO=XXXPROGRESSINFOXXX | grep XXXPROGRESSINFOXXX | wc -l)) | # The first make invocation here has to have its output discarded or else it | ||||||
|  | # produces spurious 'Leaving directory' messages... don't know why. | ||||||
|  | rulecount := $(strip $(shell $(MAKE) --no-print-directory -q $(OBJ)/build.mk PROGRESSINFO=1 > /dev/null \ | ||||||
|  | 	&& $(MAKE) --no-print-directory -n $(MAKECMDGOALS) PROGRESSINFO=XXXPROGRESSINFOXXX | grep XXXPROGRESSINFOXXX | wc -l)) | ||||||
| ruleindex := 1 | ruleindex := 1 | ||||||
| PROGRESSINFO = "[$(ruleindex)/$(rulecount)]$(eval ruleindex := $(shell expr $(ruleindex) + 1))" | PROGRESSINFO = "[$(ruleindex)/$(rulecount)]$(eval ruleindex := $(shell expr $(ruleindex) + 1))" | ||||||
| endif | endif | ||||||
|   | |||||||
| @@ -423,7 +423,7 @@ def emit_rule(name, ins, outs, cmds=[], label=None): | |||||||
|         emit(*fouts, "&:" if len(fouts) > 1 else ":", *fins, "\x01", into=lines) |         emit(*fouts, "&:" if len(fouts) > 1 else ":", *fins, "\x01", into=lines) | ||||||
|  |  | ||||||
|         if label: |         if label: | ||||||
|             emit("\t$(hide)", "$(ECHO) $(PROGRESSINFO) ", label, into=lines) |             emit("\t$(hide)", "$(ECHO) $(PROGRESSINFO)", label, into=lines) | ||||||
|         for c in cmds: |         for c in cmds: | ||||||
|             emit("\t$(hide)", c, into=lines) |             emit("\t$(hide)", c, into=lines) | ||||||
|     else: |     else: | ||||||
|   | |||||||
| @@ -144,7 +144,7 @@ def protojava(self, name, srcs: Targets = [], deps: Targets = []): | |||||||
|         cwd=self.cwd, |         cwd=self.cwd, | ||||||
|         ins=protos, |         ins=protos, | ||||||
|         outs=[f"={self.localname}.srcjar"], |         outs=[f"={self.localname}.srcjar"], | ||||||
|         deps=deps, |         deps=srcs + deps, | ||||||
|         commands=[ |         commands=[ | ||||||
|             "mkdir -p {dir}/srcs", |             "mkdir -p {dir}/srcs", | ||||||
|             "cd {dir} && " |             "cd {dir} && " | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user