octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

starnge dependencies in makefile


From: John W. Eaton
Subject: starnge dependencies in makefile
Date: Wed, 14 Nov 2007 12:50:39 -0500

On 14-Nov-2007, Shai Ayal wrote:

| Whay is that if I do a make -k and then change src/graphics.h.in and then do
| cd src && make graphics.o
| 
| I get a long line of other things before graphics is compiled:
| 
| 
| making op-scm-m.d from ./OPERATORS/op-scm-m.cc
| making op-scm-cs.d from ./OPERATORS/op-scm-cs.cc
| making op-scm-cm.d from ./OPERATORS/op-scm-cm.cc
| making op-sbm-sbm.d from ./OPERATORS/op-sbm-sbm.cc
| making op-sbm-bm.d from ./OPERATORS/op-sbm-bm.cc
| making op-sbm-b.d from ./OPERATORS/op-sbm-b.cc
| ....
| 
| and many more

This happens because of these rules:

stamp-prereq: defaults.h graphics.h oct-conf.h oct-gperf.h parse.cc lex.cc 
__gnuplot_raw__.cc $(OPT_HANDLERS)
        touch stamp-prereq


$(DEF_FILES): stamp-prereq stamp-liboctave-prereq mkdefs defun-int.h 
defun-dld.h defun.h defaults.h oct-conf.h

$(MAKEDEPS): stamp-prereq stamp-liboctave-prereq defaults.h oct-gperf.h 
oct-conf.h

ifndef omit_deps
-include $(MAKEDEPS)
endif

If you have a better way, please submit a patch.

jwe


reply via email to

[Prev in Thread] Current Thread [Next in Thread]