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 476 -
(show annotations)
(download)
Mon Aug 30 13:39:12 2010 UTC (14 years, 6 months ago) by amb
File size: 1655 byte(s)
Mon Aug 30 13:39:12 2010 UTC (14 years, 6 months ago) by amb
File size: 1655 byte(s)
Added 'install' to top level (and lower) Makefiles.
1 | # $Header: /home/amb/CVS/routino/xml/Makefile,v 1.7 2010-08-30 13:39:12 amb Exp $ |
2 | # |
3 | # XML directory Makefile |
4 | # |
5 | # Part of the Routino routing software. |
6 | # |
7 | # This file Copyright 2010 Andrew M. Bishop |
8 | # |
9 | # This program is free software: you can redistribute it and/or modify |
10 | # it under the terms of the GNU Affero General Public License as published by |
11 | # the Free Software Foundation, either version 3 of the License, or |
12 | # (at your option) any later version. |
13 | # |
14 | # This program is distributed in the hope that it will be useful, |
15 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
16 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
17 | # GNU Affero General Public License for more details. |
18 | # |
19 | # You should have received a copy of the GNU Affero General Public License |
20 | # along with this program. If not, see <http://www.gnu.org/licenses/>. |
21 | # |
22 | |
23 | # Installation paths |
24 | |
25 | prefix=/usr/local |
26 | sharedir=$(DESTDIR)$(prefix)/share/routino |
27 | |
28 | # Web file paths |
29 | |
30 | WEBDIR=../web/data |
31 | |
32 | # Files to install |
33 | |
34 | FILES=profiles.xml \ |
35 | translations.xml \ |
36 | tagging.xml |
37 | |
38 | ######## |
39 | |
40 | all : |
41 | -@[ -d $(WEBDIR) ] && \ |
42 | for file in $(FILES); do \ |
43 | if [ ! -f $(WEBDIR)/$$file ] || [ routino-$$file -nt $(WEBDIR)/$$file ]; then \ |
44 | echo cp routino-$$file $(WEBDIR)/$$file ;\ |
45 | cp -f routino-$$file $(WEBDIR)/$$file ;\ |
46 | fi ;\ |
47 | done |
48 | |
49 | ######## |
50 | |
51 | install: all |
52 | -[ -d $(sharedir) ] || mkdir -p $(sharedir) |
53 | @[ -d $(sharedir) ] && \ |
54 | for file in $(FILES); do \ |
55 | echo cp routino-$$file $(sharedir)/$$file ;\ |
56 | cp -f routino-$$file $(sharedir)/$$file ;\ |
57 | done |
58 | |
59 | ######## |
60 | |
61 | clean: |
62 | rm -f *~ |
63 | |
64 | ######## |
65 | |
66 | distclean: clean |
67 | rm -f $(WEBDIR)/*.xml |
Properties
Name | Value |
---|---|
cvs:description | A Makefile for the xml directory. |