r447 - x86/trunk/packages/distcc

justin at linuxfromscratch.org justin at linuxfromscratch.org
Mon Aug 1 01:45:25 PDT 2005


Author: justin
Date: 2005-08-01 02:45:16 -0600 (Mon, 01 Aug 2005)
New Revision: 447

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

Modified: x86/trunk/packages/distcc/Makefile
===================================================================
--- x86/trunk/packages/distcc/Makefile	2005-08-01 08:37:29 UTC (rev 446)
+++ x86/trunk/packages/distcc/Makefile	2005-08-01 08:45:16 UTC (rev 447)
@@ -1,28 +1,56 @@
 # distcc Makefile
+#==============================================================================
 
-# Package versions
 NM= distcc
 VRS= 2.18.3
 DIR= $(NM)-$(VRS)
+
 FILE= $(DIR).tar.bz2
-URL= http://distcc.samba.org/ftp/$(NM)/$(FILE)
+URL-$(FILE)= http://distcc.samba.org/ftp/$(NM)/$(FILE)
+SHA-$(FILE)= 88e4c15826bdbc5a3de0f7c1bcb429e558c6976d
 
-# RULES
+# Targets
+# =============================================================================
 
-.PHONY: clean stage2 chroot
+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/distcc ] ; 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)-$@.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