summaryrefslogtreecommitdiff
path: root/lib/am/java.am
diff options
context:
space:
mode:
Diffstat (limited to 'lib/am/java.am')
-rw-r--r--lib/am/java.am8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/am/java.am b/lib/am/java.am
index 801107224..b72cdc278 100644
--- a/lib/am/java.am
+++ b/lib/am/java.am
@@ -17,17 +17,17 @@
## 02111-1307, USA.
install-@DIR@JAVA: class@DIR@.stamp
@$(NORMAL_INSTALL)
- $(mkinstalldirs) $(@DIR@dir)
+ $(mkinstalldirs) $(DESTDIR)$(@DIR@dir)
## A single .java file can be compiled into multiple .class files. So
## we just install all the .class files that got built into this
## directory. This is not optimal, but will have to do for now.
for p in *.class; do \
- echo " $(INSTALL_DATA) $$p $(@DIR@dir)/$$p"; \
- $(INSTALL_DATA) $$p $(@DIR@dir)/$$p; \
+ echo " $(INSTALL_DATA) $$p $(DESTDIR)$(@DIR@dir)/$$p"; \
+ $(INSTALL_DATA) $$p $(DESTDIR)$(@DIR@dir)/$$p; \
done
uninstall-@DIR@JAVA:
@$(NORMAL_UNINSTALL)
for p in *.class; do \
- rm -f $(@DIR@dir)/$$p; \
+ rm -f $(DESTDIR)$(@DIR@dir)/$$p; \
done