# Note: When the version changes, you also have to change
# * the name of the containing directory
# * the RPM spec file
-V=2.1
+V=2.2
# Flags for use with the Linux ncurses package (recommended)
TERMLIB = -lncurses
bs.shar:
shar $(SOURCES) >bs.shar
-bs.tar:
- (cd ..; tar -cvf bs-$(V)/bs.tar `echo $(SOURCES) | sed "/\(^\| \)/s// bs-$(V)\//g"`)
-bs.tar.gz: bs.tar
- gzip -f bs.tar
+bs-$(V).tar.gz:
+ tar --name-prefix='bs-$(V)/' -czf bs-$(V).tar.gz $(SOURCES)
+
+tgz: bs-$(V).tar.gz
rpm: bs.tar.gz
cp bs.tar.gz /usr/src/SOURCES/bs-$(V).tar.gz