|
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= |