1 |
|
---|
2 | # RDFInt - RDF Interfaces for PHP
|
---|
3 | # Copyright 2011 netlabs.org
|
---|
4 | # Author: Christian Langanke, Adrian Gschwend
|
---|
5 | #
|
---|
6 | # Licensed under the Apache License, Version 2.0 (the "License");
|
---|
7 | # you may not use this file except in compliance with the License.
|
---|
8 | # You may obtain a copy of the License at
|
---|
9 | #
|
---|
10 | # http://www.apache.org/licenses/LICENSE-2.0
|
---|
11 | #
|
---|
12 | # Unless required by applicable law or agreed to in writing, software
|
---|
13 | # distributed under the License is distributed on an "AS IS" BASIS,
|
---|
14 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
---|
15 | # See the License for the specific language governing permissions and
|
---|
16 | # limitations under the License.
|
---|
17 |
|
---|
18 | # CONFIGURE HERE
|
---|
19 |
|
---|
20 | LIBNAME=rdfint
|
---|
21 | LIBROOT=..
|
---|
22 | OUTPUTDIR=doc
|
---|
23 | SOURCEFILES=*.php
|
---|
24 | SOURCEFILES_EXCLUDE=*/.svn/* *unittest/* */fdebug.php
|
---|
25 |
|
---|
26 | # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
---|
27 |
|
---|
28 | # determine os dependent values
|
---|
29 | ifeq ($(OS), Windows_NT)
|
---|
30 | CAT=type
|
---|
31 | CP=copy
|
---|
32 | RM=del
|
---|
33 | RMDIR=rd /s /q
|
---|
34 | NUL=NUL
|
---|
35 | LAUNCH=cscript /nologo doclaunch.vbs
|
---|
36 | else
|
---|
37 | CAT=cat
|
---|
38 | CP=cp
|
---|
39 | RM=rm
|
---|
40 | RMDIR=rm -rf
|
---|
41 | NUL=/dev/null
|
---|
42 | LAUNCH=firefox
|
---|
43 | endif
|
---|
44 |
|
---|
45 | # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
---|
46 |
|
---|
47 | # defaults
|
---|
48 | ifeq ($(OS), Windows_NT)
|
---|
49 | CONFIGFILE:=$(TEMP)\doxygen_$(LIBNAME).cfg
|
---|
50 | else
|
---|
51 | CONFIGFILE:=/tmp/doxygen_$(LIBNAME).cfg
|
---|
52 | endif
|
---|
53 |
|
---|
54 | OUTPUTFILE=$(OUTPUTDIR)/html/index.html
|
---|
55 |
|
---|
56 | # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
---|
57 |
|
---|
58 | # --- phony targets
|
---|
59 |
|
---|
60 | .PHONY: help all launch showcfg clean
|
---|
61 |
|
---|
62 | help:
|
---|
63 | @$(CAT) help.txt
|
---|
64 |
|
---|
65 | all: $(OUTPUTFILE)
|
---|
66 | @$(LAUNCH) $(OUTPUTFILE)
|
---|
67 |
|
---|
68 | showcfg: $(CONFIGFILE)
|
---|
69 | @echo doxygen configuration file: $(CONFIGFILE)
|
---|
70 | @echo -------------------------------------------------------
|
---|
71 | @$(CAT) $(CONFIGFILE)
|
---|
72 |
|
---|
73 | clean:
|
---|
74 | @echo cleaning up
|
---|
75 | -@$(RM) $(CONFIGFILE) 2>$(NUL)
|
---|
76 | -@$(RMDIR) $(OUTPUTDIR) 2>$(NUL)
|
---|
77 |
|
---|
78 | # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
---|
79 |
|
---|
80 | # --- dependencies
|
---|
81 |
|
---|
82 | $(OUTPUTFILE): $(CONFIGFILE)
|
---|
83 | @doxygen $(CONFIGFILE)
|
---|
84 |
|
---|
85 | $(CONFIGFILE):
|
---|
86 | @echo PROJECT_NAME=$(LIBNAME)> $(CONFIGFILE)
|
---|
87 | @echo OUTPUT_DIRECTORY=$(OUTPUTDIR)>> $(CONFIGFILE)
|
---|
88 | @echo FULL_PATH_NAMES=NO>> $(CONFIGFILE)
|
---|
89 | @echo INPUT=$(LIBROOT)>> $(CONFIGFILE)
|
---|
90 | @echo FILE_PATTERNS=$(SOURCEFILES)>> $(CONFIGFILE)
|
---|
91 | @echo RECURSIVE=YES>> $(CONFIGFILE)
|
---|
92 | @echo EXCLUDE_PATTERNS=$(SOURCEFILES_EXCLUDE)>> $(CONFIGFILE)
|
---|
93 | @echo GENERATE_HTML=YES>> $(CONFIGFILE)
|
---|
94 | @echo GENERATE_LATEX=no>> $(CONFIGFILE)
|
---|
95 | @echo SORT_MEMBER_DOCS=no>> $(CONFIGFILE)
|
---|