]> granicus.if.org Git - libexpat/commitdiff
Add install and uninstall targets, along with all the relevant standard
authorFred L. Drake, Jr. <fdrake@users.sourceforge.net>
Wed, 25 Jul 2001 15:23:08 +0000 (15:23 +0000)
committerFred L. Drake, Jr. <fdrake@users.sourceforge.net>
Wed, 25 Jul 2001 15:23:08 +0000 (15:23 +0000)
variables.

expat/xmlwf/Makefile.in

index b8cbbc72aeedde449f6ea1545a29c513214248de..d28ccd42ba782aadf50980b8c978799315861f6f 100644 (file)
@@ -18,6 +18,8 @@
 # SOFTWARE OR THE USE OR OTHER DEALINGS IN EXPAT.
 #
 
+bindir = @bindir@
+
 LIBDIR= ../lib/.libs
 INCDIR= ../lib
 
@@ -28,14 +30,29 @@ FILEMAP_OBJ= @FILEMAP_OBJ@
 OBJS= xmlwf.o xmlfile.o codepage.o $(FILEMAP_OBJ)
 LIBS= -L$(LIBDIR) -lexpat
 
+INSTALL = @INSTALL@
+INSTALL_PROGRAM = ${INSTALL}
+LIBTOOL = @LIBTOOL@
+mkinstalldirs = $(SHELL) $(top_srcdir)/conftools/mkinstalldirs
+
 srcdir = @srcdir@
+top_builddir = ..
 top_srcdir = @top_srcdir@
 VPATH = @srcdir@
+prefix = @prefix@
+exec_prefix = @exec_prefix@
 
 
 xmlwf: $(OBJS)
        $(CC) -o xmlwf $(LDFLAGS) $(OBJS) $(LIBS)
 
+install: xmlwf
+       $(mkinstalldirs) $(bindir)
+       $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) xmlwf $(bindir)/xmlwf
+
+uninstall:
+       $(LIBTOOL) --mode=uninstall rm -f $(bindir)/xmlwf
+
 check: $(SUBDIRS)
        @echo
        @echo This package does not yet have a regression test.