Fix to remove alert if timeout expires during system sleep.
[busymon] / Makefile
index 6252048..a7d27ee 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,8 @@
 
-JAVAFX_HOME=/usr/lib64/javafx-sdk-13
+VERSION=-1
+
+JAVAFX_HOME=/usr/local/javafx-sdk-15
+JAVA_HOME=/usr/local/jdk-15
 
 CFLAGS=-Wall -Wno-parentheses
 CPPFLAGS=
@@ -31,12 +34,19 @@ clean:
        rm -rf bin
 
 install: bin/notzed.busyalert.jar bin/busymon
-       sed -e 's,@JAVAFX_HOME@,$(JAVAFX_HOME),g' \
-           -e 's,@MODULE_DIR@,$(DESTDIR)$(prefix)/share/notzed.busyalert,g' \
+       sed -e 's,@JAVA_HOME@,$(JAVA_HOME),g' \
+           -e 's,@JAVAFX_HOME@,$(JAVAFX_HOME),g' \
+           -e 's,@MODULE_DIR@,$(prefix)/share/notzed.busyalert,g' \
           < src/busyalert.in > bin/busyalert
        chmod 755 bin/busyalert
        install -D bin/busyalert $(DESTDIR)$(prefix)/share/notzed.busyalert/busyalert
        install -D bin/notzed.busyalert.jar $(DESTDIR)$(prefix)/share/notzed.busyalert/notzed.busyalert.jar
        install -D bin/busymon $(DESTDIR)$(prefix)/bin/busymon
 
-
+dist:
+       tar cfz busymon$(VERSION).tar.gz \
+       --xform 's@^@busymon$(VERSION)/@' \
+       COPYING README Makefile \
+       src/busyalert.in src/busymon.c \
+       $(notzed.busyalert_JAVA) \
+       contrib