# Note: When the version changes, you also have to change
# * the name of the containing directory
# * the RPM spec file
-VERSION=2.3
+VERSION=2.4
# Flags for use with the Linux ncurses package (recommended)
TERMLIB = -lncurses
bs: bs.c
$(CC) $(CFLAGS) -o bs bs.c $(TERMLIB)
-lint:
- lint bs.c -lcurses
+bs.6:
+ docbook2man bs.sgml
clean:
- rm -f bs bs.shar bs.tar.gz *~
+ rm -f bs bs.6 bs.tar.gz *~
-SOURCES = READ.ME bs.c Makefile bs.6 bs.lsm bs.spec
+install: bs.6 uninstall
+ cp bs /usr/bin
+ cp bs.6 /usr/share/man/man6/bs.6
-bs.shar:
- shar $(SOURCES) >bs.shar
+uninstall:
+ rm -f /usr/bin/bs /usr/share/man/man6/bs.6
+
+SOURCES = READ.ME bs.c Makefile bs.sgml bs.lsm bs.spec
bs-$(VERSION).tar.gz: $(SOURCES)
@ls $(SOURCES) | sed s:^:bs-$(VERSION)/: >MANIFEST
Name: bs
Summary: Battleships against the computer (character-cell graphics)
-Version: 2.3
+Version: 2.4
Release: 1
-Source: locke.ccil.org:/pub/esr/bs-2.3.tar.gz
+Source: locke.ccil.org:/pub/esr/bs-2.4.tar.gz
Copyright: BSD-like
Group: Games
%description
make
%install
-rm -f /usr/bin/bs
-cp bs /usr/bin
-cp bs.6 /usr/share/man/man6/bs.6
+make install
%files
/usr/share/man/man6/bs.6