help-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Uupdate value of variable


From: icvallejo
Subject: Uupdate value of variable
Date: Wed, 31 May 2017 06:28:04 -0700 (PDT)

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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]