source: php/trunk/doxygen/makefile@ 2

Last change on this file since 2 was 2, checked in by cla, 14 years ago

rdfint

  • initial version
  • Property svn:eol-style set to native
File size: 2.3 KB
Line 
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
20LIBNAME=rdfint
21LIBROOT=..
22OUTPUTDIR=doc
23SOURCEFILES=*.php
24SOURCEFILES_EXCLUDE=*/.svn/* *unittest/* */fdebug.php
25
26# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
27
28# determine os dependent values
29ifeq ($(OS), Windows_NT)
30CAT=type
31CP=copy
32RM=del
33RMDIR=rd /s /q
34NUL=NUL
35LAUNCH=cscript /nologo doclaunch.vbs
36else
37CAT=cat
38CP=cp
39RM=rm
40RMDIR=rm -rf
41NUL=/dev/null
42LAUNCH=firefox
43endif
44
45# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
46
47# defaults
48ifeq ($(OS), Windows_NT)
49CONFIGFILE:=$(TEMP)\doxygen_$(LIBNAME).cfg
50else
51CONFIGFILE:=/tmp/doxygen_$(LIBNAME).cfg
52endif
53
54OUTPUTFILE=$(OUTPUTDIR)/html/index.html
55
56# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
57
58# --- phony targets
59
60.PHONY: help all launch showcfg clean
61
62help:
63 @$(CAT) help.txt
64
65all: $(OUTPUTFILE)
66 @$(LAUNCH) $(OUTPUTFILE)
67
68showcfg: $(CONFIGFILE)
69 @echo doxygen configuration file: $(CONFIGFILE)
70 @echo -------------------------------------------------------
71 @$(CAT) $(CONFIGFILE)
72
73clean:
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)
Note: See TracBrowser for help on using the repository browser.