]> git.pld-linux.org Git - packages/libelf.git/blob - libelf-DESTDIR.patch
- resurrected from old PLD package
[packages/libelf.git] / libelf-DESTDIR.patch
1 --- libelf-0.8.2/lib/Makefile.in.orig   Sat Oct 13 23:35:22 2001
2 +++ libelf-0.8.2/lib/Makefile.in        Fri Jul 26 01:16:42 2002
3 @@ -21,7 +21,6 @@
4  exec_prefix = @exec_prefix@
5  libdir = @libdir@
6  includedir = @includedir@
7 -installdirs = $(libdir) $(includedir) $(includedir)/libelf
8  
9  CC = @CC@
10  LD = @LD@
11 @@ -164,20 +163,18 @@
12         @$(RM) -r $(picdir)
13         mkdir $(picdir)
14  
15 -install: all installdirs install-data \
16 +install: all install-data \
17         install-shared-$(DO_SHLIB) install-compat-$(DO_COMPAT)
18  
19 -installdirs: $(top_srcdir)/mkinstalldirs
20 -       $(SHELL) $(top_srcdir)/mkinstalldirs $(installdirs)
21 -
22  install-data:
23 -       $(INSTALL_DATA) libelf.a $(libdir)
24 +       $(INSTALL) -d $(DESTDIR)$(libdir) $(DESTDIR)$(includedir)/libelf
25 +       $(INSTALL_DATA) libelf.a $(DESTDIR)$(libdir)
26         -cd $(libdir) && $(RANLIB) libelf.a
27         files="$(HDRS) $(AUXHDRS) elf_repl.h"; for file in $$files; do \
28           if test -r $$file; then \
29 -           $(INSTALL_DATA) $$file $(includedir)/libelf; \
30 +           $(INSTALL_DATA) $$file $(DESTDIR)$(includedir)/libelf; \
31           else \
32 -           $(INSTALL_DATA) $(srcdir)/$$file $(includedir)/libelf; \
33 +           $(INSTALL_DATA) $(srcdir)/$$file $(DESTDIR)$(includedir)/libelf; \
34           fi; \
35         done
36  
37 @@ -185,31 +182,33 @@
38         uninstall-shared-$(DO_SHLIB) uninstall-compat-$(DO_COMPAT)
39  
40  uninstall-data:
41 -       $(RM) $(libdir)/libelf.a
42 -       $(RM) -r $(includedir)/libelf
43 +       $(RM) $(DESTDIR)$(libdir)/libelf.a
44 +       $(RM) -r $(DESTDIR)$(includedir)/libelf
45  
46  install-shared-yes: install-shared
47  install-shared-no:
48  install-shared: $(SHLIB)
49 -       $(INSTALL_SHLIB) $(SHLIB) $(libdir)
50 +       $(INSTALL) -d $(DESTDIR)$(libdir)
51 +       $(INSTALL_SHLIB) $(SHLIB) $(DESTDIR)$(libdir)
52         if test "$(SONAME)" = "$(SHLIB)"; then true; else \
53 -         cd $(libdir) && $(RM) $(SONAME) && $(LN_S) $(SHLIB) $(SONAME); \
54 +         cd $(DESTDIR)$(libdir) && $(RM) $(SONAME) && $(LN_S) $(SHLIB) $(SONAME); \
55         fi
56         if test "$(SHLINK)" = "$(SHLIB)"; then true; else \
57 -         cd $(libdir) && $(RM) $(SHLINK) && $(LN_S) $(SHLIB) $(SHLINK); \
58 +         cd $(DESTDIR)$(libdir) && $(RM) $(SHLINK) && $(LN_S) $(SHLIB) $(SHLINK); \
59         fi
60  
61  uninstall-shared-yes: uninstall-shared
62  uninstall-shared-no:
63  uninstall-shared:
64 -       cd $(libdir) && $(RM) $(SHLIB) $(SONAME) $(SHLINK)
65 +       cd $(DESTDIR)$(libdir) && $(RM) $(SHLIB) $(SONAME) $(SHLINK)
66  
67  install-compat-yes: install-compat
68  install-compat-no:
69  install-compat:
70 +       $(INSTALL) -d $(DESTDIR)$(includedir)
71         files="$(HDRS)"; for file in $$files; do \
72 -         if test -f $(includedir)/$$file; then true; else \
73 -           echo "#include <libelf/$$file>" > $(includedir)/$$file; \
74 +         if test -f $(DESTDIR)$(includedir)/$$file; then true; else \
75 +           echo "#include <libelf/$$file>" > $(DESTDIR)$(includedir)/$$file; \
76           fi; \
77         done
78  
79 @@ -217,8 +216,8 @@
80  uninstall-compat-no:
81  uninstall-compat:
82         files="$(HDRS)"; for file in $$files; do \
83 -         if grep "^#include <libelf/$$file>$" $(includedir)/$$file >/dev/null 2>&1; then \
84 -           $(RM) $(includedir)/$$file; \
85 +         if grep "^#include <libelf/$$file>$" $(DESTDIR)$(includedir)/$$file >/dev/null 2>&1; then \
86 +           $(RM) $(DESTDIR)$(includedir)/$$file; \
87           else true; fi; \
88         done
89  
90 --- libelf-0.8.2/po/Makefile.in~        Fri Jul 26 01:29:01 2002
91 +++ libelf-0.8.2/po/Makefile.in Fri Jul 26 01:27:42 2002
92 @@ -91,18 +91,18 @@
93         catalogs="$(CATALOGS)"; for cat in $$catalogs; do \
94           lang=`echo $$cat | sed 's,$(CATOBJEXT)$$,,'`; \
95           dir=$(localedir)/$$lang/LC_MESSAGES; \
96 -         $(SHELL) $(top_srcdir)/mkinstalldirs $$dir; \
97 +         $(SHELL) $(top_srcdir)/mkinstalldirs $(DESTDIR)$$dir; \
98           if test -r $$cat; then \
99 -           $(INSTALL_DATA) $$cat $$dir/$(PACKAGE)$(INSTOBJEXT); \
100 +           $(INSTALL_DATA) $$cat $(DESTDIR)$$dir/$(PACKAGE)$(INSTOBJEXT); \
101           else \
102 -           $(INSTALL_DATA) $(srcdir)/$$cat $$dir/$(PACKAGE)$(INSTOBJEXT); \
103 +           $(INSTALL_DATA) $(srcdir)/$$cat $(DESTDIR)$$dir/$(PACKAGE)$(INSTOBJEXT); \
104           fi; \
105         done
106  
107  uninstall:
108         catalogs="$(CATALOGS)"; for cat in $$catalogs; do \
109           lang=`echo $$cat | sed 's,$(CATOBJEXT)$$,,'`; \
110 -         $(RM) $(localedir)/$$lang/LC_MESSAGES/$(PACKAGE)$(INSTOBJEXT); \
111 +         $(RM) $(DESTDIR)$(localedir)/$$lang/LC_MESSAGES/$(PACKAGE)$(INSTOBJEXT); \
112         done
113  
114  mostlyclean:
This page took 0.054246 seconds and 3 git commands to generate.