makefile problem saving used interpretation used commands biased rule


i have domain makefile arrange structure:




bob:
ifdef debug
@echo running
endif
@echo chug chug chug
ifdef debug
@echo done
endif

bobit:
@echo "before"
@make bob
@echo "after"


i'm simplifying severely here, echo's indeed non excusable blocks commands there some-more saving stuff, nonetheless captures idea problem.



for technical reasons i don't wish right now, i need absolved submake, nonetheless since echo's paint nontrivial amounts formula i don't wish only duplicate past physique slip place submake.



ideally i'd something this




define bob_body
ifdef debug
@echo running
endif
@echo chug chug chug
ifdef debug
@echo done
endif
endef

bob:
$(bob_body)

bobit:
@echo "before"
$(bob_body)
@echo "after"


unfortunately conditionals seem shafting me, furnish "ifdef: management found" errors, i attempted removing around several combinations eval call, nonetheless can't seem figure out proceed work.



how i work? even right proceed approach problem?



Comments

Popular posts from this blog

list macos calm editors formula editors

how hibernate @any-related annotations?

why does floated <input> control floated component slip over too distant right ie7, nonetheless firefox?