Prefix install paths with optional DESTDIR variable.

This commit is contained in:
Josh Elsasser 2006-09-25 01:19:11 +00:00
parent 1b8280df3e
commit c5614964a3
1 changed files with 6 additions and 6 deletions

View File

@ -63,20 +63,20 @@ endef
define INSTALL_BIN_RULE
@echo "Install $<"
@$(MKDIR) $(PREFIX)/bin
@$(CP) $< $(PREFIX)/bin/
@$(MKDIR) $(DESTDIR)$(PREFIX)/bin
@$(CP) $< $(DESTDIR)$(PREFIX)/bin/
endef
define INSTALL_LOCALE_RULE
@echo "Install $<"
@$(MKDIR) $(LOCALEDIR)/$*/LC_MESSAGES
@$(CP) $< $(LOCALEDIR)/$*/LC_MESSAGES/transmission-gtk.mo
@$(MKDIR) $(DESTDIR)$(LOCALEDIR)/$*/LC_MESSAGES
@$(CP) $< $(DESTDIR)$(LOCALEDIR)/$*/LC_MESSAGES/transmission-gtk.mo
endef
define INSTALL_MAN_RULE
@echo "Install $<"
@$(MKDIR) $(PREFIX)/man/man1
@$(CP) $< $(PREFIX)/man/man1/
@$(MKDIR) $(DESTDIR)$(PREFIX)/man/man1
@$(CP) $< $(DESTDIR)$(PREFIX)/man/man1/
endef
RM = rm -Rf