r475 - x86/trunk/packages/udev

justin at linuxfromscratch.org justin at linuxfromscratch.org
Mon Aug 1 17:24:52 PDT 2005


Author: justin
Date: 2005-08-01 18:24:52 -0600 (Mon, 01 Aug 2005)
New Revision: 475

Modified:
   x86/trunk/packages/udev/Makefile
Log:
Updated udev Makefile.

Modified: x86/trunk/packages/udev/Makefile
===================================================================
--- x86/trunk/packages/udev/Makefile	2005-08-01 23:54:25 UTC (rev 474)
+++ x86/trunk/packages/udev/Makefile	2005-08-02 00:24:52 UTC (rev 475)
@@ -1,35 +1,53 @@
 # Udev Makefile
+#==============================================================================
 
-# Package versions
 NM= udev
-VRS= 056
+VRS= 063
 DIR= $(NM)-$(VRS)
+
 FILE= $(DIR).tar.bz2
-FILE1= $(NM)-config-3.rules
-URL= $(HTTP)/$(NM)/$(FILE)
-URL1= $(HTTP)/$(NM)/$(FILE1)
+URL-$(FILE)= $(HTTP)/$(NM)/$(FILE)
+SHA-$(FILE)= bc2a0d22a4b128ea5a2accd505859e60948bd261
 
-# RULES
+CONFIG1= $(NM)-config-3.rules
+URL-$(CONFIG1)= $(HTTP)/$(NM)/$(FILE)
+SHA-$(CONFIG1)= ad947b94db2c2d7d56ecf0aaabc8af4a0094a964
 
-.PHONY:  clean stage2 chroot
+# Targets
+# =============================================================================
 
+include $(ROOT)/scripts/functions
+
 chroot:
-	@chroot "$(MP)" $(chenv-post-bash) 'cd $(ROOT) && make ch-$(NM) $(chbash-post-bash)'
+	@chroot "$(MP)" $(chenv-post-bash) \
+	'cd $(ROOT) && make ch-$(NM) $(chbash-post-bash)'
 
-stage2:
-	@echo ""
-	@echo "=====> Building $(NM) in chroot"
-	@echo ""
-	@if [ ! -f $(SRC)/$(FILE) ] ; then $(WGET) $(URL) && \
-	 mv $(FILE) $(SRC) ; fi
-	@if [ ! -f $(SRC)/$(FILE1) ] ; then $(WGET) $(URL1) && \
-	 mv $(FILE1) $(SRC) ; fi
-	@if [ ! -f /sbin/udevstart ] ; then unpack $(SRC)/$(FILE) && cd $(DIR) && \
-	 make udevdir=/dev && make udevdir=/dev install && \
-	 cp $(SRC)/$(FILE1) /etc/udev/rules.d/25-lfs.rules && \
-	 /sbin/udevstart ; fi
-	@make clean
-	 
+stage2: Makefile $(FILE) $(CONFIG1)
+	@$(std_build)
 
+compile-stage2:
+	@$(call echo_message, Making)
+#==============================================================================
+# Make commands below \/
+#==============================================================================
+	@make udevdir=/dev >../$(DIR)-$@.log 2>&1
+#
+#==Status Messages===========================================
+#
+	@$(OK)
+	@$(call echo_message, Installing)
+#==============================================================================
+# Install commands below \/
+#==============================================================================
+	@make udevdir=/dev install >>../$(DIR)-$@.log 2>&1
+	@cp $(SRC)/$(CONFIG1) /etc/udev/rules.d/25-lfs.rules
+	@/sbin/udevstart
+#
+#==Status Messages===========================================
+#
+	@$(OK)
+
 clean:
 	@-rm -rf $(DIR)
+
+.PHONY: clean chroot compile-stage2




More information about the livecd mailing list