r542 - in x86/trunk: . packages/inputattach

jhuntwork at linuxfromscratch.org jhuntwork at linuxfromscratch.org
Wed Aug 3 05:08:10 PDT 2005


Author: jhuntwork
Date: 2005-08-03 06:08:09 -0600 (Wed, 03 Aug 2005)
New Revision: 542

Modified:
   x86/trunk/packages/inputattach/Makefile
   x86/trunk/todo-list
Log:
Updated inputattach Makefile

Modified: x86/trunk/packages/inputattach/Makefile
===================================================================
--- x86/trunk/packages/inputattach/Makefile	2005-08-03 11:58:10 UTC (rev 541)
+++ x86/trunk/packages/inputattach/Makefile	2005-08-03 12:08:09 UTC (rev 542)
@@ -1,19 +1,42 @@
-# popt Makefile
+# inputattach Makefile
+#==============================================================================
 
-# Package versions
 NM= inputattach
 
-# RULES
+# Targets
+#==============================================================================
 
-.PHONY: stage2 chroot
-
 chroot:
-	@chroot "$(MP)" $(chenv-blfs) 'cd $(ROOT) && make ch-$(NM) $(chbash-post-bash)'
+	@chroot "$(MP)" $(chenv-blfs) \
+	'cd $(ROOT) && make ch-$(NM) $(chbash-post-bash)'
 
-stage2:
-	@echo ""
-	@echo "=====> Building $(NM) in chroot"
-	@echo ""
-	if [ ! -f /usr/bin/inputattach ] ; then \
-	 gcc $(CFLAGS) -D_LINUX_INTERRUPT_H -o inputattach inputattach.c && \
-	 install -m 755 inputattach /usr/bin ; fi
+stage2: Makefile
+	@make -f Makefile compile-$@
+	@make clean
+	@touch $@	
+
+compile-stage2:
+	@$(call echo_message, Making)
+#==============================================================================
+# Make commands below \/
+#==============================================================================
+	@gcc $(CFLAGS) -D_LINUX_INTERRUPT_H -o inputattach inputattach.c \
+	  >$(NM)-$@.log 2>&1
+#
+#==Status Messages========================================
+#
+	@$(OK)
+	@$(call echo_message, Installing)
+#==============================================================================
+# Install commands below \/
+#==============================================================================
+	@install -m 755 inputattach /usr/bin >>$(NM)-$@.log 2>&1
+#
+#==Status Messages========================================
+#
+	@$(OK)
+
+clean:
+	@rm -f inputattach
+
+.PHONY: clean chroot compile-stage2

Modified: x86/trunk/todo-list
===================================================================
--- x86/trunk/todo-list	2005-08-03 11:58:10 UTC (rev 541)
+++ x86/trunk/todo-list	2005-08-03 12:08:09 UTC (rev 542)
@@ -1,4 +1,3 @@
-inputattach
 lfs-bootscripts
 procps
 psmisc




More information about the livecd mailing list