# rdepend.mk -- rules for remaking the dependencies. Public domain. # $Id$ @MAINT@# @MAINT@# Have to use -M, not -MM, since we use instead of @MAINT@# "kpathsea/..." in the sources. But that means we have to remove the @MAINT@# directory prefixes and all the system include files. @MAINT@# And is generated, not part of the distribution. @MAINT@# We also remove any ../texk/kpathsea path component, since that comes @MAINT@# from VPATH when srcdir != builddir. @MAINT@# @MAINT@# There's no need for any installer/user to ever run this, it can @MAINT@# only cause trouble. So comment it out by default. @MAINT@# @MAINT@ifndef c_auto_h_dir @MAINT@c_auto_h_dir = . @MAINT@endif @MAINT@ @MAINT@depend depend.mk:: $(c_auto_h_dir)/c-auto.h \ @MAINT@ $(top_srcdir)/../make/rdepend.mk @MAINT@ $(CC) -M $(ALL_CPPFLAGS) \ @MAINT@ -I$(c_auto_h_dir) \ @MAINT@ -I$(top_srcdir)/../../libs/libgsw32 \ @MAINT@ $(srcdir)/*.c \ @MAINT@ | sed -e 's,\(\.\./\)\+texk/kpathsea/,,g' \ @MAINT@ -e 's,\(\.\./\)\+kpathsea/,$$(kpathsea_srcdir)/,g' \ @MAINT@ -e 's,$$(kpathsea_srcdir)/c-auto.h,$$(kpathsea_dir)/c-auto.h,g' \ @MAINT@ -e 's,$$(kpathsea_srcdir)/paths.h,$$(kpathsea_dir)/paths.h,g' \ @MAINT@ -e 's, /[^ ]*,,g' \ @MAINT@ -e 's, [^ ]*/\.\./libs/[^ ]*,,g' \ @MAINT@ -e 's, \./, ,g' \ @MAINT@ -e 's,dvi2xx.o,dvilj.o dvilj2p.o dvilj4.o dvilj4l.o,' \ @MAINT@ -e 's,lex.yy,$$(LEX_OUTPUT_ROOT),g' \ @MAINT@ | $(top_srcdir)/../unbackslsh.awk \ @MAINT@ >depend.mk @MAINT@# If kpathsea, we're making .lo library objects instead of .o's. @MAINT@ pwd | grep -v kpathsea >/dev/null \ @MAINT@ || (sed -e 's/\.o:/.lo:/' \ @MAINT@ -e 's/kpsewhich.lo:/kpsewhich.o:/' \ @MAINT@ -e 's/kpsestat.lo:/kpsestat.o:/' \ @MAINT@ -e 's/access.lo:/access.o:/' \ @MAINT@ -e 's/readlink.lo:/readlink.o:/' \ @MAINT@ depend-tmp.mk; mv depend-tmp.mk depend.mk) @MAINT@.PHONY: depend # Let's stick a rule for TAGS here, just in case someone wants them. # (We don't put them in the distributions, to keep them smaller.) TAGS: *.c *.h pwd | grep kpathsea >/dev/null && append=../kpathsea/TAGS; \ etags $$append *.[ch] # Prevent GNU make 3.[59,63) from overflowing arg limit on system V. .NOEXPORT: # End of rdepend.mk.