open-src/driver/Makefile
changeset 493 f43507b5737d
parent 380 bd6a6bdd1d17
child 606 068c11b419c9
--- a/open-src/driver/Makefile	Fri Aug 08 16:28:28 2008 -0700
+++ b/open-src/driver/Makefile	Fri Aug 08 16:27:37 2008 -0700
@@ -28,7 +28,7 @@
 # or other dealings in this Software without prior written authorization
 # of the copyright holder.
 #
-# @(#)Makefile	1.9	08/03/25
+# @(#)Makefile	1.10	08/08/08
 #
 ###############################################################################
 
@@ -92,30 +92,9 @@
 	xf86-video-via			\
 	xf86-video-vmware
 
-
-MACH:sh=uname -p
-OS_SUBDIRS=$(OS_SUBDIRS_$(MACH))
-
-all: install
-
-World: clean install
-
-clean: 
-	$(MAKE) $(MFLAGS) subdirs OS_TARGET=clean
-
-install:
-	$(MAKE) $(MFLAGS) subdirs OS_TARGET=install
+PWD:sh=pwd
+TOP=$(PWD)/..
 
-download:
-	$(MAKE) $(MFLAGS) subdirs OS_TARGET=download
-
-source:
-	$(MAKE) $(MFLAGS) subdirs OS_TARGET=source
-
-subdirs:
-	@case '${MFLAGS}' in *[ik]*) set +e;; esac; \
-	for i in $(OS_SUBDIRS) ;\
-	do \
-	(cd $$i ; echo "## making" $(OS_TARGET) "in open-src/driver/$$i..."; \
-	$(MAKE) $(MFLAGS) CDEBUGFLAGS="$(CDEBUGFLAGS)" $(OS_TARGET)); \
-	done
+### Include common definitions
+DIRNAME="driver/"
+include $(TOP)/common/Makefile.subdirs