X-Git-Url: http://git.madism.org/?p=apps%2Fmadtty.git;a=blobdiff_plain;f=Makefile.in;h=ee019330b36bac9f2e942a685bdb8d4eb14373b2;hp=543bbe59611889ac7f1b4a9e455241ba4034b46e;hb=4c0395865b960ec96abcdd938fd31eebef986893;hpb=5eb4b9bf558b8a9d4aac7ef5545f711da4840d3b 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)