blob: 944654ab643f50bfa829a768f37df1cb6a37f1b1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
Add DESTDIR support to Makefile
--- RXTX.orig/Makefile.am
+++ RXTX/Makefile.am
@@ -81,13 +81,15 @@
# install librxtxSerial.so into the proper directory and copy $(JARTARGET) to its
# proper location
install: all
+ $(mkinstalldirs) $(DESTDIR)$(RXTX_PATH)
+ $(mkinstalldirs) $(DESTDIR)$(JHOME)
@$(LIBTOOL_INST) \
`for i in $(TARGETLIB);do \
if [ -f $$i ];then \
echo $$i; \
fi; \
- done` $(RXTX_PATH)
- $(INSTALL_PROGRAM) $(JARTARGET) $(JHOME)/
+ done` $(DESTDIR)$(RXTX_PATH)
+ $(INSTALL_PROGRAM) $(JARTARGET) $(DESTDIR)$(JHOME)/
clean-generic:
rm -rf $(DEST) $(TOP)/$(CLASSTOP)
|