Hello all, I'm rookie with gnu make and I have a question; I'm doing a Makefile like this:
#!/bin/bash # Makefile IMPORT_PATH := github.com/... CHECK := 0 .PHONY: install install: $Q printf "\\nLet's install..." # $Q export CHECK=0 $Q if grep -q \!string "$(DIR)" ; then CHECK = $($CHECK + 1) ; fi $Q printf "done!" I want that if the condition is good, update the value of CHECK from 0 to 1, but I don't know how can I do this :S Can you help me please ? Thank you! -- View this message in context: http://gnu-make.2324884.n4.nabble.com/Uupdate-value-of-variable-tp17777.html Sent from the Gnu - Make - Help mailing list archive at Nabble.com. _______________________________________________ Help-make mailing list Help-make@gnu.org https://lists.gnu.org/mailman/listinfo/help-make