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
[email protected]
http://lists.gnu.org/mailman/listinfo/help-make