altosui: discard invalid lines while reading Eeprom flight data
[fw/altos] / ao-tools / altosui / Makefile
index d3ecb889d909b3f83afd2df15d6a8ba1c15d2641..770abcf33cae87954bafd303730360e44e423a1c 100644 (file)
@@ -96,8 +96,14 @@ endif
 ifeq ($(OS),Linux)
 altosui:
        echo "#!/bin/sh" > $@
-       echo "exec java -Djava.library.path=../libaltos -jar altosui.jar" >> $@
+       echo "exec java -Djava.library.path=/usr/lib/altos -jar /usr/share/java/altosui.jar" >> $@
        chmod +x ./altosui
+
+install:       altosui.jar altosui
+       /usr/bin/install -m 0644 altosui.jar $(DESTDIR)/usr/share/java/altosui.jar
+       /usr/bin/install -m 0644 altosui.1 $(DESTDIR)/usr/share/man/man1/altosui.1
+       /usr/bin/install altosui $(DESTDIR)/usr/bin/altosui
+       
 endif
 
 clean: