Routino SVN Repository Browser

Check out the latest version of Routino: svn co http://routino.org/svn/trunk routino

ViewVC logotype

Annotation of /trunk/xml/Makefile

Parent Directory Parent Directory | Revision Log Revision Log


Revision 635 - (hide annotations) (download)
Fri Feb 11 18:43:15 2011 UTC (14 years, 1 month ago) by amb
File size: 1959 byte(s)
Move the Javascript and Perl profiles into separate files.

1 amb 354 # XML directory Makefile
2     #
3     # Part of the Routino routing software.
4     #
5 amb 635 # This file Copyright 2010-2011 Andrew M. Bishop
6 amb 354 #
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 amb 476 # Web file paths
22    
23 amb 635 WEBDATADIR=../web/data
24     WEBWWWDIR=../web/www/routino
25 amb 354
26 amb 476 # Files to install
27    
28 amb 436 FILES=profiles.xml \
29 amb 427 translations.xml \
30     tagging.xml
31    
32 amb 354 ########
33    
34 amb 371 all :
35 amb 635 -@[ -d $(WEBDATADIR) ] && \
36 amb 427 for file in $(FILES); do \
37 amb 635 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 amb 354 fi ;\
41 amb 635 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 amb 354
49     ########
50    
51 amb 476 install: all
52 amb 482 -[ -d $(DESTDIR)$(datadir) ] || mkdir -p $(DESTDIR)$(datadir)
53     @[ -d $(DESTDIR)$(datadir) ] && \
54 amb 476 for file in $(FILES); do \
55 amb 482 echo cp routino-$$file $(DESTDIR)$(datadir)/$$file ;\
56     cp -f routino-$$file $(DESTDIR)$(datadir)/$$file ;\
57 amb 476 done
58    
59     ########
60    
61 amb 354 clean:
62     rm -f *~
63    
64     ########
65    
66     distclean: clean
67 amb 635 rm -f $(WEBDATADIR)/*.xml
68 amb 482
69     ########
70    
71     top=-top
72     include ../Makefile

Properties

Name Value
cvs:description A Makefile for the xml directory.