SVN: ppcrcd/trunk/Makefile

sparky sparky at pld-linux.org
Thu Nov 30 19:21:55 CET 2006


Author: sparky
Date: Thu Nov 30 19:21:54 2006
New Revision: 8016

Modified:
   ppcrcd/trunk/Makefile
Log:
- check for `uname -m` == ppc


Modified: ppcrcd/trunk/Makefile
==============================================================================
--- ppcrcd/trunk/Makefile	(original)
+++ ppcrcd/trunk/Makefile	Thu Nov 30 19:21:54 2006
@@ -53,7 +53,11 @@
 DOCS = $(addprefix out/docs/,$(addsuffix .html,index $(DOCSRC)))
 YDOCS = $(addprefix out/docs/,$(addsuffix .hlp,$(YDOCSRC)))
 
-ifneq ($(wildcard /proc/cpuinf*),/proc/cpuinfo)
+ifneq ($(shell uname -m),ppc)
+$(error arch must be 'ppc')
+endif
+
+ifneq ($(wildcard /proc/cpuinfo),/proc/cpuinfo)
 PROC := $(shell $(SU) mount /proc)
 endif
 


More information about the pld-cvs-commit mailing list