2999
|
1 # rdepend.make -- rules for remaking the dependencies. |
|
2 # |
|
3 # Have to use -M, not -MM, since we use <kpathsea/...> instead of |
|
4 # "kpathsea/..." in the sources. But that means we have to remove the |
|
5 # directory prefixes and all the system include files. |
|
6 # And <kpathsea/paths.h> is generated, not part of the distribution. |
|
7 # |
|
8 # And, there's no need for any installer/user to ever run this, it can |
|
9 # only cause trouble. So comment it out in the distribution. |
|
10 # (It doesn't work when the source and build directories are different.) |
|
11 ##ifndef c_auto_h_dir |
|
12 ##c_auto_h_dir = . |
|
13 ##endif |
|
14 ##ifdef HOSTNAME |
|
15 ##depend depend.make:: $(c_auto_h_dir)/c-auto.h \ |
|
16 ## $(top_srcdir)/../make/rdepend.make |
|
17 ## $(CC) -M $(ALL_CPPFLAGS) -I$(c_auto_h_dir) *.c \ |
|
18 ## | sed -e 's,\(\.\./\)\+kpathsea/,$$(kpathsea_srcdir)/,g' \ |
|
19 ## -e 's,$$(kpathsea_srcdir)/paths.h,$$(kpathsea_dir)/paths.h,g' \ |
|
20 ## -e 's,/usr[^ ]* ,,g' \ |
|
21 ## -e 's,/usr[^ ]*$$,,g' \ |
|
22 ## -e 's,dvi2xx.o,dvilj.o dvilj2p.o dvilj4.o dvilj4l.o,' \ |
|
23 ## | grep -v '^ *\\$$' \ |
|
24 ## >depend.make |
|
25 ### If kpathsea, we're making .lo library objects instead of .o's. |
|
26 ## pwd | grep -v kpathsea >/dev/null \ |
|
27 ## || (sed -e 's/\.o:/.lo:/' -e 's/kpsewhich.lo:/kpsewhich.o:/' \ |
|
28 ## <depend.make >depend-tmp.make; mv depend-tmp.make depend.make) |
|
29 ##.PHONY: depend |
|
30 ##endif |
|
31 |
|
32 # Let's stick a rule for TAGS here, just in case someone wants them. |
|
33 # (We don't put them in the distributions, to keep them smaller.) |
|
34 TAGS: *.c *.h |
|
35 pwd | grep kpathsea >/dev/null && append=../kpathsea/TAGS; \ |
|
36 etags $$append *.[ch] |
|
37 |
|
38 |
|
39 # Prevent GNU make 3.[59,63) from overflowing arg limit on system V. |
|
40 .NOEXPORT: |
|
41 |
|
42 # End of rdepend.make. |