Fixed master/Makefile.am in case Module.symvers does not exist.
authorFlorian Pose <fp@igh-essen.com>
Mon, 15 Feb 2010 18:31:23 +0100
changeset 1805 44dde06c0685
parent 1804 742607c464c4
child 1806 47d152b68622
Fixed master/Makefile.am in case Module.symvers does not exist.
master/Makefile.am
--- a/master/Makefile.am	Fri Feb 05 10:29:47 2010 +0100
+++ b/master/Makefile.am	Mon Feb 15 18:31:23 2010 +0100
@@ -83,12 +83,17 @@
 	$(MAKE) -C "$(LINUX_SOURCE_DIR)" M="@abs_srcdir@" clean
 
 modulesdir=@prefix@/modules
-SYMVERS=`echo $(top_builddir)/Module*.symvers`
+SYMVERS=$(top_builddir)/Module.symvers
+SYMVERSS=$(top_builddir)/Modules.symvers
 
 install-data-local:
-	@test -n "$(SYMVERS)" && \
-		mkdir -p $(DESTDIR)$(modulesdir) && \
-		cp -vf $(SYMVERS) \
-			$(DESTDIR)$(modulesdir)/ec_master.symvers
+	for symvers in $(SYMVERS) $(SYMVERSS); do \
+		if test -f $$symvers; then \
+			mkdir -p $(DESTDIR)$(modulesdir) && \
+			cp -vf $$symvers \
+			$(DESTDIR)$(modulesdir)/ec_master.symvers; \
+			break; \
+		fi; \
+	done
 
 #------------------------------------------------------------------------------