[package] add dmalloc, patch from Raphael Huck
[openwrt/svn-archive/archive.git] / devel / dmalloc / patches / 130-makefile_destdir.patch
1 --- a/Makefile.in
2 +++ b/Makefile.in
3 @@ -178,66 +178,66 @@ distclean : clean
4 # rm -f configure
5
6 installdirs :
7 - $(srcdir)/mkinstalldirs $(includedir) $(libdir) $(bindir)
8 + $(srcdir)/mkinstalldirs $(DESTDIR)$(includedir) $(DESTDIR)$(libdir) $(DESTDIR)$(bindir)
9
10 installincs : $(HFLS)
11 - $(srcdir)/mkinstalldirs $(includedir)
12 - $(INSTALL_DATA) $(HFLS) $(includedir)
13 + $(srcdir)/mkinstalldirs $(DESTDIR)$(includedir)
14 + $(INSTALL_DATA) $(HFLS) $(DESTDIR)$(includedir)
15
16 installthsl : $(LIB_TH_SL)
17 - $(srcdir)/mkinstalldirs $(shlibdir)
18 - $(INSTALL) $(LIB_TH_SL) $(shlibdir)
19 + $(srcdir)/mkinstalldirs $(DESTDIR)$(shlibdir)
20 + $(INSTALL) $(LIB_TH_SL) $(DESTDIR)$(shlibdir)
21
22 installth : $(INSTALL_THREADS)
23 - $(srcdir)/mkinstalldirs $(libdir)
24 - $(INSTALL) $(LIB_TH) $(libdir)
25 + $(srcdir)/mkinstalldirs $(DESTDIR)$(libdir)
26 + $(INSTALL) $(LIB_TH) $(DESTDIR)$(libdir)
27 @CXX_OFF@ @echo "Enter 'make installthcxx' to install the threaded C++ library"
28 @SL_OFF@ @echo "Enter 'make installthsl' to install the threaded shared-library"
29
30 installthcxxsl : $(LIB_TH_CXX_SL)
31 - $(srcdir)/mkinstalldirs $(shlibdir)
32 - $(INSTALL) $(LIB_TH_CXX_SL) $(shlibdir)
33 + $(srcdir)/mkinstalldirs $(DESTDIR)$(shlibdir)
34 + $(INSTALL) $(LIB_TH_CXX_SL) $(DESTDIR)$(shlibdir)
35
36 installthcxx : $(INSTALL_TH_CXX)
37 - $(srcdir)/mkinstalldirs $(libdir)
38 - $(INSTALL) $(LIB_TH_CXX) $(libdir)
39 + $(srcdir)/mkinstalldirs $(DESTDIR)$(libdir)
40 + $(INSTALL) $(LIB_TH_CXX) $(DESTDIR)$(libdir)
41 @SL_OFF@ @echo "Enter 'make installthcxxsl' to install the threaded C++ shared-library"
42
43 installcxxsl : $(LIB_CXX_SL)
44 - $(srcdir)/mkinstalldirs $(shlibdir)
45 - $(INSTALL) $(LIB_CXX_SL) $(shlibdir)
46 + $(srcdir)/mkinstalldirs $(DESTDIR)$(shlibdir)
47 + $(INSTALL) $(LIB_CXX_SL) $(DESTDIR)$(shlibdir)
48
49 installcxx : $(INSTALL_CXX)
50 - $(srcdir)/mkinstalldirs $(libdir)
51 - $(INSTALL) $(LIB_CXX) $(libdir)
52 + $(srcdir)/mkinstalldirs $(DESTDIR)$(libdir)
53 + $(INSTALL) $(LIB_CXX) $(DESTDIR)$(libdir)
54 @TH_OFF@ @echo "Enter 'make installthcxx' to install the threaded C++ library"
55 @SL_OFF@ @echo "Enter 'make installcxxsl' to install the C++ shared-library"
56
57 installsl : $(LIB_SL)
58 - $(srcdir)/mkinstalldirs $(shlibdir)
59 - $(INSTALL) $(LIB_SL) $(shlibdir)
60 + $(srcdir)/mkinstalldirs $(DESTDIR)$(shlibdir)
61 + $(INSTALL) $(LIB_SL) $(DESTDIR)$(shlibdir)
62 @CXX_OFF@ @echo "Enter 'make installcxxsl' to install the C++ shared-library"
63 @TH_OFF@ @echo "Enter 'make installthsl' to install thread shared-library"
64
65 installlib : $(INSTALL_LIB)
66 - $(srcdir)/mkinstalldirs $(libdir)
67 - $(INSTALL) $(LIBRARY) $(libdir)
68 - @RANLIB@ $(libdir)/$(LIBRARY)
69 -@SL_OFF@ @echo "Enter 'make installsl' to install $(LIB_SL) in $(shlibdir)"
70 + $(srcdir)/mkinstalldirs $(DESTDIR)$(libdir)
71 + $(INSTALL) $(LIBRARY) $(DESTDIR)$(libdir)
72 + @RANLIB@ $(DESTDIR)$(libdir)/$(LIBRARY)
73 +@SL_OFF@ @echo "Enter 'make installsl' to install $(LIB_SL) in $(DESTDIR)$(shlibdir)"
74 @CXX_OFF@ @echo "Enter 'make installcxx' to install the C++ library"
75 @TH_OFF@ @echo "Enter 'make installth' to install thread library"
76
77 installdocs : $(srcdir)/docs/$(HTMLFILE) $(srcdir)/docs/$(TEXIFILE) \
78 $(srcdir)/docs/$(PDFFILE)
79 - $(srcdir)/mkinstalldirs $(docdir)
80 - $(INSTALL_DATA) $(srcdir)/docs/$(HTMLFILE) $(docdir)
81 - $(INSTALL_DATA) $(srcdir)/docs/$(TEXIFILE) $(docdir)
82 - $(INSTALL_DATA) $(srcdir)/docs/$(PDFFILE) $(docdir)
83 + $(srcdir)/mkinstalldirs $(DESTDIR)$(docdir)
84 + $(INSTALL_DATA) $(srcdir)/docs/$(HTMLFILE) $(DESTDIR)$(docdir)
85 + $(INSTALL_DATA) $(srcdir)/docs/$(TEXIFILE) $(DESTDIR)$(docdir)
86 + $(INSTALL_DATA) $(srcdir)/docs/$(PDFFILE) $(DESTDIR)$(docdir)
87
88 install : installincs installlib $(UTIL)
89 - $(srcdir)/mkinstalldirs $(bindir)
90 - $(INSTALL_PROGRAM) $(UTIL) $(bindir)
91 - @echo "Enter 'make installdocs' to install $(DOCFILES) in $(docdir)"
92 + $(srcdir)/mkinstalldirs $(DESTDIR)$(bindir)
93 + $(INSTALL_PROGRAM) $(UTIL) $(DESTDIR)$(bindir)
94 + @echo "Enter 'make installdocs' to install $(DOCFILES) in $(DESTDIR)$(docdir)"
95
96 dmalloc.h.2 : $(srcdir)/configure
97 $(SHELL) $(srcdir)/configure