Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

3.0.5 Src/Makefile.in doesn't stop after error



The Src/Makefile.in has a buglet in the rule for rlimits.h.

The patch below deletes a quite useless warning that has the
inappropriate side effect of returning TRUE instead of FALSE.

Without the patch a failing awk script (which I will describe in a
separate message) doesn't stop the make from proceeding. In my case,
on a NeXT 3.3, this leads to an empty Src/rlimits.h which leads to a
failing compilation later. It is much easier to find the cause for the
troubles if the error becomes visible immediately when it happens.

The current warning is unlikely to be seen by anybody. It comes quite
early during the first run of a make. It won't be issued again if you
repeat the make. It just gets buried and can only be reproduced by
removing the empty rlimits.h file.

*** /tmp/Makefile.in.~1.1~	Fri Dec 26 13:11:34 1997
--- /tmp/Makefile.in	Fri Dec 26 13:11:34 1997
***************
*** 135,142 ****
  # silent so the warning doesn't appear unless necessary
  rlimits.h: rlimits.awk $(RLIMITS_INC_H)
  	@echo '$(AWK) -f $(srcdir)/rlimits.awk $(RLIMITS_INC_H) > rlimits.h'; \
! 	$(AWK) -f $(srcdir)/rlimits.awk $(RLIMITS_INC_H) > rlimits.h || \
! 	    echo WARNING: unknown limits:  mail rlimits.h to developers
  
  $(OBJS): $(HDRS)
  
--- 135,141 ----
  # silent so the warning doesn't appear unless necessary
  rlimits.h: rlimits.awk $(RLIMITS_INC_H)
  	@echo '$(AWK) -f $(srcdir)/rlimits.awk $(RLIMITS_INC_H) > rlimits.h'; \
! 	$(AWK) -f $(srcdir)/rlimits.awk $(RLIMITS_INC_H) > rlimits.h
  
  $(OBJS): $(HDRS)
  


Enjoy,
-- 
andreas



Messages sorted by: Reverse Date, Date, Thread, Author