summaryrefslogtreecommitdiff
path: root/x11/xtermset/patches/patch-aa
blob: eeb4f8b2055274ba54318e4ec8480f8f54444313 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
$NetBSD: patch-aa,v 1.3 2000/02/05 16:26:06 wiz Exp $
--- Makefile.orig	Thu Jan 14 00:02:56 1999
+++ Makefile	Sat Aug 21 05:50:20 1999
@@ -1,7 +1,7 @@
 CC     = gcc
-CFLAGS = -O2 -Wall
+CFLAGS+= -O2 -Wall
 OBJS   = xtermset.o
-PREFIX = /usr/local
+#PREFIX = /usr/local
 
 DOCSRC = ctlseqs.ms
 DOCOUT = ctlseqs.ps
@@ -9,15 +9,12 @@
 
 all: xtermset
 
-xtermset: $(OBJS)
-	$(CC) $(OBJS) -o xtermset
-
-$(OBJS): %.o: %.c
-	$(CC) -c $(CFLAGS) $<
+xtermset:
+	$(CC) xtermset.c -o xtermset
 
 install: xtermset
-	install -m 0755 -s xtermset $(PREFIX)/bin
-	install -m 0644 xtermset.1.gz $(PREFIX)/man/man1
+	${BSD_INSTALL_PROGRAM} xtermset $(PREFIX)/bin
+	${BSD_INSTALL_MAN} xtermset.1 $(PREFIX)/man/man1
 
 doc: $(DOCSRC)
 	groff -mandoc -ms -T$(DOCFMT) $(DOCSRC) > $(DOCOUT)