ChangeLog: 3.18: 2017-08-01 Fix a packaging error, include NEWS in the tarball. 3.17: 2017-07-31 Add -b option to generate a table with binary code-points. 3.16: 2017-07-18 Add -a option to print in 4-column mode. 0-fill fix and octal code-point literals.
34 lines
963 B
Text
34 lines
963 B
Text
$NetBSD: patch-aa,v 1.4 2020/03/07 18:31:03 fcambus Exp $
|
|
|
|
--- Makefile.orig 2017-08-01 22:51:08.000000000 +0000
|
|
+++ Makefile
|
|
@@ -2,13 +2,14 @@
|
|
|
|
VERS=$(shell sed -n <NEWS '/^[0-9]/s/:.*//p' | head -1)
|
|
|
|
-CFLAGS = -O
|
|
+CFLAGS? = -O
|
|
|
|
PREFIX = /usr
|
|
|
|
all: ascii ascii.1
|
|
|
|
ascii: ascii.c splashscreen.h nametable.h
|
|
+ $(LIBTOOL) --mode=link --tag=CC \
|
|
$(CC) $(CFLAGS) -DREVISION=$(VERS) ascii.c -o ascii
|
|
|
|
splashscreen.h: splashscreen
|
|
@@ -35,8 +36,11 @@ splint:
|
|
splint +quiet +posixlib $(SPLINT_SUPPRESSIONS) ascii.c
|
|
|
|
install: ascii ascii.1
|
|
- cp ascii $(DESTDIR)$(PREFIX)/bin/ascii
|
|
- cp ascii.1 $(DESTDIR)$(PREFIX)/share/man/man1
|
|
+ $(BSD_INSTALL_PROGRAM_DIR) $(DESTDIR)$(PREFIX)/bin
|
|
+ $(LIBTOOL) --mode=install \
|
|
+ $(BSD_INSTALL_PROGRAM) ascii $(DESTDIR)$(PREFIX)/bin
|
|
+ $(BSD_INSTALL_MAN_DIR) $(DESTDIR)$(PREFIX)/$(PKGMANDIR)/man1
|
|
+ $(BSD_INSTALL_MAN) ascii.1 $(DESTDIR)$(PREFIX)/$(PKGMANDIR)/man1/ascii.1
|
|
|
|
uninstall:
|
|
rm $(DESTDIR)$(PREFIX)/bin/ascii
|