Makefile.print
changeset 58 e0a3fe869908
parent 57 e5505327aee5
--- a/Makefile.print	Thu Feb 09 13:34:55 2012 +0100
+++ b/Makefile.print	Thu Jun 21 16:29:32 2012 +0900
@@ -3,6 +3,13 @@
 include $(config)
 include $(srcdir)Makefile
 
+# fix minor nits for make version dependencies
+ifeq (3.82,$(firstword $(sort $(MAKE_VERSION) 3.82)))
+  SEPARATOR=
+else
+  SEPARATOR=/
+endif
+
 to_keep_list=$(subst :, ,$(to_keep))
 obj-y += $(lib-y)
 obj-m += $(lib-m)
@@ -31,4 +38,4 @@
 	@echo -n $(addprefix $(objdir),$(@:.o=.ko)); echo -n "="
 	@echo $(addprefix $(objdir),$(if $($(@:.o=-objs)),$($(@:.o=-objs)),$@))
 $(subdirs):
-	@$(MAKE) -s -f $(firstword $(MAKEFILE_LIST)) objdir=$(objdir)$@ config=$(config) srcdir=$(srcdir)$@ to_keep=$(to_keep) print 2>/dev/null
+	@$(MAKE) -s -f $(firstword $(MAKEFILE_LIST)) objdir=$(objdir)$@$(SEPARATOR) config=$(config) srcdir=$(srcdir)$@$(SEPARATOR) to_keep=$(to_keep) print 2>/dev/null