mirror of
https://github.com/Stichting-MINIX-Research-Foundation/pkgsrc-ng.git
synced 2025-09-11 05:22:40 -04:00
35 lines
914 B
Plaintext
35 lines
914 B
Plaintext
$NetBSD: patch-aa,v 1.3 2016/03/07 19:59:32 nros Exp $
|
|
|
|
--- Makefile.orig 2015-04-02 12:50:10.000000000 +0000
|
|
+++ Makefile
|
|
@@ -2,13 +2,14 @@
|
|
|
|
VERS=3.15
|
|
|
|
-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
|