# Note: When the version changes, you also have to change
# the RPM spec file and the lsm.
-VERS=2.1
+VERS=2.2
CFLAGS=-O
LDFLAGS=-s
mv lex.yy.c cstrings.c
$(CC) $(CFLAGS) cstrings.c $(LDFLAGS) -o cstrings
+cstrings.1: cstrings.sgml
+ docbook2man cstrings.sgml
+
+install: cstrings.1 uninstall
+ cp cstrings /usr/bin
+ cp cstrings.1 /usr/share/man/man1/cstrings.1
+
+uninstall:
+ rm -f /usr/bin/cstrings /usr/share/man/man1/cstrings.1
+
clean:
- rm -f lex.yy.c cstrings cstrings.c *~ cstrings.shar cstrings.tar.gz
+ rm -f lex.yy.c cstrings cstrings.1 cstrings.c *~ cstrings.tar.gz
rm -f *.rpm cstrings-*.tar.gz
SOURCES = READ.ME cstrings.1 Makefile cstrings.l cstrings.lsm cstrings.spec
(cd ..; tar -czvf cstrings/cstrings-$(VERS).tar.gz `cat cstrings/MANIFEST`)
@(cd ..; rm cstrings-$(VERS))
-cstrings-$(VERS).shar:
- shar $(SOURCES) >cstrings-$(VERS).shar
-
dist: cstrings-$(VERS).tar.gz
RPMROOT=/usr/src/redhat
Name: cstrings
-Version: 2.1
+Version: 2.2
Release: 1
-Source: locke.ccil.org:/pub/esr/cstrings-2.1.tar.gz
+Source: locke.ccil.org:/pub/esr/cstrings-2.2.tar.gz
Copyright: BSD-like
Group: Development/Tools
Summary: quick-and-dirty C code internationalization tool
make
%install
-rm -f /usr/bin/cstrings
-cp cstrings /usr/bin
-cp cstrings.1 /usr/man/man1/cstrings.1
+make install
%files
/usr/man/man1/cstrings.1