summaryrefslogtreecommitdiff
path: root/src/navigation/script
diff options
context:
space:
mode:
Diffstat (limited to 'src/navigation/script')
-rw-r--r--src/navigation/script/0positioning.mk9
-rw-r--r--src/navigation/script/1navit.mk7
-rw-r--r--src/navigation/script/Makefile11
3 files changed, 23 insertions, 4 deletions
diff --git a/src/navigation/script/0positioning.mk b/src/navigation/script/0positioning.mk
index 0259acf..d1f8e6d 100644
--- a/src/navigation/script/0positioning.mk
+++ b/src/navigation/script/0positioning.mk
@@ -8,8 +8,9 @@
# \brief This file is part of the Build System.
#
# \author Martin Schaller <martin.schaller@it-schaller.de>
+# \author Philippe Colliot <philippe.colliot@mpsa.com>
#
-# \version 1.0
+# \version 1.1
#
# This Source Code Form is subject to the terms of the
# Mozilla Public License (MPL), v. 2.0.
@@ -20,7 +21,7 @@
#
# List of changes:
#
-# <date>, <name>, <description of change>
+# 4/6/2014, Philippe Colliot, complete src-clean option
#
# @licence end@
positioning_BIN=$(BIN_DIR)/positioning
@@ -33,9 +34,13 @@ positioning_API=$(positioning_SRC)/enhanced-position-service/api
ALL+=positioning
+SRC_CLEAN+=clean-positioning_SRC
+
help::
@echo "positioning: Build positioning"
+clean-positioning_SRC::
+ rm -rf $(positioning_SRC)
positioning: $(positioning_BIN)/enhanced-position-service/src/server/position-daemon
diff --git a/src/navigation/script/1navit.mk b/src/navigation/script/1navit.mk
index a689558..0935c2f 100644
--- a/src/navigation/script/1navit.mk
+++ b/src/navigation/script/1navit.mk
@@ -8,6 +8,7 @@
# \brief This file is part of the Build System.
#
# \author Martin Schaller <martin.schaller@it-schaller.de>
+# \author Philippe Colliot <philippe.colliot@mpsa.com>
#
# \version 1.0
#
@@ -20,7 +21,7 @@
#
# List of changes:
#
-# <date>, <name>, <description of change>
+# 4/6/2014, Philippe Colliot, complete src-clean option
#
# @licence end@
navit_SRC=$(SRC_DIR)/navit
@@ -32,11 +33,15 @@ navit_DEPS=gtk2.0-dev
DEPS+=$(navit_DEPS)
ALL+=navit navit_map
+SRC_CLEAN+=clean-navit_SRC
help::
@echo "navit: Build navit"
@echo "navit_map: Download and install navit map"
+clean-navit_SRC::
+ rm -rf $(navit_SRC)
+
navit: $(navit_BIN)/navit/navit
$(navit_BIN)/navit/navit: $(navit_BIN)/Makefile
diff --git a/src/navigation/script/Makefile b/src/navigation/script/Makefile
index 24b138e..13e7fa7 100644
--- a/src/navigation/script/Makefile
+++ b/src/navigation/script/Makefile
@@ -8,6 +8,7 @@
# \brief This file is part of the Build System.
#
# \author Martin Schaller <martin.schaller@it-schaller.de>
+# \author Philippe Colliot <philippe.colliot@mpsa.com>
#
# \version 1.0
#
@@ -20,7 +21,7 @@
#
# List of changes:
#
-# <date>, <name>, <description of change>
+# 4/6/2014, Philippe Colliot, complete src-clean option
#
# @licence end@
SRC_DIR=$(CURDIR)/../../navigation
@@ -38,12 +39,16 @@ help::
@echo "The following targets exist"
@echo "all: Build $(ALL)"
@echo "all2: Install all necessary dependencies and build all"
+ @echo "clean: Clean up build dir"
+ @echo "src-clean: Clean up all checked out sources"
include *.mk
all: $(ALL)
+src-clean: $(SRC_CLEAN)
+
deps::
sudo apt-get install $(DEPS)
# See https://bugs.launchpad.net/ubuntu/+source/freetype/+bug/1319642 why this is necessary
@@ -51,4 +56,8 @@ deps::
all2: deps all
+
navit-plugins: all
+
+clean:
+ rm -rf $(BIN_DIR)