summaryrefslogblamecommitdiffstats
path: root/doc/Makefile
blob: 34c2b5542c728643256677a9e1fe3635d6046db3 (plain) (tree)
1
2
3
4
5
6
7
8
9


       




                    
                     


                                                        

                       
     
                                  
                             


                                      

                              
 








                                                                

                                 
         
                                                   

                                 
       



                                  


                                       
 
             
 


                                  
#
#  $Id$
#

include Make.config

BASEDIR=$(shell pwd)

all: env info html ps
#	find $(WWW_INSTALL) -type f | xargs -e chmod 444
#	find $(WWW_INSTALL) -type d | xargs -e chmod 555

env: tools dirs headers

dirs:
	-mkdir $(DOC_INSTALL_BASE)
	-mkdir $(WWW_INSTALL)
	-mkdir $(WWW_INSTALL)/partners
	-mkdir $(WWW_INSTALL)/support
	-mkdir $(WWW_INSTALL)/internal
	-mkdir $(INFO_INSTALL)
	-mkdir $(PS_INSTALL)

headers:
	sed -e 's/RTEMS_VERSION/$(RTEMS_VERSION)/' \
	    <index.html >$(WWW_INSTALL)/index.html
	sed -e 's/RTEMS_VERSION/$(RTEMS_VERSION)/' \
	    <rtems_header.html >$(WWW_INSTALL)/rtems_header.html
	sed -e 's/RTEMS_VERSION/$(RTEMS_VERSION)/' \
	    <rtems_footer.html >$(WWW_INSTALL)/rtems_footer.html

info: env
	./do_docs $(BASEDIR) info

html: env
	cp common/*.gif common/*.jpg $(WWW_INSTALL)
	./do_docs $(BASEDIR) html

ps: env
	./do_docs $(BASEDIR) ps

clean:
	./do_docs $(BASEDIR) clean
	cd tools/bmenu ; gmake clean
	cd tools/pdl2texi ; gmake clean


.PHONY: tools

tools:
	cd tools/bmenu ; gmake 
	cd tools/pdl2texi ; gmake