forked from lix-project/lix
Fix JAR installation
This commit is contained in:
parent
9648222ef0
commit
5c4d2dab99
4
jars.mk
4
jars.mk
|
@ -10,7 +10,7 @@ define build-jar
|
||||||
|
|
||||||
_jars := $$(foreach jar, $$($(1)_JARS), $$($$(jar)_PATH))
|
_jars := $$(foreach jar, $$($(1)_JARS), $$($$(jar)_PATH))
|
||||||
|
|
||||||
$$($(1)_PATH): $$($(1)_SOURCES) $$(_jars)
|
$$($(1)_PATH): $$($(1)_SOURCES) $$(_jars) $$($(1)_EXTRA_DEPS)| $$($(1)_ORDER_AFTER)
|
||||||
@rm -rf $$($(1)_TMPDIR)
|
@rm -rf $$($(1)_TMPDIR)
|
||||||
@mkdir -p $$($(1)_TMPDIR)
|
@mkdir -p $$($(1)_TMPDIR)
|
||||||
$$(trace-javac) javac $(GLOBAL_JAVACFLAGS) $$($(1)_JAVACFLAGS) -d $$($(1)_TMPDIR) \
|
$$(trace-javac) javac $(GLOBAL_JAVACFLAGS) $$($(1)_JAVACFLAGS) -d $$($(1)_TMPDIR) \
|
||||||
|
@ -19,7 +19,7 @@ define build-jar
|
||||||
$$(trace-jar) jar cfm $$($(1)_PATH) <(echo -e '$$(subst $$(newline),\n,$$($(1)_MANIFEST))') -C $$($(1)_TMPDIR) .
|
$$(trace-jar) jar cfm $$($(1)_PATH) <(echo -e '$$(subst $$(newline),\n,$$($(1)_MANIFEST))') -C $$($(1)_TMPDIR) .
|
||||||
@rm -rf $$($(1)_TMPDIR)
|
@rm -rf $$($(1)_TMPDIR)
|
||||||
|
|
||||||
$(1)_INSTALL_DIR ?= $$(libdir)/java
|
$(1)_INSTALL_DIR ?= $$(jardir)
|
||||||
|
|
||||||
$(1)_INSTALL_PATH := $$($(1)_INSTALL_DIR)/$$($(1)_NAME).jar
|
$(1)_INSTALL_PATH := $$($(1)_INSTALL_DIR)/$$($(1)_NAME).jar
|
||||||
|
|
||||||
|
|
1
lib.mk
1
lib.mk
|
@ -36,6 +36,7 @@ libdir ?= $(prefix)/lib
|
||||||
bindir ?= $(prefix)/bin
|
bindir ?= $(prefix)/bin
|
||||||
libexecdir ?= $(prefix)/libexec
|
libexecdir ?= $(prefix)/libexec
|
||||||
datadir ?= $(prefix)/share
|
datadir ?= $(prefix)/share
|
||||||
|
jardir ?= $(datadir)/java
|
||||||
localstatedir ?= $(prefix)/var
|
localstatedir ?= $(prefix)/var
|
||||||
sysconfdir ?= $(prefix)/etc
|
sysconfdir ?= $(prefix)/etc
|
||||||
mandir ?= $(prefix)/share/man
|
mandir ?= $(prefix)/share/man
|
||||||
|
|
Loading…
Reference in a new issue