source: Sophya/trunk/SophyaLib/Manual/mkmf@ 891

Last change on this file since 891 was 891, checked in by ansari, 25 years ago

gestion de doc (cmv 11/4/00)

  • Property svn:executable set to *
File size: 1.6 KB
Line 
1#!/bin/csh
2###################################################
3if( $#argv >= 1 ) then
4 if( "$1" == "-h" ) then
5 echo "mkmf [module1] [module2] [...]"
6 echo " generate documentation for all Sophya"
7 echo " or only for module [module]"
8 exit 0
9 endif
10endif
11
12##########################################
13######## Test de la configuration ########
14##########################################
15
16# mydoxy.conf
17cp dox_sophya.conf mydoxy.conf
18foreach n ( 1 2 3 4 5 )
19 echo " " >> mydoxy.conf
20end
21
22# doxygen ?
23which doxygen >! /dev/null
24if( $status != 0 ) then
25 echo 'ERROR: doxygen is not installed...'
26 exit -1
27endif
28
29# doxysearch ?
30which doxysearch >! /dev/null
31if( $status != 0 ) then
32 echo 'ERROR: doxysearch is not installed...'
33 exit -2
34else
35 set s = `which doxysearch`
36 echo 'doxysearch is installed in :'
37 echo $s:h
38 echo 'mkmf will automatically update the config file.'
39 echo "BIN_ABSPATH = $s:h" >> mydoxy.conf
40 grep 'BIN_ABSPATH' mydoxy.conf | grep -v ^\#
41endif
42
43# partial doc ?
44if( $#argv >= 1 ) then
45 echo Partial doc generation :
46 set lf =
47 foreach f ( $* )
48 echo "... adding ../$f to INPUT"
49 set lf = ( ../$f $lf )
50 end
51 echo "INPUT = $lf" >> mydoxy.conf
52 grep 'INPUT = ' mydoxy.conf | grep -v ^\# | tail -1
53endif
54
55#########################################
56######## Creation de la Makefile ########
57#########################################
58
59rm -f Makefile
60touch Makefile
61chmod +x Makefile
62cat >> Makefile << EOF_
63all: doc
64
65clean:
66 rm -rf html latex man rtf *.o dox_filter
67
68doc: filter
69 doxygen mydoxy.conf
70
71filter: dox_filter
72
73dox_filter : dox_filter.o
74
75dox_filter.o : dox_filter.c
76
77EOF_
78
79exit 0
Note: See TracBrowser for help on using the repository browser.