summaryrefslogtreecommitdiff
path: root/japanese/prn/files/patch-Makefile
blob: 4dc57104dfbab1b1f34c1ff2f03b885627fe3482 (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
*** Makefile.orig	Wed May 11 17:00:58 1994
--- Makefile	Tue Jul  1 17:44:49 1997
***************
*** 25,35 ****
  #	@(#)Makefile 2.3 (Y.Tonooka) 5/11/94
  #-
  
!           BINPATH = /usr/local/bin
!           LIBPATH = /usr/local/lib
!           MANPATH = /usr/local/man
!           JMANDIR = japanese
!            CFLAGS = -O
  #           CFLAGS = -g -DDEBUG
            ARFLAGS = rcv
  
--- 25,39 ----
  #	@(#)Makefile 2.3 (Y.Tonooka) 5/11/94
  #-
  
!           PREFIX?=/usr/local
!           BINPATH = ${PREFIX}/bin
!           LIBPATH = ${PREFIX}/share/prn
!           MANPATH = ${PREFIX}/man
!           JMANDIR = ja
!            CFLAGS += \
! 		-DKCCPATH=\"${PREFIX}/bin/kcc\" \
! 		-DCMTPATH=\"${PREFIX}/bin/cmt\" \
! 		-DPSPATH=\"${PREFIX}/bin/psconv\"
  #           CFLAGS = -g -DDEBUG
            ARFLAGS = rcv
  
***************
*** 39,47 ****
                 AR = ar
             RANLIB = ranlib
               LINT = lint
!           INSTALL = install
                 CP = cp
!                LN = ln
                 RM = rm -f
               TAGS = ctags
              ETAGS = etags
--- 43,51 ----
                 AR = ar
             RANLIB = ranlib
               LINT = lint
!           INSTALL = install -c
                 CP = cp
!                LN = ln -fs
                 RM = rm -f
               TAGS = ctags
              ETAGS = etags
***************
*** 91,103 ****
  
  $(BINPATH)/cprn: $(BINPATH)/prn
  	if [ $@ ]; then $(RM) $@; fi
! 	$(LN) $(BINPATH)/prn $@
  
  $(BINPATH)/cmt: cmt.c defs.c euc.c reg.y
  	$(MAKE) cmt
  	$(INSTALL) -s cmt $(BINPATH)
  
  $(LIBPATH)/cmtdefs: cmtdefs
  	$(CP) cmtdefs $@; chmod 644 $@
  
  $(BINPATH)/psconv: psconv.c
--- 95,108 ----
  
  $(BINPATH)/cprn: $(BINPATH)/prn
  	if [ $@ ]; then $(RM) $@; fi
! 	$(LN) prn $@
  
  $(BINPATH)/cmt: cmt.c defs.c euc.c reg.y
  	$(MAKE) cmt
  	$(INSTALL) -s cmt $(BINPATH)
  
  $(LIBPATH)/cmtdefs: cmtdefs
+ 	mkdir -p $(LIBPATH)
  	$(CP) cmtdefs $@; chmod 644 $@
  
  $(BINPATH)/psconv: psconv.c