|
|
# --- SDE-COPYRIGHT-NOTE-BEGIN --- # This copyright note is auto-generated by ./scripts/Create-CopyPatch. # # Filename: package/.../udns/make_install.patch # Copyright (C) 2008 The OpenSDE Project # # More information can be found in the files COPYING and README. # # This patch file is dual-licensed. It is available under the license the # patched project is licensed under, as long as it is an OpenSource license # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms # of the GNU General Public License as published by the Free Software # Foundation; either version 2 of the License, or (at your option) any later # version. # --- SDE-COPYRIGHT-NOTE-END ---
--- ./Makefile.in.orig 2008-08-06 08:04:54.000000000 -0400
+++ ./Makefile.in 2008-08-06 08:36:33.000000000 -0400
@@ -56,10 +56,30 @@
PICFLAGS = -fPIC AWK = awk +DESTDIR=
+BINDIR=/usr/bin
+LIBDIR=/usr/lib
+MANDIR=/usr/share/man
+INCDIR=/usr/include
+DOCDIR=/usr/share/doc/$(NAME)
+
all: static +install: install_static
.SUFFIXES: .c .o .lo +install_man:
+ mkdir -p $(DESTDIR)$(MANDIR)/man1 $(DESTDIR)$(MANDIR)/man3
+ cp *.1 $(DESTDIR)$(MANDIR)/man1/
+ cp *.3 $(DESTDIR)$(MANDIR)/man3/
+
+install_doc: install_man
+ mkdir -p $(DESTDIR)$(DOCDIR)/
+ cp NOTES NEWS TODO COPYING.LGPL $(DESTDIR)$(DOCDIR)/
+
+install_header:
+ cp udns.h $(DESTDIR)$(INCDIR)/
+
static: $(LIB) $(UTILS) staticlib: $(LIB) $(LIB): $(OBJS) @@ -68,9 +88,17 @@
.c.o: $(CC) $(CFLAGS) $(CDEFS) -c $< +install_static: install_header
+ cp $(UTILS) $(DESTDIR)$(BINDIR)/
+ cp $(LIB) $(DESTDIR)$(LIBDIR)/
+
shared: $(SOLIBV) $(SOUTILS) sharedlib: $(SOLIBV) +install_shared: install_header
+ cp $(SOUTILS) $(DESTDIR)$(BINDIR)/
+ cp $(SOLIBV) $(DESTDIR)$(LIBDIR)/
+
$(SOLIBV): $(SOBJS) $(CC) -shared -Wl,--soname,$(SOLIBV) -o $@ $(SOBJS) $(SOLIB): $(SOLIBV)
|