-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
27 lines (22 loc) · 832 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
PREFIX = /usr/local
BINDIR = $(PREFIX)/bin
JAVADIR = $(PREFIX)/share/java
LICENSEDIR = $(PREFIX)/share/licenses
DOCDIR = $(PREFIX)/share/doc
JARS = tests/TestJavaFX.jar
.PHONY: install tests clean
install:
tmpfile=`mktemp`; \
echo "Using temporary file $$tmpfile"; \
sed 's|###JAVADIR###|$(JAVADIR)|g' archlinux-java-run.sh > "$$tmpfile"; \
install -Dm 755 "$$tmpfile" $(DESTDIR)$(BINDIR)/archlinux-java-run; \
rm "$$tmpfile"
install -dm 755 $(DESTDIR)$(JAVADIR)/archlinux-java-run
cp $(JARS) $(DESTDIR)$(JAVADIR)/archlinux-java-run/
install -Dm 644 LICENSE $(DESTDIR)$(LICENSEDIR)/archlinux-java-run/LICENSE
install -Dm 644 README.md $(DESTDIR)$(DOCDIR)/archlinux-java-run/README.md
install -Dm 644 CHANGES.md $(DESTDIR)$(DOCDIR)/archlinux-java-run/CHANGES.md
tests:
$(MAKE) -C tests
clean:
$(MAKE) -C tests clean