|
Bugzilla – Full Text Bug Listing |
| Summary: | Makefile depends on the version of "make" command | ||
|---|---|---|---|
| Product: | dce | Reporter: | Hajime Tazaki <tazaki> |
| Component: | kernel | Assignee: | Hajime Tazaki <tazaki> |
| Status: | CLOSED WORKSFORME | ||
| Severity: | normal | CC: | ns-bugs |
| Priority: | P5 | ||
| Version: | unspecified | ||
| Hardware: | All | ||
| OS: | All | ||
|
Description
Hajime Tazaki
2012-06-21 02:11:32 UTC
These code are ugly one, but works fine.
diff -r e5505327aee5 Makefile.print
--- a/Makefile.print Thu Feb 09 13:34:55 2012 +0100
+++ b/Makefile.print Thu Jun 21 16:31:22 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
pushed as changeset 58 e0a3fe869908 http://code.nsnam.org/furbani/ns-3-linux/rev/e0a3fe869908 |