7 DATADIR?
=$(PREFIX
)/share
8 PKGCONFIGDIR?
=$(LIBDIR
)/pkgconfig
14 JAR_INSTALL_DIR
=$(DATADIR
)/metux-java
15 JAR_INSTALL_FILE
=$(JAR_INSTALL_DIR
)/metux-java.jar
16 JAR_FILE
=.build
/metux-java.jar
17 PKGCONFIG_FILE
=jar.metux-java.
pc
20 all: $(JAR_FILE
) $(PKGCONFIG_FILE
)
23 rm -f
$(JAR_FILE
) $(PKGCONFIG_FILE
)
25 build
: $(JAR_FILE
) $(PKGCONFIG_FILE
)
27 install: $(JAR_FILE
) $(PKGCONFIG_FILE
)
28 mkdir
-p
$(DESTDIR
)$(JAR_INSTALL_DIR
) $(DESTDIR
)$(PKGCONFIGDIR
)
29 cp
$(JAR_FILE
) $(DESTDIR
)$(JAR_INSTALL_DIR
)
30 cp
$(PKGCONFIG_FILE
) $(DESTDIR
)$(PKGCONFIGDIR
)
35 $(PKGCONFIG_FILE
): $(PKGCONFIG_FILE
).in
37 | sed
-e
's~@prefix@~$(PREFIX)~g' \
38 | sed
-e
's~@version@~$(VERSION)~g' \
39 | sed
-e
's~@datadir@~$(DATADIR)~g' \
40 | sed
-e
's~@jarfile@~$(JAR_INSTALL_FILE)~g' \
41 | sed
-e
's~@classpath@~$(JAR_INSTALL_FILE)~g' \