summaryrefslogtreecommitdiff
path: root/math/fxt/files/patch-makefile
blob: 293d5c5a25160cd677d2f8f933248b3be3553f3e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
--- makefile.orig	2014-06-18 20:52:27.430827185 +0800
+++ makefile	2014-06-18 20:53:06.009833368 +0800
@@ -127,13 +127,13 @@ install: lib
 	: '[$@]'
 	@echo 'PREFIX=$(PREFIX)  LIBDIR=$(LIBDIR)  INCDIR=$(INCDIR)'
 	@:
-	@test -d $(INCDIR)  ||  mkdir $(INCDIR)
-	@$(FXT_INSTALL) $(FXTIDIR)/*.h $(INCDIR)/
-	@cd src && for f in $(SHFXTSRCDIRS); do mkdir -p $(INCDIR)/$$f; done
-	@cd src && for f in $(SHFXTSRCDIRS); do $(FXT_INSTALL) $$f/*.h $(INCDIR)/$$f; done
+	@test -d $(DESTDIR)$(INCDIR)  ||  mkdir $(DESTDIR)$(INCDIR)
+	@$(FXT_INSTALL) $(FXTIDIR)/*.h $(DESTDIR)$(INCDIR)/
+	@cd src && for f in $(SHFXTSRCDIRS); do mkdir -p $(DESTDIR)$(INCDIR)/$$f; done
+	@cd src && for f in $(SHFXTSRCDIRS); do $(FXT_INSTALL) $$f/*.h $(DESTDIR)$(INCDIR)/$$f; done
 	@:
-	@test -d $(LIBDIR)  ||  mkdir $(LIBDIR)
-	@$(FXT_INSTALL) $(FXTLIB) $(LIBDIR)/
+	@test -d $(DESTDIR)$(LIBDIR)  ||  mkdir $(DESTDIR)$(LIBDIR)
+	@$(FXT_INSTALL) $(FXTLIB) $(DESTDIR)$(LIBDIR)/
 	:  OK.
 
 .PHONY: chk-install ##x print whether installed header files are up to date