[tex-live] pdftexdir/depend.mk is broken

Martin Schroeder martin@oneiros.de
Thu, 14 Mar 2002 16:45:51 +0100


The file looks like this:

$(srcdir)pdf.o: epdf.c ptexlib.h ../pdftexd.h ../texmfmp.h ../cpascal.h \
$(srcdir)../config.h ../help.h ../texmfmem.h ../pdftexcoerce.h ptexmac.h
$(srcdir)apfile.o: mapfile.c ptexlib.h ../pdftexd.h ../texmfmp.h ../cpascal.h \
$(srcdir)../config.h ../help.h ../texmfmem.h ../pdftexcoerce.h ptexmac.h

apparently the first character in each line is replaced by $(srcdir), which
is clearly wrong (srcdir = .).

The rule in Makefile.in is

depend:
        rm -f $(OBJS) ttf2afm.o pdftosrc.o
        XXCFLAGS=-MM XCFLAGS=-MM make -k $(OBJS) ttf2afm.o pdftosrc.o | \
            grep -v "^$(CC)\|$(CXX)\|$(AR)\|make\|klibtool" | \
            sed 's:$(srcdir):$$(srcdir):' > $(srcdir)/depend.mk

Who did this and what was intended? And why did nobody notice it before?

Best regards
        Martin

P.S.: libs/xpdf/xpdf/depend.mk is empty. Is that intended?
-- 
                http://www.tm.oneiros.de/calendar/2002/