summaryrefslogtreecommitdiff
path: root/pcr/emacs-mailcrypt/destdir.patch
blob: a0159cd02de293048544ae90d467b49bd36ff142 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
diff -ruN mailcrypt-3.5.9.orig/Makefile.in mailcrypt-3.5.9/Makefile.in
--- mailcrypt-3.5.9.orig/Makefile.in	2010-03-11 08:38:05.000000000 -0500
+++ mailcrypt-3.5.9/Makefile.in	2012-12-13 18:38:59.000000000 -0500
@@ -77,16 +77,16 @@
 
 install: all installdirs install-info
 	for f in $(SOURCES); do \
-	  $(INSTALL_DATA) $(srcdir)/$$f $(lispdir); \
+	  $(INSTALL_DATA) $(srcdir)/$$f $(DESTDIR)$(lispdir); \
 	done;
 	for f in $(OBJECTS); do \
-	  $(INSTALL_DATA) $$f $(lispdir); \
+	  $(INSTALL_DATA) $$f $(DESTDIR)$(lispdir); \
 	done;
 
 # Make sure all installation directories actually exist
 # by making them if necessary.
 installdirs: mkinstalldirs
-	$(srcdir)/mkinstalldirs $(lispdir) $(infodir)
+	$(srcdir)/mkinstalldirs $(DESTDIR)$(lispdir) $(DESTDIR)$(infodir)
 
 # If your install-info doesn't know how to look inside the .info file for the
 # menu entry to add, try adding
@@ -95,14 +95,12 @@
 
 install-info: info
 	cd $(srcdir) && for file in $(INFOFILES); do\
-	  $(INSTALL_DATA) $$file $(infodir)/$$file; \
+	  $(INSTALL_DATA) $$file $(DESTDIR)$(infodir)/$$file; \
 	done
-	-$(INSTALL_INFO) --info-dir=$(infodir) mailcrypt.info
 
 uninstall:
-	-cd $(lispdir) && rm -f $(SOURCES) $(OBJECTS)
-	-cd $(infodir) && rm -f $(INFOFILES)
-	$(INSTALL_INFO) --remove --info-dir=$(infodir) mailcrypt.info
+	-cd $(DESTDIR)$(lispdir) && rm -f $(SOURCES) $(OBJECTS)
+	-cd $(DESTDIR)$(infodir) && rm -f $(INFOFILES)
 
 info: $(INFOFILES)