Author: thomasp
Date: 2005-08-01 13:14:28 -0600 (Mon, 01 Aug 2005)
New Revision: 464

Modified:
   x86/trunk/packages/sharutils/Makefile
Log:
Updated sharutils Makefile

Modified: x86/trunk/packages/sharutils/Makefile
===================================================================
--- x86/trunk/packages/sharutils/Makefile       2005-08-01 18:52:31 UTC (rev 
463)
+++ x86/trunk/packages/sharutils/Makefile       2005-08-01 19:14:28 UTC (rev 
464)
@@ -1,29 +1,56 @@
 # sharutils Makefile
+#==============================================================================
 
-# Package versions
 NM= sharutils
 VRS= 4.3.80
 DIR= $(NM)-$(VRS)
+
 FILE= $(DIR).tar.bz2
-URL= http://ftp.gnu.org/gnu/sharutils/REL-$(VRS)/$(FILE)
+URL-$(FILE)= http://ftp.gnu.org/gnu/$(NM)/REL-$(VRS)/$(FILE)
+SHA-$(FILE)= 226065b162c5c621a64536db952b925cfe339366
 
-# RULES
+# Targets
+# =============================================================================
 
-.PHONY: clean chroot stage2
+include $(ROOT)/scripts/functions
 
 chroot:
-       @chroot "$(MP)" $(chenv-pre-bash) 'cd $(ROOT) && make ch-$(NM) 
$(chbash-pre-bash)'
+       @chroot "$(MP)" $(chenv-pre-bash) \
+       'cd $(ROOT) && make ch-$(NM) $(chbash-pre-bash)'
 
-stage2:
-       @echo ""
-       @echo "======> Building $(NM) in chroot"
-       @echo ""
-       @if [ ! -f $(FILE) ] ; then $(WGET) $(URL) ; fi
-       @if [ ! -f /usr/bin/clear ] ; then unpack $(FILE) && cd $(DIR) && \
-        ./configure --prefix=/usr && \
-        make -j3 && \
-        make install ; fi
-       @make clean
+stage2: Makefile $(FILE) 
+       @$(std_build)
 
+compile-stage2:
+       @$(call echo_message, Configuring)
+#==============================================================================
+# Configure commands below \/
+#==============================================================================
+       @./configure --prefix=/usr >../$(DIR)[EMAIL PROTECTED] 2>&1
+#
+#==Status Messages==========================================
+#
+       @$(OK)
+       @$(call echo_message, Making)
+#==============================================================================
+# Make commands below \/
+#==============================================================================
+       @make $(PM) >>../$(DIR)[EMAIL PROTECTED] 2>&1
+#
+#==Status Messages===========================================
+#
+       @$(OK)
+       @$(call echo_message, Installing)
+#==============================================================================
+# Install commands below \/
+#==============================================================================
+       @make install >>../$(DIR)[EMAIL PROTECTED] 2>&1
+#
+#==Status Messages===========================================
+#
+       @$(OK)
+
 clean:
        @-rm -rf $(DIR)
+
+.PHONY: clean chroot compile-stage2

-- 
http://linuxfromscratch.org/mailman/listinfo/livecd
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page

Reply via email to