Changeset 912


Ignore:
Timestamp:
Sep 25, 2006, 1:19:11 AM (15 years ago)
Author:
joshe
Message:

Prefix install paths with optional DESTDIR variable.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/mk/common.mk

    r517 r912  
    6464define INSTALL_BIN_RULE
    6565       @echo "Install $<"
    66        @$(MKDIR) $(PREFIX)/bin
    67        @$(CP) $< $(PREFIX)/bin/
     66       @$(MKDIR) $(DESTDIR)$(PREFIX)/bin
     67       @$(CP) $< $(DESTDIR)$(PREFIX)/bin/
    6868endef
    6969
    7070define INSTALL_LOCALE_RULE
    7171       @echo "Install $<"
    72        @$(MKDIR) $(LOCALEDIR)/$*/LC_MESSAGES
    73        @$(CP) $< $(LOCALEDIR)/$*/LC_MESSAGES/transmission-gtk.mo
     72       @$(MKDIR) $(DESTDIR)$(LOCALEDIR)/$*/LC_MESSAGES
     73       @$(CP) $< $(DESTDIR)$(LOCALEDIR)/$*/LC_MESSAGES/transmission-gtk.mo
    7474endef
    7575
    7676define INSTALL_MAN_RULE
    7777        @echo "Install $<"
    78         @$(MKDIR) $(PREFIX)/man/man1
    79         @$(CP) $< $(PREFIX)/man/man1/
     78        @$(MKDIR) $(DESTDIR)$(PREFIX)/man/man1
     79        @$(CP) $< $(DESTDIR)$(PREFIX)/man/man1/
    8080endef
    8181
Note: See TracChangeset for help on using the changeset viewer.