[gnu.emacs.bug] ymakefile lines for TAGS

jr@PIZZA.BBN.COM (John Robinson) (09/28/88)

Since the use of the emacs-tags function is becoming widespread, I
though the makefile ought to generate it.  Herewith the diff...

I don't know if globbing in dependencies is portable ... but if GNU
make has it, then we're okay, right?

/jr
jr@bbn.com or bbn!jr
--------
*** ymakefile-notags	Tue Sep 13 10:52:56 1988
--- ymakefile	Wed Sep 28 09:14:13 1988
***************
*** 266,272 ****
  
  all: xemacs OTHER_FILES
  
! xemacs: temacs ${etcdir}DOC ${lisp}
  #ifdef CANNOT_DUMP
  	mv temacs xemacs
  #else
--- 266,272 ----
  
  all: xemacs OTHER_FILES
  
! xemacs: temacs ${etcdir}DOC ${lisp} TAGS
  #ifdef CANNOT_DUMP
  	mv temacs xemacs
  #else
***************
*** 277,282 ****
--- 277,286 ----
  ${etcdir}DOC: ${etcdir}make-docfile ${obj} ${lisp}
  	rm -f ${etcdir}DOC
  	${etcdir}make-docfile ${obj} ${lisp} ${lispdir}version.el > ${etcdir}DOC
+ 
+ TAGS: ${etcdir}etags *.c ${lispdir}*.el
+ 	rm -f TAGS
+ 	${etcdir}etags *.c ${lispdir}*.el
  
  ${etcdir}make-docfile:
  	cd ${etcdir}; make ${MFLAGS} make-docfile