aboutsummaryrefslogtreecommitdiffstats
path: root/print/auctex/files/patch-aa
blob: 644c7f98ec2ea26e18739c081ab7d923b52dff3b (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
--- Makefile.orig	Thu Feb 11 11:19:48 1999
+++ Makefile	Sun Nov 21 16:41:46 1999
@@ -10,7 +10,7 @@
 ##----------------------------------------------------------------------
 
 # Where local software is found
-prefix=/usr/local
+prefix = ${PREFIX}
 
 # Where info files go.
 infodir = $(prefix)/info
@@ -22,7 +22,7 @@
 aucdir=$(lispdir)/auctex
 
 # Name of your emacs binary
-EMACS=emacs
+EMACS ?= emacs
 
 ##----------------------------------------------------------------------
 ## YOU MAY NEED TO EDIT THESE
@@ -48,10 +48,13 @@
 AUTOC= $(ELC)
 
 # How to move the byte compiled files to their destination.  
-MV = mv
+MV = ${BSD_INSTALL_DATA}
 
-# How to copy the lisp files to their distination.
-CP = cp -p
+# How to copy the lisp files to their destination.
+CP = ${BSD_INSTALL_DATA}
+
+# How to create destination directories.
+MKDIR = mkdir -p -m 755
 
 ##----------------------------------------------------------------------
 ##  BELOW THIS LINE ON YOUR OWN RISK!
@@ -115,7 +118,7 @@
 # 	$(ELC) hilit-LaTeX.el         # Doesn't compile without X
 
 install-lisp:	some
-	if [ ! -d $(lispdir) ]; then mkdir $(lispdir); else true; fi ;
+	if [ ! -d $(lispdir) ]; then $(MKDIR) $(lispdir); else true; fi ;
 	if [ -f $(lispdir)/tex-site.el ]; \
 	then \
 	    echo "Leaving old tex-site.el alone."; \
@@ -123,10 +126,10 @@
 	    sed -e 's#@AUCDIR#$(aucdir)/#' tex-site.el \
 	    > $(lispdir)/tex-site.el ; \
         fi
-	if [ ! -d $(aucdir) ]; then mkdir $(aucdir); else true; fi ; 
+	if [ ! -d $(aucdir) ]; then $(MKDIR) $(aucdir); else true; fi ; 
 	if [ `/bin/pwd` != `(cd $(aucdir) && /bin/pwd)` ] ; \
 	then \
-	    if [ ! -d $(aucdir)/style ]; then mkdir $(aucdir)/style; \
+	    if [ ! -d $(aucdir)/style ]; then $(MKDIR) $(aucdir)/style; \
 	                                 else true; fi ; \
 	    $(MV) $(AUCELC) $(aucdir) ; \
 	    $(MV) style/*.elc $(aucdir)/style ; \
@@ -189,9 +192,9 @@
 	-(cd style; cvs add `echo $(STYLESRC) | sed -e s@style/@@g` )
 	cvs commit -m "Release $(TAG)"
 	cvs tag release_`echo $(TAG) | sed -e 's/[.]/_/g'`
-	mkdir auctex-$(TAG) 
-	mkdir auctex-$(TAG)/style
-	mkdir auctex-$(TAG)/doc 
+	$(MKDIR) auctex-$(TAG) 
+	$(MKDIR) auctex-$(TAG)/style
+	$(MKDIR) auctex-$(TAG)/doc 
 	cp $(AUCSRC) $(EXTRAFILES) auctex-$(TAG)
 	cp $(STYLESRC) auctex-$(TAG)/style
 	cp $(DOCFILES)  auctex-$(TAG)/doc