Re: simple makefile problem



bpatton wrote:
On Jun 15, 9:11 am, Gianni Mariani <gi3nos...@xxxxxxxxxx> wrote:
bpatton wrote:
I know this has to be simple. but it doesn't work!!!!
GTKFLAGS := $(shell pkg-config gtk+-2.0 --cflags)
all :
@echo `pkg-config gtk+-2.0 --cflags`
@echo "GTKFLAGS = ${GTKFLAGS}"
@echo "GTKFLAGS = $(GTKFLAGS)"

Or did you mean to export it ?

export GTKFLAGS := $(shell pkg-config gtk+-2.0 --cflags)



THey both should produce the same lines, but GTKFLAGS is empty

No intent to export it.
When I echo the variable ${GTKFLAGS} it is empty.


This is what I get running your original Makefile on cygwin.

$ make -f jnk.mf
-DXTHREADS -DXUSE_MTSAFE_API -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -
I/usr/X11R6/include -I/usr/include/atk-1.0 -I/usr/include/pango-1.0 -I/usr/inclu
de/freetype2 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
GTKFLAGS = -DXTHREADS -DXUSE_MTSAFE_API -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.
0/include -I/usr/X11R6/include -I/usr/include/atk-1.0 -I/usr/include/pango-1.0 -
I/usr/include/freetype2 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
.



Relevant Pages

  • Re: simple makefile problem
    ... No intent to export it. ... When I echo the variable ${GTKFLAGS} it is empty. ...
    (comp.unix.programmer)
  • Wordpress <=2.0.2 cache shell injection
    ... if user registration is enabled, ... php files. ... DB_PASSWORD costant could be empty, ... echo 'No response from '.$host.':'.$port; die; ...
    (Bugtraq)
  • Re: Bash problems?
    ... The first returns true for either empty files or empty directories; the second returns true only if the given file is an empty directory. ... $ if isempty emptydir; then echo 'yes'; else echo 'no'; fi ... $ if isempty emptyfile; then echo 'yes'; else echo 'no'; fi ...
    (Fedora)
  • Re: what triggers "you have mail" (OFFLIST)
    ... echo $MAIL ... when $MAIL is empty. ... that I am getting incoming mail in /usr/david/tmp which each ... tag. ...
    (freebsd-questions)
  • Re: Testing if an array is empty
    ... A function reads a mysql record into an array and returns it, ... What ways do I have to test that my returned array is not empty ... if) echo '$array is empty'; ...
    (comp.lang.php)