make install to $DESTDIR instead of /

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

 I am having a problem building an mcrypt rpm. Currently I have to patch 
Makefile.am or make install fails because it tries to install the files to 
the wrong directory.

--- Makefile.am
+++ Makefile.am
@@ -3,10 +3,10 @@
 EXTRA_DIST = INSTALL.generic THANKS NEWS
 SUBDIRS = doc intl src po
 install-exec-hook:
-       -$(RM) -f $(bindir)/mdecrypt
-       $(LN_S) mcrypt $(bindir)/mdecrypt
+       -$(RM) -f $(DESTDIR)/$(bindir)/mdecrypt
+       $(LN_S) mcrypt $(DESTDIR)/$(bindir)/mdecrypt
 uninstall-local:
-       -$(RM) -f $(bindir)/mdecrypt
+       -$(RM) -f $(DESTDIR)/$(bindir)/mdecrypt

 ChangeLog:
        cvs2cl --utc --fsf -t -S --prune

 Is there an option that I can use with either (%)configure or make install 
so I can skip patching the Makefile.am?

Bye,
Leonard.

--
mount -t life -o ro /dev/dna /genetic/research


_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/rpm-list

[Index of Archives]     [RPM Ecosystem]     [Linux Kernel]     [Red Hat Install]     [PAM]     [Red Hat Watch]     [Red Hat Development]     [Red Hat]     [Gimp]     [Yosemite News]     [IETF Discussion]

  Powered by Linux