PUD: quote paths in Makefile
authorFerry Huberts <ferry.huberts@pelagic.nl>
Thu, 7 Jun 2012 12:01:29 +0000 (14:01 +0200)
committerFerry Huberts <ferry.huberts@pelagic.nl>
Thu, 7 Jun 2012 13:06:59 +0000 (15:06 +0200)
Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
lib/pud/Makefile

index 3a92829..3d446cb 100644 (file)
@@ -53,16 +53,16 @@ $(PLUGIN_FULLNAME): $(OBJS) version-script.txt
        @$(CC) $(LDFLAGS) -o $(PLUGIN_FULLNAME) $(OBJS) $(LIBS)
 
 install: all
-       @$(MAKE) -C $(NMEALIB_PATH) DESTDIR=$(DESTDIR) install
-       @$(MAKE) -C $(LIBRARY_PATH) DESTDIR=$(DESTDIR) install
+       @$(MAKE) -C "$(NMEALIB_PATH)" DESTDIR="$(DESTDIR)" install
+       @$(MAKE) -C "$(LIBRARY_PATH)" DESTDIR="$(DESTDIR)" install
        $(INSTALL_LIB)
        mkdir -p "$(ETCDIR)"
        cp "$(RESOURCESDIR)/olsrd.pud.position.conf" "$(ETCDIR)"
        $(STRIP) "$(LIBDIR)/$(PLUGIN_FULLNAME)"
 
 uninstall:
-       @$(MAKE) -C $(NMEALIB_PATH) DESTDIR=$(DESTDIR) uninstall
-       @$(MAKE) -C $(LIBRARY_PATH) DESTDIR=$(DESTDIR) uninstall
+       @$(MAKE) -C "$(NMEALIB_PATH)" DESTDIR="$(DESTDIR)" uninstall
+       @$(MAKE) -C "$(LIBRARY_PATH)" DESTDIR="$(DESTDIR)" uninstall
        rm -f "$(LIBDIR)/lib$(PLUGIN_NAME).so" "$(LIBDIR)/$(PLUGIN_NAME)" "$(ETCDIR)/olsrd.pud.position.conf"
        $(UNINSTALL_LIB)
        rmdir -v -p --ignore-fail-on-non-empty "$(LIBDIR)" "$(ETCDIR)"
@@ -71,35 +71,35 @@ clean:
        @echo "[$@]"
        @rm -f $(OBJS) $(SRCS:%.c=%.d) "$(PLUGIN_FULLNAME)"
        @$(MAKE) -C doc clean
-       @$(MAKE) -C $(NMEALIB_PATH) clean
-       @$(MAKE) -C $(LIBRARY_PATH) clean
-       @$(MAKE) -C $(JAVA_PATH) clean
+       @$(MAKE) -C "$(NMEALIB_PATH)" clean
+       @$(MAKE) -C "$(LIBRARY_PATH)" clean
+       @$(MAKE) -C "$(JAVA_PATH)" clean
 
 doc:
        @$(MAKE) -C doc all
-       @$(MAKE) -C $(NMEALIB_PATH) doc
-       @$(MAKE) -C $(LIBRARY_PATH) doc
-       @$(MAKE) -C $(JAVA_PATH) doc
+       @$(MAKE) -C "$(NMEALIB_PATH)" doc
+       @$(MAKE) -C "$(LIBRARY_PATH)" doc
+       @$(MAKE) -C "$(JAVA_PATH)" doc
 
 doc-clean:
        @$(MAKE) -C doc clean
-       @$(MAKE) -C $(NMEALIB_PATH) doc clean
-       @$(MAKE) -C $(LIBRARY_PATH) doc clean
-       @$(MAKE) -C $(JAVA_PATH) doc clean
+       @$(MAKE) -C "$(NMEALIB_PATH)" doc clean
+       @$(MAKE) -C "$(LIBRARY_PATH)" doc clean
+       @$(MAKE) -C "$(JAVA_PATH)" doc clean
 
 nmealib:
-       @$(MAKE) -C $(NMEALIB_PATH) all
+       @$(MAKE) -C "$(NMEALIB_PATH)" all
 
 library:
-       @$(MAKE) -C $(LIBRARY_PATH) all
+       @$(MAKE) -C "$(LIBRARY_PATH)" all
 
 java:
-       @$(MAKE) -C $(JAVA_PATH) all
+       @$(MAKE) -C "$(JAVA_PATH)" all
 
 java-install: java
-       @$(MAKE) -C $(JAVA_PATH) DESTDIR=$(DESTDIR) install
+       @$(MAKE) -C "$(JAVA_PATH)" DESTDIR="$(DESTDIR)" install
 
 java-uninstall:
-       @$(MAKE) -C $(JAVA_PATH) DESTDIR=$(DESTDIR) uninstall
+       @$(MAKE) -C "$(JAVA_PATH)" DESTDIR="$(DESTDIR)" uninstall
 
 endif