r484 - x86/trunk/packages/module-init-tools

justin at linuxfromscratch.org justin at linuxfromscratch.org
Mon Aug 1 21:46:00 PDT 2005


Author: justin
Date: 2005-08-01 22:45:57 -0600 (Mon, 01 Aug 2005)
New Revision: 484

Modified:
   x86/trunk/packages/module-init-tools/Makefile
Log:
Updated module-init-tools Makefile.

Modified: x86/trunk/packages/module-init-tools/Makefile
===================================================================
--- x86/trunk/packages/module-init-tools/Makefile	2005-08-02 04:25:38 UTC (rev 483)
+++ x86/trunk/packages/module-init-tools/Makefile	2005-08-02 04:45:57 UTC (rev 484)
@@ -1,32 +1,57 @@
 # Module-Init-Tools Makefile
+#==============================================================================
 
-# Package versions
 NM= module-init-tools
 VRS= 3.1
 DIR= $(NM)-$(VRS)
+
 FILE= $(DIR).tar.bz2
-URL= $(HTTP)/$(NM)/$(FILE)
-URL1= $(HTTP)/$(NM)/$(PATCH1)
+URL-$(FILE)= $(HTTP)/$(NM)/$(FILE)
+SHA-$(FILE)= f233cab26208aa7d21a8ca24e4a9712af23a5a1d
 
-# RULES
+# Targets
+# =============================================================================
 
-.PHONY:  clean stage2 chroot
+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 /sbin/modprobe ] ; then unpack $(SRC)/$(FILE) && cd $(DIR) && \
-	 touch modprobe.conf.5 && \
-	 ./configure --prefix="" --enable-zlib && \
-	 make -j3 && make install ; fi
-	@make clean
-	 
+stage2: Makefile $(FILE)
+	@$(std_build)
 
+compile-stage2:
+	@$(call echo_message, Configuring)
+#==============================================================================
+# Configure commands below \/
+#==============================================================================
+	@touch modprobe.conf.5
+	@./configure --prefix="" --enable-zlib >../$(DIR)-$@.log 2>&1
+#
+#==Status Messages==========================================
+#
+	@$(OK)
+	@$(call echo_message, Making)
+#==============================================================================
+# Make commands below \/
+#==============================================================================
+	@make $(PM) >>../$(DIR)-$@.log 2>&1
+#
+#==Status Messages===========================================
+#
+	@$(OK)
+	@$(call echo_message, Installing)
+#==============================================================================
+# Install commands below \/
+#==============================================================================
+	@make install >>../$(DIR)-$@.log 2>&1
+#
+#==Status Messages===========================================
+#
+	@$(OK)
+
 clean:
 	@-rm -rf $(DIR)
+
+.PHONY: clean chroot compile-stage2




More information about the livecd mailing list