aboutsummaryrefslogtreecommitdiff
path: root/misc/chord/files/patch-aa
blob: f808c5cb9ef55329d92910eab24b73e46588e093 (plain) (blame)
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
--- ./Makefile.org	Tue Apr 25 00:04:52 1995
+++ ./Makefile	Tue Apr 25 00:14:57 1995
@@ -9,14 +9,14 @@
 
 # Use a ansi or K&R compiler
 CC = cc 
-CFLAGS = -D$(PAPERSIZE) -g
+CFLAGS = -D$(PAPERSIZE) -O2
 
 # where to put the resulting program
-BINDIR = /usr/local/bin
+BINDIR = ${PREFIX}/bin
 
 # where to put the man page
-MANDIR = /usr/man
-MANEXT = l
+MANDIR = ${PREFIX}/man
+MANEXT = 1
 
 # You should not have to change anything below this line
 
@@ -37,7 +37,7 @@
 
 a2crd: a2crd.o Makefile
 	$(CC) $(CFLAGS) -o $@ a2crd.o common.o
-	
+
 chord.o    : chord.h
 common.o   : chord.h
 grid.o     : chord.h
@@ -46,13 +46,14 @@
 toc.o	   : chord.h
 
 install : all
-	cp $(PROGRAMS) $(BINDIR)
-	rm -f $(MANDIR)/cat$(MANEXT)/chord.$(MANEXT)
+	install -c -s $(PROGRAMS) $(BINDIR)
 	cp chord.man $(MANDIR)/man$(MANEXT)/chord.$(MANEXT)
-	chmod 666 $(MANDIR)/man$(MANEXT)/chord.$(MANEXT)
-	Cp a2crd.man $(MANDIR)/man$(MANEXT)/a2crd.$(MANEXT)
-	chmod 666 $(MANDIR)/man$(MANEXT)/a2crd.$(MANEXT)
-	
+	chmod 444 $(MANDIR)/man$(MANEXT)/chord.$(MANEXT)
+	gzip -9nf $(MANDIR)/man$(MANEXT)/chord.$(MANEXT)
+	cp a2crd.man $(MANDIR)/man$(MANEXT)/a2crd.$(MANEXT)
+	chmod 444 $(MANDIR)/man$(MANEXT)/a2crd.$(MANEXT)
+	gzip -9nf $(MANDIR)/man$(MANEXT)/a2crd.$(MANEXT)
+
 shar : $(SRC)
 	rm -f $(RELNAME).part*
 	shar -F -L 60 -o $(RELNAME).part $(SRC) $(INCL) $(SONGS) $(DOCS)
@@ -68,4 +69,3 @@
 clean:
 	rm -f core *.o chord 
 
-