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 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80
|
### ==========================================================================
### $Id: Makefile,v 1.9 2004/02/17 02:27:13 stephmo Exp $
### FILE: doc/Makefile - build HTML documentation from SGML source
### brickOS - the independent LEGO Mindstorms OS
### --------------------------------------------------------------------------
DOCBASE = INSTALL-cygwin
DOCSRC = $(DOCBASE).sgml
DOCBASE2 = HOWTO
DOCSRC2 = $(DOCBASE2).sgml
TEXT_DOCS = AvailableDocs.txt \
Notes_on_intterupts \
Pros_and_Cons \
RCXmessageAPI.txt \
Sensors
include ../Makefile.common
# out default target when doing make in this directory
docs-build: $(DOCBASE).html $(DOCBASE2).html
# nothing to do for these (documents not built when running top-level build)
all install uninstall depend tag::
@# nothing to do here, but do this nothing silently
docs-install: ${pkghtmldir} chkbuild
-@cp -f ../[CLNRV]* ${pkgdocdir} 2>/dev/null
cp -f ${TEXT_DOCS} ${pkgdocdir}
cp -r images ${pkghtmldir}
cp -f *.html ${pkghtmldir}
mkdir -p ${pkghtmldir}/HOWTO
cp HOWTO/*.html ${pkghtmldir}/HOWTO
cp HOWTO.html ${pkghtmldir}/HOWTO
@# oops copied extra files, remove them
@rm -f $(pkghtmldir)/HOWTO/t1.html
@rm -f $(pkghtmldir)/HOWTO.html
chkbuild:
@if [ ! -f $(DOCBASE).html -o ! -f $(DOCBASE2).html ] ;then \
echo ""; \
echo "---------------------------------------------------------"; \
echo " Documents are not built. Please run 'make doc' then "; \
echo " rerun 'make doc-install' as root"; \
echo "---------------------------------------------------------"; \
echo ""; \
exit 2; \
fi
${pkghtmldir}:
mkdir -p $@
# generate html and correct image path in top page
$(DOCBASE).html: $(DOCSRC)
sgmltools -b html $(DOCBASE)
sed -e 's/\/docbook-dsssl/images/' $(DOCBASE)/top.html >$@
realclean::
rm -rf $(DOCBASE)
rm -f $(DOCBASE).html
# generate html and correct image path in top page
$(DOCBASE2).html: $(DOCSRC2)
sgmltools -b html $(DOCBASE2)
sed -e 's/\/docbook-dsssl/images/' $(DOCBASE2)/t1.html >$@
realclean::
rm -f $(DOCBASE2).html
rm -rf $(DOCBASE2)
clean:
@# nothing to do here, but do this nothing silently
realclean:: clean
### --------------------------------------------------------------------------
### End of FILE: doc/Makefile
### ==========================================================================
|