OpenSDE Packages Database (without history before r20070)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

67 lines
1.8 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../udns/make_install.patch
  5. # Copyright (C) 2008 The OpenSDE Project
  6. #
  7. # More information can be found in the files COPYING and README.
  8. #
  9. # This patch file is dual-licensed. It is available under the license the
  10. # patched project is licensed under, as long as it is an OpenSource license
  11. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  12. # of the GNU General Public License as published by the Free Software
  13. # Foundation; either version 2 of the License, or (at your option) any later
  14. # version.
  15. # --- SDE-COPYRIGHT-NOTE-END ---
  16. --- ./Makefile.in.orig 2008-08-06 08:04:54.000000000 -0400
  17. +++ ./Makefile.in 2008-08-06 08:36:33.000000000 -0400
  18. @@ -56,10 +56,30 @@
  19. PICFLAGS = -fPIC
  20. AWK = awk
  21. +DESTDIR=
  22. +BINDIR=/usr/bin
  23. +LIBDIR=/usr/lib
  24. +MANDIR=/usr/share/man
  25. +INCDIR=/usr/include
  26. +DOCDIR=/usr/share/doc/$(NAME)
  27. +
  28. all: static
  29. +install: install_static
  30. .SUFFIXES: .c .o .lo
  31. +install_man:
  32. + mkdir -p $(DESTDIR)$(MANDIR)/man1 $(DESTDIR)$(MANDIR)/man3
  33. + cp *.1 $(DESTDIR)$(MANDIR)/man1/
  34. + cp *.3 $(DESTDIR)$(MANDIR)/man3/
  35. +
  36. +install_doc: install_man
  37. + mkdir -p $(DESTDIR)$(DOCDIR)/
  38. + cp NOTES NEWS TODO COPYING.LGPL $(DESTDIR)$(DOCDIR)/
  39. +
  40. +install_header:
  41. + cp udns.h $(DESTDIR)$(INCDIR)/
  42. +
  43. static: $(LIB) $(UTILS)
  44. staticlib: $(LIB)
  45. $(LIB): $(OBJS)
  46. @@ -68,9 +88,17 @@
  47. .c.o:
  48. $(CC) $(CFLAGS) $(CDEFS) -c $<
  49. +install_static: install_header
  50. + cp $(UTILS) $(DESTDIR)$(BINDIR)/
  51. + cp $(LIB) $(DESTDIR)$(LIBDIR)/
  52. +
  53. shared: $(SOLIBV) $(SOUTILS)
  54. sharedlib: $(SOLIBV)
  55. +install_shared: install_header
  56. + cp $(SOUTILS) $(DESTDIR)$(BINDIR)/
  57. + cp $(SOLIBV) $(DESTDIR)$(LIBDIR)/
  58. +
  59. $(SOLIBV): $(SOBJS)
  60. $(CC) -shared -Wl,--soname,$(SOLIBV) -o $@ $(SOBJS)
  61. $(SOLIB): $(SOLIBV)