File: rdepend.make

package info (click to toggle)
texfam 1.1-1
  • links: PTS
  • area: main
  • in suites: potato
  • size: 13,628 kB
  • ctags: 3,925
  • sloc: ansic: 26,423; sh: 3,909; perl: 2,928; makefile: 1,990; yacc: 1,252; pascal: 772; lex: 213; asm: 139; awk: 35; sed: 34
file content (46 lines) | stat: -rw-r--r-- 2,129 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# rdepend.make -- rules for remaking the dependencies.
@MAINT@# 
@MAINT@# Have to use -M, not -MM, since we use <kpathsea/...> 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 <kpathsea/paths.h> is generated, not part of the distribution.
@MAINT@# 
@MAINT@# And, there's no need for any installer/user to ever run this, it can
@MAINT@# only cause trouble. So comment it out in the distribution.
@MAINT@# (It doesn't work when the source and build directories are different.)
@MAINT@ifndef c_auto_h_dir
@MAINT@c_auto_h_dir = .
@MAINT@endif
@MAINT@
@MAINT@depend depend.make:: $(c_auto_h_dir)/c-auto.h \
@MAINT@  $(top_srcdir)/../make/rdepend.make 
@MAINT@	$(CC) -M $(ALL_CPPFLAGS) -I$(c_auto_h_dir) *.c \
@MAINT@	  | sed -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,/usr[^ ]* ,,g' \
@MAINT@	        -e 's,/usr[^ ]*$$,,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.make
@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.make >depend-tmp.make; mv depend-tmp.make depend.make)
@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.make.