summaryrefslogtreecommitdiff
path: root/comms/rxtx/files/patch-Makefile.in
blob: aa7287bde925cc122f7d2f21b22fd1a43d4403d1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
--- Makefile.in.orig	2008-12-31 02:29:12 UTC
+++ Makefile.in
@@ -619,13 +619,15 @@ $(CLASSES): $(javafiles) $(TOP)/Makefile
 #  install librxtxSerial.so into the proper directory and copy $(JARTARGET) to its
 #  proper location
 install: all
+	@$(MKDIR_P) $(DESTDIR)$(RXTX_PATH)
 	@$(LIBTOOL_INST) \
 	`for i in $(TARGETLIB);do \
 		if [ -f $$i ];then \
-			echo $$i; \
+			echo $(TOP)/$$i; \
 		fi; \
-	done` $(RXTX_PATH)
-	$(INSTALL_PROGRAM) $(JARTARGET) $(JHOME)/
+	done` $(DESTDIR)$(RXTX_PATH)
+	@$(MKDIR_P) $(DESTDIR)$(JHOME)
+	$(BSD_INSTALL_DATA) $(JARTARGET) $(DESTDIR)$(JHOME)/
 
 clean-generic:
 	rm -rf $(DEST) $(TOP)/$(CLASSTOP)