d79d23f2cf361240d37164b50f41b867d00028e6
3 # Makefile for creating documentation and hardlinks for better development
4 # @author Roland Hieber (roland.hieber@wilhelm-gym.net)
6 # @package iserv_errorreporter
8 # Copyright © 2007 Roland Hieber
10 # Permission is hereby granted, free of charge, to any person obtaining
11 # copy of this software and associated documentation files (the "Software"),
12 # to deal in the Software without restriction, including without limitation
13 # the rights to use, copy, modify, merge, publish, distribute, sublicense,
14 # and/or sell copies of the Software, and to permit persons to whom the
15 # Software is furnished to do so, subject to the following conditions:
17 # The above copyright notice and this permission notice shall be included in
18 # all copies or substantial portions of the Software.
20 # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
21 # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
22 # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
23 # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
24 # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
25 # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
29 PACKAGENAME
=iserv-mod-error-reporter
30 VERSION
:=$(shell grep
"^$(PACKAGENAME)" debian
/changelog | head
-1 | sed
-e
"s/$(PACKAGENAME) (\([0-9.]\+\).*).*/\1/ ")
39 # hardlink the files to their destinations
42 $(MKDIR
) $(DESTDIR
)/usr
/share
/doc
/iserv-mod-error-reporter
/source
/
43 $(MKDIR
) $(DESTDIR
)/usr
/share
/doc
/iserv
/mod
/
44 $(LN
) doc
/TODO
$(DESTDIR
)/usr
/share
/doc
/iserv-mod-error-reporter
/
45 $(LN
) doc
/changelog.old.html
$(DESTDIR
)/usr
/share
/doc
/iserv-mod-error-reporter
/
46 $(LN
) doc
/source
/* $(DESTDIR
)/usr
/share
/doc
/iserv-mod-error-reporter
/source
/
47 $(LN
) -s ..
/..
/iserv-mod-error-reporter
$(DESTDIR
)/usr
/share
/doc
/iserv
/mod
/error-reporter
/
50 $(MKDIR
) $(DESTDIR
)/usr
/share
/iserv
/www
/img
/default
/16/
51 $(MKDIR
) $(DESTDIR
)/usr
/share
/iserv
/www
/img
/default
/32/
52 $(LN
) img
/16/*.png
$(DESTDIR
)/usr
/share
/iserv
/www
/img
/default
/16/
53 $(LN
) img
/32/*.png
$(DESTDIR
)/usr
/share
/iserv
/www
/img
/default
/32/
56 $(MKDIR
) $(DESTDIR
)/usr
/share
/iserv
/locale
/de
/
57 $(LN
) lang
/mod_error-reporter.po
$(DESTDIR
)/usr
/share
/iserv
/locale
/de
/
60 $(MKDIR
) $(DESTDIR
)/usr
/share
/iserv
/db
/log_module
/
61 $(LN
) sql
/mod_error-reporter.sql
$(DESTDIR
)/usr
/share
/iserv
/db
/
62 $(LN
) sql
/log_module
/mod_error-reporter
$(DESTDIR
)/usr
/share
/iserv
/db
/log_module
/
65 $(MKDIR
) $(DESTDIR
)/usr
/share
/iserv
/priv
/
66 $(LN
) priv
/mod_error-reporter
$(DESTDIR
)/usr
/share
/iserv
/priv
/
69 $(MKDIR
) $(DESTDIR
)/usr
/share
/iserv
/www
/inc
/mod_error-reporter
/
70 $(LN
) inc
/{class
*,init
,functions
}.inc
$(DESTDIR
)/usr
/share
/iserv
/www
/inc
/mod_error-reporter
/
73 $(MKDIR
) $(DESTDIR
)/usr
/share
/iserv
/www
/nav
/
74 $(LN
) nav
/*.mod
$(DESTDIR
)/usr
/share
/iserv
/www
/nav
/
77 $(MKDIR
) $(DESTDIR
)/usr
/share
/iserv
/www
/mod_error-reporter
/
78 $(LN
) src
/{detail
,index
}.php
$(DESTDIR
)/usr
/share
/iserv
/www
/mod_error-reporter
/
81 $(MKDIR
) $(DESTDIR
)/usr
/share
/iserv
/iconf
/etc
/iserv
/config.template
/
82 $(LN
) config
/82error-reporter
$(DESTDIR
)/usr
/share
/iserv
/iconf
/etc
/iserv
/config.template
/
85 $(MKDIR
) $(DESTDIR
)/usr
/share
/iserv
/modules
/error-reporter
/
86 $(LN
) maint
/* $(DESTDIR
)/usr
/share
/iserv
/modules
/error-reporter
88 # build doxygen documentation from source
90 cat Doxyfile.in | sed
-e
"s/{{{VERSION}}}/$(VERSION)/" \
91 -e
"s/{{{PACKAGENAME}}}/$(PACKAGENAME)/" > Doxyfile
93 mv doc
/source
/html
/* doc
/source
/ && rm -rf doc
/source
/html
97 if
[ -e Doxyfile
]; then
rm Doxyfile
; fi
;
100 .PHONY
: clean install
This page took 0.043974 seconds and 3 git commands to generate.