List Info

Thread: Please help me out in this




Please help me out in this
user name
2006-05-17 12:37:55
I am not sure whether this is the output you had expected
but this is
what appears after running that makefile with little
modifications:

53 abhay2 > gmake -f  t.make
!!! makhdr ERROR: undefined variable: DEVDIR
!!! makhdr ERROR: undefined variable: ETCDIR
!!! makhdr ERROR: invalid variable: MAKTYP
!!! makhdr ERROR: invalid variable: MAKHDRTYP))
-----------------------------------------------------
And the modified makefile
54 abhay2 > cat t.make
ifeq ($(DEVDIR),)

        _error_::
        echo "!!! makhdr ERROR: undefined variable:
DEVDIR"

endif



ifeq ($(ETCDIR),)

_error_::
        echo "!!! makhdr ERROR: undefined variable:
ETCDIR"

endif



ifneq ($(MAKTYP),gnu)

_error_::
        echo "!!! makhdr ERROR: invalid variable:
MAKTYP"

endif



ifneq    ($(MAKHDR),$(ETCDIR)/makhdr.$(MAKTYP))

_error_::
        echo "!!! makhdr ERROR: invalid variable:
MAKHDR"

endif


_______________________________________________
Help-make mailing list
Help-makegnu.org
http:
//lists.gnu.org/mailman/listinfo/help-make
Please help me out in this
user name
2006-05-17 16:42:39
On 2006-5-17 12:37 UTC, Aditya Kher wrote:
> I am not sure whether this is the output you had
expected but this is
> what appears after running that makefile with little
modifications:
> 
> 53 abhay2 > gmake -f  t.make
> !!! makhdr ERROR: undefined variable: DEVDIR

Has a DEVDIR variable actually been defined?

Consider this simplified test case:

/tmp[0]$cat abhay.make
all:
ifeq ($(DEVDIR),)
        echo "!!! makhdr ERROR: undefined variable:
DEVDIR"
else
        echo "DEVDIR = $(DEVDIR)"
endif

/tmp[0]$make -f abhay.make
!!! makhdr ERROR: undefined variable: DEVDIR
/tmp[0]$make -f abhay.make DEVDIR=foo
DEVDIR = foo

That's the output I would expect.


_______________________________________________
Help-make mailing list
Help-makegnu.org
http:
//lists.gnu.org/mailman/listinfo/help-make
[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )