summaryrefslogtreecommitdiff
path: root/misc/peq/files/patch-aa
blob: 625233f45ef47e56a96cdea5ca03ebc444d89909 (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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
*** Makefile.orig	Fri Apr  2 19:52:27 1999
--- Makefile	Fri Apr  2 19:51:11 1999
***************
*** 7,13 ****
  CC = g++
  
  # Flags to pass to the C++ compiler
! FLAGS = -O -Wall
  
  # Your tar
  TAR = tar
--- 7,13 ----
  CC = g++
  
  # Flags to pass to the C++ compiler
! FLAGS = -DPREFIX=\"${PREFIX}\" ${CFLAGS} -L /usr/X11R6/lib -I /usr/X11R6/include
  
  # Your tar
  TAR = tar
***************
*** 17,29 ****
  ZIPR = gzip -9
  
  # Default installion directory for the console version of PEQ
! DIR_CONSOLE_PEQ = /usr/games
  
  # Default installion directory for the X version of PEQ
! DIR_X_PEQ = /usr/games
  
  # Default installion directory for peq.lib (the quote library)
! DIR_LIB = /usr/share/games
  
  # Get current date
  LIB_DATE = `date +%m%d%y`
--- 17,29 ----
  ZIPR = gzip -9
  
  # Default installion directory for the console version of PEQ
! DIR_CONSOLE_PEQ = ${PREFIX}/bin
  
  # Default installion directory for the X version of PEQ
! DIR_X_PEQ = ${PREFIX}/bin
  
  # Default installion directory for peq.lib (the quote library)
! DIR_LIB = ${PREFIX}/share/peq
  
  # Get current date
  LIB_DATE = `date +%m%d%y`
***************
*** 42,70 ****
  	$(CC) $(FLAGS) -o peq peq.cpp strmid.o show.o read.o proc.o ocfile.o arg.o
  	$(CC) $(FLAGS) -o xpeq -lqt xpeq.cpp strmid.o show.o read.o proc.o ocfile.o
  
- ## "install" gives a handy message about how to install PEQ
  install:
! 	@echo "No such option! Use..."
! 	@echo "'make install-console' to install the console of PEQ"
! 	@echo "'make install-x' to install the X version of PEQ"
! 	@echo "'make install-lib' to install peq.lib (the quote library)"
! 	@echo "'make install-all' to install all of the above"
! 	@echo "'make install-console-lib' to install console PEQ and peq.lib"
! 	@echo "'make install-x-lib' to install X PEQ and peq.lib"
! 	@echo "'make install-console-x' to install console and X PEQ"
! 	@echo "If in doubt... just type 'make install-all' :-)"
  
  install-console:
! 	cp peq $(DIR_CONSOLE_PEQ)/peq -f
  
  install-x:
! 	cp xpeq $(DIR_X_PEQ)/xpeq -f
  
  install-lib:
! 	cp peq.lib $(DIR_LIB)/peq.lib -f
! 
! install-all:
! 	make install-console ; make install-x ; make install-lib
  
  install-console-lib:
  	make install-console ; make install-lib
--- 42,60 ----
  	$(CC) $(FLAGS) -o peq peq.cpp strmid.o show.o read.o proc.o ocfile.o arg.o
  	$(CC) $(FLAGS) -o xpeq -lqt xpeq.cpp strmid.o show.o read.o proc.o ocfile.o
  
  install:
! 	make install-console ; make install-x ; make install-lib
  
  install-console:
! 	cp -f peq $(DIR_CONSOLE_PEQ)/peq
  
  install-x:
! 	cp -f xpeq $(DIR_X_PEQ)/xpeq
  
  install-lib:
! 	rm -rf $(DIR_LIB)
! 	mkdir $(DIR_LIB)
! 	cp -f peq.lib $(DIR_LIB)/peq.lib
  
  install-console-lib:
  	make install-console ; make install-lib
***************
*** 78,86 ****
  ## "uninstall" erases all traces of PEQ from your system (but why would you
  ## want to do that?)
  uninstall:
! 	rm $(DIR_CONSOLE_PEQ)/peq -f
! 	rm $(DIR_X_PEQ)/xpeq -f
! 	rm $(DIR_LIB)/peq.lib -f
  
  ## "clean" cleans up all the junk and leaves the uncompiled code alone
  clean:
--- 68,76 ----
  ## "uninstall" erases all traces of PEQ from your system (but why would you
  ## want to do that?)
  uninstall:
! 	rm -f $(DIR_CONSOLE_PEQ)/peq
! 	rm -f $(DIR_X_PEQ)/xpeq
! 	rm -f $(DIR_LIB)/peq.lib
  
  ## "clean" cleans up all the junk and leaves the uncompiled code alone
  clean: