aboutsummaryrefslogtreecommitdiff
path: root/academic/abntex/Makefile.diff
blob: f72ddef8121fdbd40af1ce604acae84399d1bd55 (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: