blob: fda55cfbb09feb74ecbf6385e67f55027934ed86 (
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
|
--- Makefile.orig Wed Apr 11 13:54:00 2001
+++ Makefile Thu Apr 19 20:32:08 2001
@@ -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!
@@ -118,7 +121,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."; \
@@ -126,17 +129,17 @@
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 ; \
$(CP) $(AUCSRC) $(aucdir) ; \
$(CP) style/*.el $(aucdir)/style ; \
touch $(aucdir)/style/.nosearch ; \
- if [ ! -d $(aucdir)/auto ]; then mkdir $(aucdir)/auto; \
+ if [ ! -d $(aucdir)/auto ]; then $(MKDIR) $(aucdir)/auto; \
else true; fi ; \
touch $(aucdir)/auto/.nosearch ; \
else \
@@ -196,9 +199,9 @@
-(cd style; auc add `echo $(STYLESRC) | sed -e s@style/@@g` )
auc commit -m 'Release_$(TAG)'
auc 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
touch auctex-$(TAG)/style/.nosearch
|