From 4c0395865b960ec96abcdd938fd31eebef986893 Mon Sep 17 00:00:00 2001 From: btakahashi Date: Mon, 25 Oct 2004 03:50:31 +0000 Subject: [PATCH] Makefile.in now honours DESTDIR --- Makefile.in | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/Makefile.in b/Makefile.in index 543bbe5..ee01933 100644 --- a/Makefile.in +++ b/Makefile.in @@ -39,25 +39,26 @@ bindir=@bindir@ all: librote.so.$(ROTE_VERSION) install: all - mkdir -p $(includedir)/rote - rm -f $(includedir)/rote/*.h - cp rote.h $(includedir)/rote - mkdir -p $(libdir) - cp librote.so.$(ROTE_VERSION) $(libdir) - cd $(libdir) && ln -sf librote.so.$(ROTE_VERSION) librote.so - cd $(libdir) && ln -sf librote.so.$(ROTE_VERSION) $(ROTE_SONAME) + mkdir -p $(DESTDIR)$(includedir)/rote + rm -f $(DESTDIR)$(includedir)/rote/*.h + cp rote.h $(DESTDIR)$(includedir)/rote + mkdir -p $(DESTDIR)$(libdir) + cp librote.so.$(ROTE_VERSION) $(DESTDIR)$(libdir) + cd $(DESTDIR)$(libdir) && ln -sf librote.so.$(ROTE_VERSION) librote.so + cd $(DESTDIR)$(libdir) && ln -sf librote.so.$(ROTE_VERSION) $(ROTE_SONAME) chmod 755 rote-config - cp -p rote-config $(bindir) + mkdir -p $(DESTDIR)$(bindir) + cp -p rote-config $(DESTDIR)$(bindir) @echo "-----------------------------------------------------------" @echo "ROTE - Our Own Terminal Emulation Library v$(ROTE_VERSION)" @echo - @echo "Include files installed at: $(includedir)" - @echo "Library files installed at: $(libdir)" - @echo "rote-config executable : $(bindir)/rote-config" + @echo "Include files installed at: $(DESTDIR)$(includedir)" + @echo "Library files installed at: $(DESTDIR)$(libdir)" + @echo "rote-config executable : $(DESTDIR)$(bindir)/rote-config" @echo @echo "To find out what compiler arguments you should use to" @echo "compile programs that use rote, use the rote-config" - @echo "program (make sure $(bindir) is in your path)." + @echo "program (make sure $(DESTDIR)$(bindir) is in your path)." @echo "-----------------------------------------------------------" librote.so.$(ROTE_VERSION): $(OBJECTS) -- 2.20.1