File: separate_make_install.patch

package info (click to toggle)
latex2rtf 2.3.18a-5
  • links: PTS
  • area: main
  • in suites: sid, trixie
  • size: 9,392 kB
  • sloc: ansic: 20,424; makefile: 660; sh: 478; perl: 22
file content (62 lines) | stat: -rw-r--r-- 2,670 bytes parent folder | download
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
Description: separate various install targets to make build process cleaner
 The Makefile includes a single install target, but since we build both an
 arch-specific and an arch-independent package, this is suboptimal for Debian.
 This patch separates the two parts into separate targets.
Author: Chris Lawrence <lawrencc@debian.org>
Last-Update: 2023-08-17
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/Makefile
+++ b/Makefile
@@ -211,19 +211,7 @@ releasedate:
 doc: doc/latex2rtf.texi doc/Makefile
 	cd doc && $(MAKE) -k
 
-install: latex2rtf doc/latex2rtf.1 $(CFGS) scripts/latex2png
-	cd doc && $(MAKE)
-	$(MKDIR) $(DESTDIR)$(BINDIR)
-	$(MKDIR) $(DESTDIR)$(MANDIR)
-	$(MKDIR) $(DESTDIR)$(CFGDIR)
-	cp -p scripts/latex2png  $(DESTDIR)$(BINDIR)
-	cp -p doc/latex2rtf.1    $(DESTDIR)$(MANDIR)
-	cp -p doc/latex2png.1    $(DESTDIR)$(MANDIR)
-	cp -p $(CFGS)            $(DESTDIR)$(CFGDIR)
-	cp -p doc/latex2rtf.html $(DESTDIR)$(SUPPORTDIR)
-	cp -p doc/latex2rtf.pdf  $(DESTDIR)$(SUPPORTDIR)
-	cp -p doc/latex2rtf.txt  $(DESTDIR)$(SUPPORTDIR)
-	cp -p $(BINARY_NAME)     $(DESTDIR)$(BINDIR)
+install: install-bin install-doc
 	@echo "******************************************************************"
 	@echo "*** latex2rtf successfully installed as \"$(BINARY_NAME)\""
 	@echo "*** in directory \"$(BINDIR)\""
@@ -239,6 +227,21 @@ install: latex2rtf doc/latex2rtf.1 $(CFG
 	@echo "***   3) edit the Makefile and recompile"
 	@echo "******************************************************************"
 
+install-doc: doc
+	cp -p doc/latex2rtf.html $(DESTDIR)$(SUPPORTDIR)
+	cp -p doc/latex2rtf.pdf  $(DESTDIR)$(SUPPORTDIR)
+	cp -p doc/latex2rtf.txt  $(DESTDIR)$(SUPPORTDIR)
+
+install-bin: latex2rtf doc/latex2rtf.1 $(CFGS) scripts/latex2png
+	$(MKDIR) $(DESTDIR)$(BINDIR)
+	$(MKDIR) $(DESTDIR)$(MANDIR)
+	$(MKDIR) $(DESTDIR)$(CFGDIR)
+	cp -p scripts/latex2png  $(DESTDIR)$(BINDIR)
+	cp -p doc/latex2rtf.1    $(DESTDIR)$(MANDIR)
+	cp -p doc/latex2png.1    $(DESTDIR)$(MANDIR)
+	cp -p $(CFGS)            $(DESTDIR)$(CFGDIR)
+	cp -p $(BINARY_NAME)     $(DESTDIR)$(BINDIR)
+
 install-info: doc/latex2rtf.info
 	$(MKDIR) $(DESTDIR)$(INFODIR)
 	cp -p doc/latex2rtf.info $(DESTDIR)$(INFODIR)
@@ -256,7 +259,7 @@ appleclean:
 splint:
 	splint -weak $(SRCS) $(HDRS)
 	
-.PHONY: all check checkdir clean depend dist doc install install_info realclean latex2rtf uptodate releasedate splint fullcheck
+.PHONY: all check checkdir clean depend dist doc install install-info realclean uptodate releasedate splint fullcheck install-doc install-bin
 
 # created using "make depend"
 commands.o: commands.c cfg.h main.h convert.h chars.h fonts.h preamble.h \