Skip to content

Commit

Permalink
Fix staging directory variable name
Browse files Browse the repository at this point in the history
DISTDIR, not a STAGEDIR is used to specify a staging directory

See https://www.gnu.org/prep/standards/html_node/DESTDIR.html
  • Loading branch information
AMDmi3 committed Jul 9, 2018
1 parent 3926bfa commit e587486
Showing 1 changed file with 54 additions and 54 deletions.
108 changes: 54 additions & 54 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -60,86 +60,86 @@ all:
@echo " DOCDIR=${DATDIR}/doc"

install:
${MKDIR} ${STAGEDIR}${BINDIR}
${MKDIR} ${DESTDIR}${BINDIR}
@for i in ${COMMANDS}; \
do \
echo ${INSTALL_PROGRAM} COMMANDS/$${i} ${STAGEDIR}${BINDIR}; \
${INSTALL_PROGRAM} COMMANDS/$${i} ${STAGEDIR}${BINDIR}; \
echo ${INSTALL_PROGRAM} COMMANDS/$${i} ${DESTDIR}${BINDIR}; \
${INSTALL_PROGRAM} COMMANDS/$${i} ${DESTDIR}${BINDIR}; \
done
${MKDIR} ${STAGEDIR}${DOCDIR}
${MKDIR} ${DESTDIR}${DOCDIR}
@for i in ${DOC}; \
do \
echo ${INSTALL_DOCS} $${i} ${STAGEDIR}${DOCDIR}; \
${INSTALL_DOCS} $${i} ${STAGEDIR}${DOCDIR}; \
echo ${INSTALL_DOCS} $${i} ${DESTDIR}${DOCDIR}; \
${INSTALL_DOCS} $${i} ${DESTDIR}${DOCDIR}; \
done
${MKDIR} ${STAGEDIR}${MANDIR}
${MKDIR} ${DESTDIR}${MANDIR}
@for i in ${MANUAL}; \
do \
echo ${INSTALL_DOCS} MANUAL/$${i} ${STAGEDIR}${MANDIR}; \
${INSTALL_DOCS} MANUAL/$${i} ${STAGEDIR}${MANDIR}; \
echo ${INSTALL_DOCS} MANUAL/$${i} ${DESTDIR}${MANDIR}; \
${INSTALL_DOCS} MANUAL/$${i} ${DESTDIR}${MANDIR}; \
done
${MKDIR} ${STAGEDIR}${HTMDIR}
${MKDIR} ${DESTDIR}${HTMDIR}
@for i in ${HTML}; \
do \
echo ${INSTALL_DOCS} MANUALHTML/$${i} ${STAGEDIR}${HTMDIR}; \
${INSTALL_DOCS} MANUALHTML/$${i} ${STAGEDIR}${HTMDIR}; \
echo ${INSTALL_DOCS} MANUALHTML/$${i} ${DESTDIR}${HTMDIR}; \
${INSTALL_DOCS} MANUALHTML/$${i} ${DESTDIR}${HTMDIR}; \
done
${MKDIR} ${STAGEDIR}${HTMDIR}/COMMON/CSS
${MKDIR} ${STAGEDIR}${HTMDIR}/COMMON/IMG
${MKDIR} ${STAGEDIR}${HTMDIR}/COMMON/JS
${INSTALL_DOCS} MANUALHTML/COMMON/CSS/MAIN.CSS ${STAGEDIR}${HTMDIR}/COMMON/CSS/
${INSTALL_DOCS} MANUALHTML/COMMON/CSS/MENU.CSS ${STAGEDIR}${HTMDIR}/COMMON/CSS/
${INSTALL_DOCS} MANUALHTML/COMMON/CSS/PRINT.CSS ${STAGEDIR}${HTMDIR}/COMMON/CSS/
${INSTALL_DOCS} MANUALHTML/COMMON/CSS/IE7HACK.CSS ${STAGEDIR}${HTMDIR}/COMMON/CSS/
${INSTALL_DOCS} MANUALHTML/COMMON/CSS/IE6HACK.CSS ${STAGEDIR}${HTMDIR}/COMMON/CSS/
${INSTALL_DOCS} MANUALHTML/COMMON/CSS/IE67HACK.CSS ${STAGEDIR}${HTMDIR}/COMMON/CSS/
${INSTALL_DOCS} MANUALHTML/COMMON/IMG/BACKGROUND.JPG ${STAGEDIR}${HTMDIR}/COMMON/IMG/
${INSTALL_DOCS} MANUALHTML/COMMON/IMG/TUKUBAI_LOGO.JPG ${STAGEDIR}${HTMDIR}/COMMON/IMG/
${INSTALL_DOCS} MANUALHTML/COMMON/JS/MENU.JS ${STAGEDIR}${HTMDIR}/COMMON/JS/
${MKDIR} ${STAGEDIR}${PDFDIR}
${INSTALL_DOCS} MANUALPDF/all.pdf ${STAGEDIR}${PDFDIR}
${MKDIR} ${DESTDIR}${HTMDIR}/COMMON/CSS
${MKDIR} ${DESTDIR}${HTMDIR}/COMMON/IMG
${MKDIR} ${DESTDIR}${HTMDIR}/COMMON/JS
${INSTALL_DOCS} MANUALHTML/COMMON/CSS/MAIN.CSS ${DESTDIR}${HTMDIR}/COMMON/CSS/
${INSTALL_DOCS} MANUALHTML/COMMON/CSS/MENU.CSS ${DESTDIR}${HTMDIR}/COMMON/CSS/
${INSTALL_DOCS} MANUALHTML/COMMON/CSS/PRINT.CSS ${DESTDIR}${HTMDIR}/COMMON/CSS/
${INSTALL_DOCS} MANUALHTML/COMMON/CSS/IE7HACK.CSS ${DESTDIR}${HTMDIR}/COMMON/CSS/
${INSTALL_DOCS} MANUALHTML/COMMON/CSS/IE6HACK.CSS ${DESTDIR}${HTMDIR}/COMMON/CSS/
${INSTALL_DOCS} MANUALHTML/COMMON/CSS/IE67HACK.CSS ${DESTDIR}${HTMDIR}/COMMON/CSS/
${INSTALL_DOCS} MANUALHTML/COMMON/IMG/BACKGROUND.JPG ${DESTDIR}${HTMDIR}/COMMON/IMG/
${INSTALL_DOCS} MANUALHTML/COMMON/IMG/TUKUBAI_LOGO.JPG ${DESTDIR}${HTMDIR}/COMMON/IMG/
${INSTALL_DOCS} MANUALHTML/COMMON/JS/MENU.JS ${DESTDIR}${HTMDIR}/COMMON/JS/
${MKDIR} ${DESTDIR}${PDFDIR}
${INSTALL_DOCS} MANUALPDF/all.pdf ${DESTDIR}${PDFDIR}

uninstall:
@for i in ${COMMANDS}; \
do \
echo ${RM} ${STAGEDIR}${BINDIR}/$${i}; \
${RM} ${STAGEDIR}${BINDIR}/$${i}; \
echo ${RM} ${DESTDIR}${BINDIR}/$${i}; \
${RM} ${DESTDIR}${BINDIR}/$${i}; \
done
@for i in ${DOC}; \
do \
echo ${RM} ${STAGEDIR}${DOCDIR}/$${i}; \
${RM} ${STAGEDIR}${DOCDIR}/$${i}; \
echo ${RM} ${DESTDIR}${DOCDIR}/$${i}; \
${RM} ${DESTDIR}${DOCDIR}/$${i}; \
done
@for i in ${MANUAL}; \
do \
echo ${RM} ${STAGEDIR}${MANDIR}/$${i}; \
${RM} ${STAGEDIR}${MANDIR}/$${i}; \
echo ${RM} ${DESTDIR}${MANDIR}/$${i}; \
${RM} ${DESTDIR}${MANDIR}/$${i}; \
done
@for i in ${HTML}; \
do \
echo ${RM} ${STAGEDIR}${HTMDIR}/$${i}; \
${RM} ${STAGEDIR}${HTMDIR}/$${i}; \
echo ${RM} ${DESTDIR}${HTMDIR}/$${i}; \
${RM} ${DESTDIR}${HTMDIR}/$${i}; \
done
${RM} ${STAGEDIR}${HTMDIR}/COMMON/CSS/MAIN.CSS
${RM} ${STAGEDIR}${HTMDIR}/COMMON/CSS/MENU.CSS
${RM} ${STAGEDIR}${HTMDIR}/COMMON/CSS/PRINT.CSS
${RM} ${STAGEDIR}${HTMDIR}/COMMON/CSS/IE7HACK.CSS
${RM} ${STAGEDIR}${HTMDIR}/COMMON/CSS/IE6HACK.CSS
${RM} ${STAGEDIR}${HTMDIR}/COMMON/CSS/IE67HACK.CSS
${RM} ${STAGEDIR}${HTMDIR}/COMMON/IMG/BACKGROUND.JPG
${RM} ${STAGEDIR}${HTMDIR}/COMMON/IMG/TUKUBAI_LOGO.JPG
${RM} ${STAGEDIR}${HTMDIR}/COMMON/JS/MENU.JS
${RM} ${STAGEDIR}${PDFDIR}/all.pdf
${RMDIR} ${STAGEDIR}${DOCDIR}
${RMDIR} ${STAGEDIR}${MANDIR}
${RMDIR} ${STAGEDIR}${HTMDIR}/COMMON/CSS
${RMDIR} ${STAGEDIR}${HTMDIR}/COMMON/IMG
${RMDIR} ${STAGEDIR}${HTMDIR}/COMMON/JS
${RMDIR} ${STAGEDIR}${HTMDIR}/COMMON
${RMDIR} ${STAGEDIR}${HTMDIR}
${RMDIR} ${STAGEDIR}${PDFDIR}
${RMDIR} ${STAGEDIR}${DATDIR}
${RMDIR} ${STAGEDIR}${TUKDIR}
${RM} ${DESTDIR}${HTMDIR}/COMMON/CSS/MAIN.CSS
${RM} ${DESTDIR}${HTMDIR}/COMMON/CSS/MENU.CSS
${RM} ${DESTDIR}${HTMDIR}/COMMON/CSS/PRINT.CSS
${RM} ${DESTDIR}${HTMDIR}/COMMON/CSS/IE7HACK.CSS
${RM} ${DESTDIR}${HTMDIR}/COMMON/CSS/IE6HACK.CSS
${RM} ${DESTDIR}${HTMDIR}/COMMON/CSS/IE67HACK.CSS
${RM} ${DESTDIR}${HTMDIR}/COMMON/IMG/BACKGROUND.JPG
${RM} ${DESTDIR}${HTMDIR}/COMMON/IMG/TUKUBAI_LOGO.JPG
${RM} ${DESTDIR}${HTMDIR}/COMMON/JS/MENU.JS
${RM} ${DESTDIR}${PDFDIR}/all.pdf
${RMDIR} ${DESTDIR}${DOCDIR}
${RMDIR} ${DESTDIR}${MANDIR}
${RMDIR} ${DESTDIR}${HTMDIR}/COMMON/CSS
${RMDIR} ${DESTDIR}${HTMDIR}/COMMON/IMG
${RMDIR} ${DESTDIR}${HTMDIR}/COMMON/JS
${RMDIR} ${DESTDIR}${HTMDIR}/COMMON
${RMDIR} ${DESTDIR}${HTMDIR}
${RMDIR} ${DESTDIR}${PDFDIR}
${RMDIR} ${DESTDIR}${DATDIR}
${RMDIR} ${DESTDIR}${TUKDIR}

deinstall: uninstall

Expand Down

0 comments on commit e587486

Please sign in to comment.