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 1528 -
(show annotations)
(download)
Sat Mar 22 12:04:51 2014 UTC (10 years, 11 months ago) by amb
File size: 2005 byte(s)
Sat Mar 22 12:04:51 2014 UTC (10 years, 11 months ago) by amb
File size: 2005 byte(s)
Another iteration through the Makefiles with some small changes.
1 | # XML directory Makefile |
2 | # |
3 | # Part of the Routino routing software. |
4 | # |
5 | # This file Copyright 2010-2014 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 | # All configuration is in the top-level Makefile.conf |
22 | |
23 | include ../Makefile.conf |
24 | |
25 | # Files to install |
26 | |
27 | STANDARD_FILES=profiles.xml \ |
28 | translations.xml \ |
29 | tagging.xml |
30 | |
31 | SPECIAL_FILES=tagging-drive.xml \ |
32 | tagging-ride.xml \ |
33 | tagging-walk.xml |
34 | |
35 | ######## |
36 | |
37 | all: $(SPECIAL_FILES) |
38 | |
39 | #### |
40 | |
41 | tagging-drive.xml : routino-tagging.xml scripts/drive.pl |
42 | perl scripts/drive.pl < routino-tagging.xml > tagging-drive.xml |
43 | |
44 | tagging-ride.xml : routino-tagging.xml scripts/ride.pl |
45 | perl scripts/ride.pl < routino-tagging.xml > tagging-ride.xml |
46 | |
47 | tagging-walk.xml : routino-tagging.xml scripts/walk.pl |
48 | perl scripts/walk.pl < routino-tagging.xml > tagging-walk.xml |
49 | |
50 | ######## |
51 | |
52 | test: |
53 | |
54 | ######## |
55 | |
56 | install: all |
57 | @[ -d $(DESTDIR)$(datadir) ] || mkdir -p $(DESTDIR)$(datadir) |
58 | @for file in $(STANDARD_FILES) ; do \ |
59 | echo cp routino-$$file $(DESTDIR)$(datadir)/$$file ;\ |
60 | cp -f routino-$$file $(DESTDIR)$(datadir)/$$file ;\ |
61 | done |
62 | @for file in $(SPECIAL_FILES); do \ |
63 | echo cp $$file $(DESTDIR)$(datadir)/$$file ;\ |
64 | cp -f $$file $(DESTDIR)$(datadir)/$$file ;\ |
65 | done |
66 | |
67 | ######## |
68 | |
69 | clean: |
70 | rm -f *~ |
71 | |
72 | ######## |
73 | |
74 | distclean: clean |
75 | rm -f $(SPECIAL_FILES) |
76 | |
77 | ######## |
78 | |
79 | .PHONY:: all test install clean distclean |
Properties
Name | Value |
---|---|
cvs:description | A Makefile for the xml directory. |