- Timestamp:
- Dec 10, 2008, 7:31:39 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/IPs/systemC/processor/Morpheo/Behavioural/Makefile.Documentation
r81 r88 1 #-----[ 1 #-----[ Directory ]---------------------------------------- 2 2 3 DIR_DOCUMENTATION = . 4 DIR_TEX = $(DIR_DOCUMENTATION) 5 DIR_SCHEMA = $(DIR_DOCUMENTATION)/fig 6 DIR_SCHEMA_EPS = $(DIR_DOCUMENTATION)/eps 3 DIR_DOC = . 4 DIR_TEX = $(DIR_DOC) 5 DIR_FIG = $(DIR_DOC)/fig 6 DIR_EPS = $(DIR_DOC)/eps 7 DIR_STY = $(DIR_DOC)/sty 7 8 8 #-----[ 9 #-----[ Files ]-------------------------------------------- 9 10 10 11 TEX_FILES = $(wildcard $(DIR_TEX)/*.tex) … … 12 13 PS_FILES = $(patsubst $(DIR_TEX)/%.tex,%.ps ,$(TEX_FILES)) 13 14 PDF_FILES = $(patsubst $(DIR_TEX)/%.tex,%.pdf,$(TEX_FILES)) 14 EPS_FILES = $(patsubst $(DIR_SCHEMA)/%.fig,$(DIR_SCHEMA_EPS)/%.eps,$(wildcard $(DIR_SCHEMA)/*.fig)) \ 15 $(patsubst $(DIR_SCHEMA)/%.eps,$(DIR_SCHEMA_EPS)/%.eps,$(wildcard $(DIR_SCHEMA)/*.eps)) 15 EPS_FILES = $(patsubst $(DIR_FIG)/%.fig,$(DIR_EPS)/%.eps,$(wildcard $(DIR_FIG)/*.fig)) \ 16 $(patsubst $(DIR_FIG)/%.dot,$(DIR_EPS)/%.eps,$(wildcard $(DIR_FIG)/*.dot)) \ 17 $(patsubst $(DIR_FIG)/%.eps,$(DIR_EPS)/%.eps,$(wildcard $(DIR_FIG)/*.eps)) 16 18 17 #-----[ 19 #-----[ Rules ]-------------------------------------------- 18 20 19 21 #-------------------------------------------------------------------------------- 20 22 # The reset of this file shall not be editted 21 23 #-------------------------------------------------------------------------------- 22 .PHONY : all cleanhelp23 .SECONDARY : $(DVI_FILES) $(PS_FILES) $(PDF_FILES) $(EPS_FILES) $(DIR_SCHEMA_EPS)24 .PHONY : all clean clean_all help 25 .SECONDARY : $(DVI_FILES) $(PS_FILES) $(PDF_FILES) $(EPS_FILES) $(DIR_EPS) 24 26 25 all_documentation 27 all_documentation : $(EPS_FILES) 26 28 $(MAKE) $(PDF_FILES) 27 29 … … 30 32 # regular flow tex -> dvi -> ps -> pdf. 31 33 #-------------------------------------------------------------------------------- 32 %.pdf 34 %.pdf : %.ps 33 35 @\ 34 $(ECHO) "Génération du fichier $*.pdf"; 36 $(ECHO) "Génération du fichier $*.pdf"; \ 35 37 $(PS2PDF) $< $@; 36 38 37 %.ps 39 %.ps : %.dvi 38 40 @\ 39 $(ECHO) "Génération du fichier $*.ps"; 41 $(ECHO) "Génération du fichier $*.ps"; \ 40 42 $(DVIPS) -o $@ $<; 41 43 42 %.dvi 44 %.dvi : $(DIR_TEX)/%.tex 43 45 @\ 44 $(ECHO) "Génération du fichier $*.dvi"; 45 $(LATEX) $<; 46 $(LATEX) $< > /dev/null; 47 citation=`$(GREP) "citation" $*.aux`; 48 if $(TEST) -n "$$citation" ; then\49 $(BIBTEX) $* ;\50 fi; 51 $(LATEX) $< > /dev/null; 46 $(ECHO) "Génération du fichier $*.dvi"; \ 47 $(LATEX) $<; \ 48 $(LATEX) $< > /dev/null; \ 49 citation=`$(GREP) "citation" $*.aux`; \ 50 if $(TEST) -n "$$citation" ; then \ 51 $(BIBTEX) $* ; \ 52 fi; \ 53 $(LATEX) $< > /dev/null; \ 52 54 $(LATEX) $< > /dev/null; 53 55 … … 55 57 # The figures directory 56 58 #-------------------------------------------------------------------------------- 57 $(DIR_ SCHEMA_EPS):59 $(DIR_EPS) : 58 60 @\ 59 $(ECHO) "Make directory : $@"; 61 $(ECHO) "Make directory : $@"; \ 60 62 $(MKDIR) $@; 61 63 62 $(DIR_ SCHEMA_EPS)/%.eps : $(DIR_SCHEMA)/%.eps $(DIR_SCHEMA_EPS)64 $(DIR_EPS)/%.eps : $(DIR_FIG)/%.eps $(DIR_EPS) 63 65 @\ 64 $(ECHO) "Generate files : $*.eps"; 65 $(CP) $(DIR_ SCHEMA)/$*.eps $(DIR_SCHEMA_EPS);66 $(ECHO) "Generate files : $*.eps"; \ 67 $(CP) $(DIR_FIG)/$*.eps $(DIR_EPS); 66 68 67 $(DIR_ SCHEMA_EPS)/%.eps : $(DIR_SCHEMA)/%.fig $(DIR_SCHEMA_EPS)69 $(DIR_EPS)/%.eps : $(DIR_FIG)/%.fig $(DIR_EPS) 68 70 @\ 69 $(ECHO) "Generate files : $*.eps"; 71 $(ECHO) "Generate files : $*.eps"; \ 70 72 $(FIG2EPS) $< $@; 73 74 $(DIR_EPS)/%.eps : $(DIR_FIG)/%.dot $(DIR_EPS) 75 @\ 76 $(ECHO) "Generate files : $*.eps"; \ 77 $(DOT) -Tfig -o $(DIR_EPS)/${*}.fig $<; \ 78 $(FIG2EPS) $(DIR_EPS)/${*}.fig $@; \ 79 $(RM) $(DIR_EPS)/${*}.fig; 71 80 72 81 #-------------------------------------------------------------------------------- … … 74 83 #-------------------------------------------------------------------------------- 75 84 76 clean 85 clean : 77 86 @\ 78 87 $(ECHO) "Delete temporary files "$(PWD); \ 79 $(RM) $(DIR_SCHEMA_EPS); \ 80 $(RM) $(DVI_FILES) $(PS_FILES) $(PDF_FILES); \ 81 $(MAKE) clean_rec DIR_CLEAN=.; 88 $(RM) $(DIR_EPS) \ 89 $(DVI_FILES) \ 90 $(PS_FILES) \ 91 $(DIR_DOC)/*~ \ 92 $(DIR_STY)/*~ \ 93 $(DIR_TEX)/*~ \ 94 $(DIR_FIG)/*~ \ 95 $(DIR_DOC)/*.bak \ 96 $(DIR_DOC)/*.aux \ 97 $(DIR_DOC)/*.bbl \ 98 $(DIR_DOC)/*.blg \ 99 $(DIR_DOC)/*.bmt \ 100 $(DIR_DOC)/*.log \ 101 $(DIR_DOC)/*.mtc* \ 102 $(DIR_DOC)/*.toc \ 103 $(DIR_DOC)/*.idx \ 104 $(DIR_DOC)/*.maf \ 105 $(DIR_DOC)/*.ilg \ 106 $(DIR_DOC)/*.ind \ 107 $(DIR_DOC)/*.out \ 108 $(DIR_DOC)/*.nav \ 109 $(DIR_DOC)/*.snm \ 110 $(DIR_DOC)/missfont.log; \ 82 111 83 #Clean recursive 84 clean_rec : 85 @\ 86 $(ECHO) "Delete temporary files in directory $(DIR_CLEAN)"; \ 87 $(RM) $(DIR_CLEAN)/*~ \ 88 $(DIR_CLEAN)/*.bak \ 89 $(DIR_CLEAN)/*.aux \ 90 $(DIR_CLEAN)/*.bbl \ 91 $(DIR_CLEAN)/*.blg \ 92 $(DIR_CLEAN)/*.bmt \ 93 $(DIR_CLEAN)/*.log \ 94 $(DIR_CLEAN)/*.mtc* \ 95 $(DIR_CLEAN)/*.toc \ 96 $(DIR_CLEAN)/*.idx \ 97 $(DIR_CLEAN)/*.ilg \ 98 $(DIR_CLEAN)/*.ind \ 99 $(DIR_CLEAN)/*.out \ 100 $(DIR_CLEAN)/*.nav \ 101 $(DIR_CLEAN)/*.snm \ 102 $(DIR_CLEAN)/missfont.log; \ 103 for files in `$(LS) $(DIR_CLEAN)`; do \ 104 if $(TEST) -d $(DIR_CLEAN)/$$files; \ 105 then \ 106 $(MAKE) clean_rec DIR_CLEAN=$(DIR_CLEAN)/$$files; \ 107 fi; \ 108 done; 112 clean_all : clean 113 @$(RM) $(PDF_FILES); 109 114 110 115 #-------------------------------------------------------------------------------- … … 112 117 #-------------------------------------------------------------------------------- 113 118 114 help 119 help : 115 120 @\ 116 $(ECHO) " -----[ Documentation ]------------------------------";\ 117 $(ECHO) ""; \ 118 $(ECHO) " * all_documentation : Generate all documents"; \ 119 $(ECHO) " * clean : Erase all generate files"; \ 120 $(ECHO) " * help : Print this message"; \ 121 $(ECHO) " -----[ Documentation ]------------------------------";\ 122 $(ECHO) ""; \ 123 $(ECHO) " * all_documentation : Generate all documents"; \ 124 $(ECHO) " * clean : Erase all temporary files"; \ 125 $(ECHO) " * clean_all : Erase all generate files"; \ 126 $(ECHO) " * help : Print this message"; \ 121 127 $(ECHO) "";
Note: See TracChangeset
for help on using the changeset viewer.