summaryrefslogtreecommitdiff
path: root/academic/abntex/Makefile.diff
blob: cc8f97e59110af2f6ba7e50ade208dd3807a993b (plain)
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
--- Makefile	2006-09-09 21:25:16.000000000 -0300
+++ Makefile.new	2009-04-20 16:06:57.905013404 -0300
@@ -7,14 +7,17 @@
 #altere a linha abaixo se o seu tetex não puder se detetado
 #pelo comando kpsewich, na dúvida faça um "make test"
 #TEXDIR= /tmp/test
-export TEXDIR= ${shell kpsewhich --expand-path='$$TEXMFMAIN'}
+export TEXDIR= ${DESTDIR}/${shell kpsewhich --expand-path='$$TEXMFMAIN'}
 
-export USRLOCAL=/usr/local/bin
+export USRLOCAL=${DESTDIR}/usr/bin
 
 #Do "man lyx":
 #The system directory is determined by  searching  for  the
 #       file  "chkconfig.ltx".
-export LYXDIR=${dir ${shell  find /usr/share/lyx -name chkconfig.ltx}}
+export LYXDIR=${dir ${shell  find /usr/share/lyx -name chkconfig.ltx}}
+ifneq (${LYXDIR},)
+export LYXDIR=${DESTDIR}/${LYXDIR}
+endif
 
 #diretório corrente onde se expandiu o cvs do abntex
 export ABNTEXDIR=$(notdir $(shell pwd))
@@ -119,14 +122,17 @@
 
 #install e uninstall específico para tetex localizado em ${TEXDIR}
 install-tex:
+	mkdir -p ${TEXDIR}
 	cp ${OPVR} --preserve texmf/* ${TEXDIR}
 
 install-lyx:
 ifneq (${LYXDIR},)
+	mkdir -p ${LYXDIR}
 	cp ${OPVR} --preserve lyx/* ${LYXDIR}
 endif
 
 install-bin:
+	mkdir -p ${USRLOCAL}
 	cp ${OPVR} --preserve bin/* ${USRLOCAL}
 
 post-install: