Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 88232 | Differences between
and this patch

Collapse All | Expand All

(-)linuxdoc-tools-0.9.21/Makefile.in (-38 / +39 lines)
Lines 67-81 Link Here
67
	done
67
	done
68
68
69
install::
69
install::
70
	@echo "Installing binaries in $(bindir) ..."
70
	@echo "Installing binaries in $(DESTDIR)$(bindir) ..."
71
	if [ ! -d $(bindir) ]; then mkdir -p $(bindir); fi
71
	if [ ! -d $(DESTDIR)$(bindir) ]; then mkdir -p $(DESTDIR)$(bindir); fi
72
	-chmod 755 $(bindir)
72
	-chmod 755 $(DESTDIR)$(bindir)
73
# nsgmls or onsgmls should be installed already
73
# nsgmls or onsgmls should be installed already
74
# ifeq ($(BUILD_NSGMLS), true)
74
# ifeq ($(BUILD_NSGMLS), true)
75
#	$(INSTALL_PROGRAM) sp/nsgmls/nsgmls $(bindir)/nsgmls
75
#	$(INSTALL_PROGRAM) sp/nsgmls/nsgmls $(bindir)/nsgmls
76
# endif
76
# endif
77
ifeq ($(BUILD_SGMLSASP), true)
77
ifeq ($(BUILD_SGMLSASP), true)
78
	$(INSTALL_PROGRAM) sgmls-1.1/sgmlsasp $(bindir)/sgmlsasp
78
	$(INSTALL_PROGRAM) sgmls-1.1/sgmlsasp $(DESTDIR)$(bindir)/sgmlsasp
79
endif
79
endif
80
ifeq ($(BUILD_ENTITY_MAP), true)
80
ifeq ($(BUILD_ENTITY_MAP), true)
81
	@echo "Installing Entity Mapping library (in entity-map)..."
81
	@echo "Installing Entity Mapping library (in entity-map)..."
Lines 90-139 Link Here
90
	strip sgmlpre/sgmlpre
90
	strip sgmlpre/sgmlpre
91
	for ii in sgmlpre/sgmlpre rtf-fix/rtf2rtf; do \
91
	for ii in sgmlpre/sgmlpre rtf-fix/rtf2rtf; do \
92
	  bn=`basename $$ii`; \
92
	  bn=`basename $$ii`; \
93
	  $(INSTALL_PROGRAM) $$ii $(bindir)/$$bn; \
93
	  $(INSTALL_PROGRAM) $$ii $(DESTDIR)$(bindir)/$$bn; \
94
	done
94
	done
95
	$(INSTALL_PROGRAM) bin/linuxdoc $(bindir)/linuxdoc
95
	$(INSTALL_PROGRAM) bin/linuxdoc $(DESTDIR)$(bindir)/linuxdoc
96
	@echo "Installing library and support files in $(pkgdatadir)..."
96
	@echo "Installing library and support files in $(pkgdatadir)..."
97
	if [ ! -d $(pkgdatadir) ]; then mkdir -p $(pkgdatadir); fi
97
	if [ ! -d $(DESTDIR)$(pkgdatadir) ]; then mkdir -p $(DESTDIR)$(pkgdatadir); fi
98
	chmod 755 $(pkgdatadir)
98
	chmod 755 $(DESTDIR)$(pkgdatadir)
99
	cp -r lib/* $(pkgdatadir)
99
	cp -r lib/* $(DESTDIR)$(pkgdatadir)
100
	cp VERSION $(pkgdatadir)
100
	cp VERSION $(DESTDIR)$(pkgdatadir)
101
	@echo "Installing man pages in $(mandir1) ..." 
101
	@echo "Installing man pages in $(DESTDIR)$(mandir1) ..." 
102
	if [ ! -d $(mandir1) ]; then mkdir -p $(mandir1) ; fi
102
	if [ ! -d $(DESTDIR)$(mandir1) ]; then mkdir -p $(DESTDIR)$(mandir1) ; fi
103
	-chmod 755 $(mandir1)
103
	-chmod 755 $(DESTDIR)$(mandir1)
104
	for ii in genman/sgml2* genman/sgmlcheck.1 \
104
	for ii in genman/sgml2* genman/sgmlcheck.1 \
105
	          genman/rtf*.1 genman/sgmlpre*.1; do \
105
	          genman/rtf*.1 genman/sgmlpre*.1; do \
106
	  bn=`basename $$ii`; \
106
	  bn=`basename $$ii`; \
107
	  $(INSTALL_DATA) $$ii $(mandir1)/$$bn; \
107
	  $(INSTALL_DATA) $$ii $(DESTDIR)$(mandir1)/$$bn; \
108
	done
108
	done
109
	$(INSTALL_DATA) genman/linuxdoc.1 $(mandir1)/linuxdoc.1
109
	$(INSTALL_DATA) genman/linuxdoc.1 $(DESTDIR)$(mandir1)/linuxdoc.1
110
ifeq ($(BUILD_NSGMLS), true)
110
ifeq ($(BUILD_NSGMLS), true)
111
	$(INSTALL_DATA) man/nsgmls.1 $(mandir1)/nsgmls.1
111
	$(INSTALL_DATA) man/nsgmls.1 $(DESTDIR)$(mandir1)/nsgmls.1
112
endif
112
endif
113
ifeq ($(BUILD_SGMLSASP), true)
113
ifeq ($(BUILD_SGMLSASP), true)
114
	$(INSTALL_DATA) man/sgmlsasp.1 $(mandir1)/sgmlsasp.1
114
	$(INSTALL_DATA) man/sgmlsasp.1 $(DESTDIR)$(mandir1)/sgmlsasp.1
115
endif
115
endif
116
	find $(pkgdatadir) -type d -print | xargs chmod 755
116
	find $(DESTDIR)$(pkgdatadir) -type d -print | xargs chmod 755
117
	find $(pkgdatadir) -type f -print | xargs chmod 644
117
	find $(DESTDIR)$(pkgdatadir) -type f -print | xargs chmod 644
118
	(cd $(pkgdatadir)/dist/linuxdoc-tools/latin1; rm -f mapping; ln -s ../groff/mapping .)
118
	(cd $(DESTDIR)$(pkgdatadir)/dist/linuxdoc-tools/latin1; rm -f mapping; ln -s ../groff/mapping .)
119
	(cd $(pkgdatadir)/dist/linuxdoc-tools/nippon; rm -f mapping; ln -s ../groff/tr-mapping ./mapping)
119
	(cd $(DESTDIR)$(pkgdatadir)/dist/linuxdoc-tools/nippon; rm -f mapping; ln -s ../groff/tr-mapping ./mapping)
120
	(cd $(pkgdatadir)/dist; rm -f linuxdoc; ln -s linuxdoc-tools linuxdoc)
120
	(cd $(DESTDIR)$(pkgdatadir)/dist; rm -f linuxdoc; ln -s linuxdoc-tools linuxdoc)
121
	(cd $(pkgdatadir)/dist; rm -f linuxdoctr; ln -s linuxdoc-tools linuxdoctr)
121
	(cd $(DESTDIR)$(pkgdatadir)/dist; rm -f linuxdoctr; ln -s linuxdoc-tools linuxdoctr)
122
	(cd $(pkgdatadir)/dist; rm -f linuxdoc96; ln -s linuxdoc-tools linuxdoc96)
122
	(cd $(DESTDIR)$(pkgdatadir)/dist; rm -f linuxdoc96; ln -s linuxdoc-tools linuxdoc96)
123
	(cd $(pkgdatadir)/dist; rm -f linuxdoctr96; ln -s linuxdoc-tools linuxdoctr96)
123
	(cd $(DESTDIR)$(pkgdatadir)/dist; rm -f linuxdoctr96; ln -s linuxdoc-tools linuxdoctr96)
124
	(cd $(pkgdatadir)/dist; rm -f linuxdoc97; ln -s linuxdoc-tools linuxdoc97)
124
	(cd $(DESTDIR)$(pkgdatadir)/dist; rm -f linuxdoc97; ln -s linuxdoc-tools linuxdoc97)
125
	(cd $(pkgdatadir)/dtd;  rm -f linuxdoc.dtd; ln -s linuxdoc96.dtd linuxdoc.dtd)
125
	(cd $(DESTDIR)$(pkgdatadir)/dtd;  rm -f linuxdoc.dtd; ln -s linuxdoc96.dtd linuxdoc.dtd)
126
	(cd $(pkgdatadir)/dtd;  rm -f linuxdoctr.dtd; ln -s linuxdoctr96.dtd linuxdoctr.dtd)
126
	(cd $(DESTDIR)$(pkgdatadir)/dtd;  rm -f linuxdoctr.dtd; ln -s linuxdoctr96.dtd linuxdoctr.dtd)
127
	(cd $(bindir); for i in $(progs); do rm -f $$i; ln -s linuxdoc $$i;done)
127
	(cd $(DESTDIR)$(bindir); for i in $(progs); do rm -f $$i; ln -s linuxdoc $$i;done)
128
	@echo "Installing documentation in $(LINUXDOCDOC) ..."
128
	@echo "Installing documentation in $(DESTDIR)$(LINUXDOCDOC) ..."
129
	(cd doc; PATH=${PATH}:$(bindir) PREFIX=$(prefix) BINDIR=$(bindir) \
129
	# TODO: fix Makedoc.sh play work without installing files to the system (using DESTDIR)
130
	 DATADIR=$(datadir) bash Makedoc.sh)
130
	(cd doc; PATH="${PATH}:${DESTDIR}${bindir}" PREFIX=$(prefix) BINDIR=$(bindir) \
131
	if [ ! -d $(LINUXDOCDOC) ]; then mkdir -p $(LINUXDOCDOC); fi
131
	 DATADIR=$(DESTDIR)$(datadir) bash Makedoc.sh)
132
	chmod 755 $(LINUXDOCDOC)
132
	if [ ! -d $(DESTDIR)$(LINUXDOCDOC) ]; then mkdir -p $(DESTDIR)$(LINUXDOCDOC); fi
133
	cp -r doc/* $(LINUXDOCDOC)
133
	chmod 755 $(DESTDIR)$(LINUXDOCDOC)
134
	rm -f $(LINUXDOCDOC)/Makedoc.sh
134
	cp -r doc/* $(DESTDIR)$(LINUXDOCDOC)
135
	find $(LINUXDOCDOC) -type d -print | xargs chmod 755
135
	rm -f $(DESTDIR)$(LINUXDOCDOC)/Makedoc.sh
136
	find $(LINUXDOCDOC) -type f -print | xargs chmod 644
136
	find $(DESTDIR)$(LINUXDOCDOC) -type d -print | xargs chmod 755
137
	find $(DESTDIR)$(LINUXDOCDOC) -type f -print | xargs chmod 644
137
138
138
# what dirs do the targets clean and distclean need?
139
# what dirs do the targets clean and distclean need?
139
DDIRS=
140
DDIRS=
(-)linuxdoc-tools-0.9.21/entity-map/Makefile.in (-5 / +5 lines)
Lines 53-72 Link Here
53
	  -e 's|[@]entitymapdir@|${entitymapdir}|g'
53
	  -e 's|[@]entitymapdir@|${entitymapdir}|g'
54
54
55
install: all installdirs
55
install: all installdirs
56
	${INSTALL_DATA} EntityMap.pm ${textmoddir}/EntityMap.pm
56
	${INSTALL_DATA} EntityMap.pm $(DESTDIR)${textmoddir}/EntityMap.pm
57
	cd sdata; $(MAKE) LIBDIR=${entitymapdir} \
57
	cd sdata; $(MAKE) LIBDIR=${entitymapdir} \
58
	  PERM_D=755 PERM_F=644 MKDIR="../config/install-sh -d" CP=cp install
58
	  PERM_D=755 PERM_F=644 MKDIR="../config/install-sh -d" CP=cp install
59
59
60
installdirs:
60
installdirs:
61
	for ii in ${prefix} ${perl5libdir} ${textmoddir} \
61
	for ii in ${prefix} ${perl5libdir} ${textmoddir} \
62
	  ${localentitymapdir} ${entitymapdir}; do \
62
	  ${localentitymapdir} $(DESTDIR)${entitymapdir}; do \
63
	  ./config/install-sh -d $$ii; \
63
	  ./config/install-sh -d $(DESTDIR)$$ii; \
64
	done
64
	done
65
65
66
installdoc:
66
installdoc:
67
	./config/install-sh -d ${docdir}
67
	./config/install-sh -d $(DESTDIR)${docdir}
68
	for ii in ${DOCS}; do \
68
	for ii in ${DOCS}; do \
69
	  ${INSTALL_DATA} $$ii ${docdir}/$$ii; \
69
	  ${INSTALL_DATA} $$ii $(DESTDIR)${docdir}/$$ii; \
70
	done
70
	done
71
71
72
Makefile: Makefile.in configure
72
Makefile: Makefile.in configure
(-)linuxdoc-tools-0.9.21/entity-map/sdata/Makefile (-6 / +6 lines)
Lines 14-26 Link Here
14
 greek.2html lat1.2sdata
14
 greek.2html lat1.2sdata
15
15
16
install: 
16
install: 
17
	if [ ! -d $(LIBDIR) ]; then \
17
	if [ ! -d $(DESTDIR)$(LIBDIR) ]; then \
18
	  $(MKDIR) $(LIBDIR); \
18
	  $(MKDIR) $(DESTDIR)$(LIBDIR); \
19
	  chmod $(PERM_D) $(LIBDIR); \
19
	  chmod $(PERM_D) $(DESTDIR)$(LIBDIR); \
20
	fi
20
	fi
21
	$(CP) $(SDATAFILES) $(LIBDIR)
21
	$(CP) $(SDATAFILES) $(DESTDIR)$(LIBDIR)
22
	(cd $(LIBDIR); chmod $(PERM_F) $(SDATAFILES))
22
	( cd $(DESTDIR)$(LIBDIR); chmod $(PERM_F) $(SDATAFILES) )
23
	(cd $(LIBDIR); \
23
	( cd $(DESTDIR)$(LIBDIR); \
24
	 rm -f ISOlat1.2rtf ISOlat1.2texi ISOlat1.2tr ISOlat1.2l1s ISOlat1.2l1tr \
24
	 rm -f ISOlat1.2rtf ISOlat1.2texi ISOlat1.2tr ISOlat1.2l1s ISOlat1.2l1tr \
25
	       ISOlat2.2l1b ISOlat2.2l1s \
25
	       ISOlat2.2l1b ISOlat2.2l1s \
26
	       ISOdia.2rtf ISOdia.2texi ISOdia.2l1b ISOdia.2l1s ISOdia.2l1tr \
26
	       ISOdia.2rtf ISOdia.2texi ISOdia.2l1b ISOdia.2l1s ISOdia.2l1tr \
(-)linuxdoc-tools-0.9.21/iso-entities/Makefile.in (-5 / +5 lines)
Lines 39-58 Link Here
39
all:
39
all:
40
40
41
install: all installdirs
41
install: all installdirs
42
	${INSTALL_DATA} iso-entities.cat ${isoentdir}/iso-entities.cat
42
	${INSTALL_DATA} iso-entities.cat $(DESTDIR)${isoentdir}/iso-entities.cat
43
	for ii in `cd entities; find . -type f`; do \
43
	for ii in `cd entities; find . -type f`; do \
44
	  ${INSTALL_DATA} entities/$$ii ${isoentdir}/$$ii; \
44
	  ${INSTALL_DATA} entities/$$ii $(DESTDIR)${isoentdir}/$$ii; \
45
	done
45
	done
46
46
47
installdirs:
47
installdirs:
48
	for ii in ${sgmldir} ${isoentdir}; do \
48
	for ii in ${sgmldir} ${isoentdir}; do \
49
	  ./config/install-sh -d $$ii; \
49
	  ./config/install-sh -d $(DESTDIR)$$ii; \
50
	done
50
	done
51
51
52
installdoc:
52
installdoc:
53
	./config/install-sh -d ${docdir}
53
	./config/install-sh -d $(DESTDIR)${docdir}
54
	for ii in ${DOCS}; do \
54
	for ii in ${DOCS}; do \
55
	  ${INSTALL_DATA} $$ii ${docdir}/$$ii; \
55
	  ${INSTALL_DATA} $$ii $(DESTDIR)${docdir}/$$ii; \
56
	done
56
	done
57
57
58
Makefile: Makefile.in configure
58
Makefile: Makefile.in configure

Return to bug 88232