[Expat-checkins] expat Makefile.in,1.36,1.37
fdrake@users.sourceforge.net
fdrake@users.sourceforge.net
Thu Jul 11 11:55:05 2002
Update of /cvsroot/expat/expat
In directory usw-pr-cvs1:/tmp/cvs-serv11877
Modified Files:
Makefile.in
Log Message:
Fix installation when building from outside the source directory.
Closes SF patch #566901.
Index: Makefile.in
===================================================================
RCS file: /cvsroot/expat/expat/Makefile.in,v
retrieving revision 1.36
retrieving revision 1.37
diff -u -d -r1.36 -r1.37
--- Makefile.in 3 Jun 2002 18:16:07 -0000 1.36
+++ Makefile.in 11 Jul 2002 18:54:42 -0000 1.37
@@ -40,15 +40,16 @@
INSTALL_DATA = @INSTALL_DATA@
mkinstalldirs = $(SHELL) $(top_srcdir)/conftools/mkinstalldirs
-APIHEADER = expat.h
+MANFILE = $(srcdir)/doc/xmlwf.1
+APIHEADER = $(srcdir)/lib/expat.h
LIBRARY = libexpat.la
default: buildlib xmlwf/xmlwf
-buildlib: lib/$(LIBRARY)
+buildlib: $(LIBRARY)
-all: lib/$(LIBRARY) xmlwf/xmlwf examples/elements examples/outline
+all: $(LIBRARY) xmlwf/xmlwf examples/elements examples/outline
clean:
cd lib && rm -f $(LIBRARY) *.o *.lo && rm -rf .libs _libs
@@ -70,12 +71,12 @@
install: xmlwf/xmlwf installlib
$(mkinstalldirs) $(bindir) $(mandir)
$(LIBTOOL) --mode=install $(INSTALL_PROGRAM) xmlwf/xmlwf $(bindir)/xmlwf
- $(INSTALL_DATA) doc/xmlwf.1 $(mandir)
+ $(INSTALL_DATA) $(MANFILE) $(mandir)
-installlib: lib/$(LIBRARY) lib/$(APIHEADER)
+installlib: $(LIBRARY) $(APIHEADER)
$(mkinstalldirs) $(libdir) $(includedir)
- $(LIBTOOL) --mode=install $(INSTALL) lib/$(LIBRARY) $(libdir)/$(LIBRARY)
- $(INSTALL_DATA) lib/$(APIHEADER) $(includedir)
+ $(LIBTOOL) --mode=install $(INSTALL) $(LIBRARY) $(libdir)/$(LIBRARY)
+ $(INSTALL_DATA) $(APIHEADER) $(includedir)
uninstall: uninstalllib
$(LIBTOOL) --mode=uninstall rm -f $(bindir)/xmlwf
@@ -94,7 +95,7 @@
CC = @CC@
LIBTOOL = @LIBTOOL@
-INCLUDES = -Ilib -I.
+INCLUDES = -I$(srcdir)/lib -I.
LDFLAGS = @LDFLAGS@
CPPFLAGS = @CPPFLAGS@
CFLAGS = @CFLAGS@
@@ -109,7 +110,7 @@
LINK_EXE = $(LIBTOOL) $(LTFLAGS) --mode=link $(COMPILE) $(LDFLAGS) -o $@
LIB_OBJS = lib/xmlparse.lo lib/xmltok.lo lib/xmlrole.lo
-lib/$(LIBRARY): $(LIB_OBJS)
+$(LIBRARY): $(LIB_OBJS)
$(LINK_LIB) $(LIB_OBJS)
lib/xmlparse.lo: lib/xmlparse.c lib/expat.h lib/xmlrole.h lib/xmltok.h \
@@ -129,20 +130,20 @@
xmlwf/xmlfile.o: xmlwf/xmlfile.c
xmlwf/codepage.o: xmlwf/codepage.c
xmlwf/@FILEMAP@.o: xmlwf/@FILEMAP@.c
-xmlwf/xmlwf: $(XMLWF_OBJS) lib/$(LIBRARY)
- $(LINK_EXE) $(XMLWF_OBJS) lib/$(LIBRARY)
+xmlwf/xmlwf: $(XMLWF_OBJS) $(LIBRARY)
+ $(LINK_EXE) $(XMLWF_OBJS) $(LIBRARY)
examples/elements.o: examples/elements.c
-examples/elements: examples/elements.o lib/$(LIBRARY)
- $(LINK_EXE) $< lib/$(LIBRARY)
+examples/elements: examples/elements.o $(LIBRARY)
+ $(LINK_EXE) $< $(LIBRARY)
examples/outline.o: examples/outline.c
-examples/outline: examples/outline.o lib/$(LIBRARY)
- $(LINK_EXE) $< lib/$(LIBRARY)
+examples/outline: examples/outline.o $(LIBRARY)
+ $(LINK_EXE) $< $(LIBRARY)
tests/chardata.o: tests/chardata.c tests/chardata.h
tests/runtests.o: tests/runtests.c tests/chardata.h
-tests/runtests: tests/runtests.o tests/chardata.o lib/$(LIBRARY)
+tests/runtests: tests/runtests.o tests/chardata.o $(LIBRARY)
$(LINK_EXE) $^ -lcheck
tests/xmltest.zip: