Re: Uupdate value of variable

2017-06-02 Thread icvallejo
Thank you Duane, Finally I will do that with the main program writes in golang and the Makefile will be more simple. Regards. -- View this message in context: http://gnu-make.2324884.n4.nabble.com/Update-value-of-variable-tp1p17786.html Sent from the Gnu - Make - Help mailing list archive

Re: Uupdate value of variable

2017-06-01 Thread Duane Griffin
Hi, On Thu, Jun 1, 2017 at 7:24 PM, icvallejo wrote: > Hello and thank you for your answers. > > I want to know if exists a string (!myapp) in rsyslog.conf file and if there > is not exist, check if exists another string (local?.* where ? is a number > between 0-7), and to do a printf in file so,

Re: Uupdate value of variable

2017-06-01 Thread icvallejo
Hello and thank you for your answers. I want to know if exists a string (!myapp) in rsyslog.conf file and if there is not exist, check if exists another string (local?.* where ? is a number between 0-7), and to do a printf in file so, for the first: CHECK := 0 i := 0 .PHONY: syslog syslog:

Re: Uupdate value of variable

2017-05-31 Thread Tim Murphy
Hi On 31 May 2017 at 14:28, icvallejo wrote: > Hello all, I'm rookie with gnu make and I have a question; I'm doing a > Makefile like this: > > #!/bin/bash > ^ This doesn't make any sense - this is not a bash script. > # Makefile > > IMPORT_PATH := github.com/... > CHECK := 0 > > .PHONY: i

Re: Uupdate value of variable

2017-05-31 Thread Duane Griffin
Hi Ignacio, I think you are trying to assign to a make variable from a command in a recipe. You can't do that, sorry. Consider that each line in a recipe runs in a separate shell: it cannot change variables in it's parent make process or even set shell variables for other lines in the same recipe.