cppcheck:
cppcheck --template gcc --enable=all bs.c
+# Note: does not install desktop file.
install: bs.6 uninstall
cp bs $(DESTDIR)/usr/bin
cp bs.6 $(DESTDIR)/usr/share/man/man6/bs.6
uninstall:
rm -f /usr/bin/bs /usr/share/man/man6/bs.6
-SOURCES = README COPYING NEWS control bs.c Makefile bs.xml battleship.png
+SOURCES = README COPYING NEWS control bs.c Makefile bs.xml battleship.png bs.desktop
bs-$(VERSION).tar.gz: $(SOURCES) bs.6
@ls $(SOURCES) bs.6 | sed s:^:bs-$(VERSION)/: >MANIFEST
--- /dev/null
+[Desktop Entry]
+Type=Application
+Version=1.0
+Name=Battleships
+GenericName=BattleShip game
+Comment=Battleships solitaire game with a color interface
+Icon=battleship
+Exec=bs
+Categories=Game;ArcadeGame;
+Terminal=true