Check out the latest version of Routino: svn co http://routino.org/svn/trunk routino
Contents of /trunk/doc/Makefile
Parent Directory
|
Revision Log
Revision 720 -
(show annotations)
(download)
Tue May 17 17:39:28 2011 UTC (13 years, 10 months ago) by amb
File size: 2004 byte(s)
Tue May 17 17:39:28 2011 UTC (13 years, 10 months ago) by amb
File size: 2004 byte(s)
Install the license file in the doc directory.
1 | # Documentation directory Makefile |
2 | # |
3 | # Part of the Routino routing software. |
4 | # |
5 | # This file Copyright 2010-2011 Andrew M. Bishop |
6 | # |
7 | # This program is free software: you can redistribute it and/or modify |
8 | # it under the terms of the GNU Affero General Public License as published by |
9 | # the Free Software Foundation, either version 3 of the License, or |
10 | # (at your option) any later version. |
11 | # |
12 | # This program is distributed in the hope that it will be useful, |
13 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
14 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
15 | # GNU Affero General Public License for more details. |
16 | # |
17 | # You should have received a copy of the GNU Affero General Public License |
18 | # along with this program. If not, see <http://www.gnu.org/licenses/>. |
19 | # |
20 | |
21 | # Web file paths |
22 | |
23 | WEBDIR=../web/www/routino/documentation |
24 | |
25 | # Files to install |
26 | |
27 | HTML_FILES=html/* |
28 | TXT_FILES=*.txt |
29 | TOP_FILES=../agpl-3.0.txt |
30 | |
31 | ######## |
32 | |
33 | all : |
34 | -@[ -d $(WEBDIR) ] && \ |
35 | for file in $(HTML_FILES); do \ |
36 | if [ ! -f $(WEBDIR)/`basename $$file` ] || [ $$file -nt $(WEBDIR)/`basename $$file` ]; then \ |
37 | echo cp $$file $(WEBDIR) ;\ |
38 | cp -f $$file $(WEBDIR) ;\ |
39 | fi ;\ |
40 | done |
41 | |
42 | ######## |
43 | |
44 | install: all |
45 | -[ -d $(DESTDIR)$(docdir) ] || mkdir -p $(DESTDIR)$(docdir) |
46 | @[ -d $(DESTDIR)$(docdir) ] && \ |
47 | for file in $(TOP_FILES); do \ |
48 | echo cp $$file $(DESTDIR)$(docdir) ;\ |
49 | cp -f $$file $(DESTDIR)$(docdir) ;\ |
50 | done |
51 | @[ -d $(DESTDIR)$(docdir) ] && \ |
52 | for file in $(TXT_FILES); do \ |
53 | echo cp $$file $(DESTDIR)$(docdir) ;\ |
54 | cp -f $$file $(DESTDIR)$(docdir) ;\ |
55 | done |
56 | -[ -d $(DESTDIR)$(docdir)/html ] || mkdir -p $(DESTDIR)$(docdir)/html |
57 | @[ -d $(DESTDIR)$(docdir)/html ] && \ |
58 | for file in $(HTML_FILES); do \ |
59 | echo cp $$file $(DESTDIR)$(docdir)/html ;\ |
60 | cp -f $$file $(DESTDIR)$(docdir)/html ;\ |
61 | done |
62 | |
63 | ######## |
64 | |
65 | clean: |
66 | rm -f *~ |
67 | rm -f html/*~ |
68 | rm -f $(WEBDIR)/*~ |
69 | |
70 | ######## |
71 | |
72 | distclean: clean |
73 | rm -f $(WEBDIR)/* |
74 | |
75 | ######## |
76 | |
77 | top=-top |
78 | include ../Makefile |
Properties
Name | Value |
---|---|
cvs:description | Copy the HTML documentation from the doc directory to the web directory. |