File fix_makefile_dist.patch of Package latex2rtf
--- A/Makefile 2013-11-12 06:44:44.000000000 -0200
+++ B/Makefile 2015-04-16 23:55:52.419519504 -0300
@@ -27,11 +27,11 @@
BINARY_NAME=latex2rtf$(EXE_SUFFIX)
# Location of binary, man, info, and support files - adapt as needed
-BINDIR=/bin
-MANDIR=/share/$(PKGMANDIR)/man1
-INFODIR=/share/info
-SUPPORTDIR=/share/latex2rtf
-CFGDIR=/share/latex2rtf/cfg
+BINDIR?=/bin
+MANDIR?=/share/$(PKGMANDIR)/man1
+INFODIR?=/share/info
+SUPPORTDIR?=/share/latex2rtf
+CFGDIR?=/share/latex2rtf/cfg
#Uncomment next 5 lines for Windows
#BINDIR=
@@ -151,10 +151,10 @@
$(CC) $(CFLAGS) $(LDFLAGS) $(OBJS) $(LIBS) -o $(BINARY_NAME)
cfg.o: Makefile cfg.c
- $(CC) $(CFLAGS) -DCFGDIR=\"$(DESTDIR)$(CFGDIR)\" -c cfg.c -o cfg.o
+ $(CC) $(CFLAGS) -DCFGDIR=\"$(CFGDIR)\" -c cfg.c -o cfg.o
main.o: Makefile main.c
- $(CC) $(CFLAGS) -DCFGDIR=\"$(DESTDIR)$(CFGDIR)\" -c main.c -o main.o
+ $(CC) $(CFLAGS) -DCFGDIR=\"$(CFGDIR)\" -c main.c -o main.o
check test: latex2rtf
cd test && $(MAKE) clean