Check out the latest version of Routino: svn co http://routino.org/svn/trunk routino
Contents of /trunk/xml/Makefile
Parent Directory
|
Revision Log
Revision 639 -
(show annotations)
(download)
Wed Feb 23 18:47:47 2011 UTC (14 years ago) by amb
File size: 1963 byte(s)
Wed Feb 23 18:47:47 2011 UTC (14 years ago) by amb
File size: 1963 byte(s)
Fix error in creating web files containing profiles.
1 | # XML 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 | WEBDATADIR=../web/data |
24 | WEBWWWDIR=../web/www/routino |
25 | |
26 | # Files to install |
27 | |
28 | FILES=profiles.xml \ |
29 | translations.xml \ |
30 | tagging.xml |
31 | |
32 | ######## |
33 | |
34 | all : |
35 | -@[ -d $(WEBDATADIR) ] && \ |
36 | for file in $(FILES); do \ |
37 | if [ ! -f $(WEBDATADIR)/$$file ] || [ routino-$$file -nt $(WEBDATADIR)/$$file ]; then \ |
38 | echo cp routino-$$file $(WEBDATADIR)/$$file ;\ |
39 | cp -f routino-$$file $(WEBDATADIR)/$$file ;\ |
40 | fi ;\ |
41 | done ;\ |
42 | if [ ! -f $(WEBWWWDIR)/profiles.js ] || [ ! -f $(WEBWWWDIR)/profiles.pl ] || \ |
43 | [ $(WEBDATADIR)/profiles.xml -nt $(WEBWWWDIR)/profiles.pl ] || \ |
44 | [ $(WEBDATADIR)/profiles.xml -nt $(WEBWWWDIR)/profiles.js ]; then \ |
45 | echo perl update-profiles.pl ;\ |
46 | ( cd $(WEBWWWDIR) ; perl update-profiles.pl ) ;\ |
47 | fi |
48 | |
49 | ######## |
50 | |
51 | install: all |
52 | -[ -d $(DESTDIR)$(datadir) ] || mkdir -p $(DESTDIR)$(datadir) |
53 | @[ -d $(DESTDIR)$(datadir) ] && \ |
54 | for file in $(FILES); do \ |
55 | echo cp routino-$$file $(DESTDIR)$(datadir)/$$file ;\ |
56 | cp -f routino-$$file $(DESTDIR)$(datadir)/$$file ;\ |
57 | done |
58 | |
59 | ######## |
60 | |
61 | clean: |
62 | rm -f *~ |
63 | |
64 | ######## |
65 | |
66 | distclean: clean |
67 | rm -f $(WEBDATADIR)/*.xml |
68 | |
69 | ######## |
70 | |
71 | top=-top |
72 | include ../Makefile |
Properties
Name | Value |
---|---|
cvs:description | A Makefile for the xml directory. |