aboutsummaryrefslogtreecommitdiff
path: root/makefiles/setup.mk
diff options
context:
space:
mode:
authorpx4dev <px4@purgatory.org>2013-02-23 12:23:34 -0800
committerpx4dev <px4@purgatory.org>2013-02-23 22:01:00 -0800
commitd24599931a3d68586cc62eddd8ffc4e309ba1606 (patch)
tree8403f18661dd728b6b89c977788fe2ecabc8501c /makefiles/setup.mk
parent8d7621079aa123d1d8e44ae4fd628bb1be72eb1f (diff)
downloadpx4-firmware-d24599931a3d68586cc62eddd8ffc4e309ba1606.tar.gz
px4-firmware-d24599931a3d68586cc62eddd8ffc4e309ba1606.tar.bz2
px4-firmware-d24599931a3d68586cc62eddd8ffc4e309ba1606.zip
APP -> MODULE
remove as many duplicate slashes, etc. as seems practical
Diffstat (limited to 'makefiles/setup.mk')
-rw-r--r--makefiles/setup.mk24
1 files changed, 14 insertions, 10 deletions
diff --git a/makefiles/setup.mk b/makefiles/setup.mk
index 0c142cb1d..d4b279e7c 100644
--- a/makefiles/setup.mk
+++ b/makefiles/setup.mk
@@ -5,16 +5,20 @@
#
# Some useful paths.
#
-export PX4_APP_SRC = $(PX4_BASE)/src/apps
-export PX4_LIB_SRC = $(PX4_BASE)/src/libs
-export PX4_MK_DIR = $(PX4_BASE)/makefiles
-export NUTTX_SRC = $(PX4_BASE)/nuttx
-export NUTTX_APP_SRC = $(PX4_BASE)/apps
-export MAVLINK_SRC = $(PX4_BASE)/mavlink
-export ROMFS_SRC = $(PX4_BASE)/ROMFS
-export IMAGE_DIR = $(PX4_BASE)/Images
-export BUILD_DIR = $(PX4_BASE)/Build
-export ARCHIVE_DIR = $(PX4_BASE)/Archives
+# Note that in general we always keep directory paths with the separator
+# at the end, and join paths without explicit separators. This reduces
+# the number of duplicate slashes we have lying around in paths,
+# and is consistent with joining the results of $(dir) and $(notdir).
+#
+export PX4_MODULE_SRC = $(abspath $(PX4_BASE)/src/modules)/
+export PX4_MK_DIR = $(abspath $(PX4_BASE)/makefiles)/
+export NUTTX_SRC = $(abspath $(PX4_BASE)/nuttx)/
+export NUTTX_APP_SRC = $(abspath $(PX4_BASE)/apps)/
+export MAVLINK_SRC = $(abspath $(PX4_BASE)/mavlink)/
+export ROMFS_SRC = $(abspath $(PX4_BASE)/ROMFS)/
+export IMAGE_DIR = $(abspath $(PX4_BASE)/Images)/
+export BUILD_DIR = $(abspath $(PX4_BASE)/Build)/
+export ARCHIVE_DIR = $(abspath $(PX4_BASE)/Archives)/
#
# Tools