Author: thomasp
Date: 2005-08-01 09:59:05 -0600 (Mon, 01 Aug 2005)
New Revision: 457
Modified:
x86/trunk/packages/less/Makefile
Log:
Updated less Makefile
Modified: x86/trunk/packages/less/Makefile
===================================================================
--- x86/trunk/packages/less/Makefile 2005-08-01 15:58:52 UTC (rev 456)
+++ x86/trunk/packages/less/Makefile 2005-08-01 15:59:05 UTC (rev 457)
@@ -1,29 +1,58 @@
-# Less Makefile
+# Less Makefile
+#==============================================================================
-# Package versions
NM= less
VRS= 382
DIR= $(NM)-$(VRS)
+
FILE= $(DIR).tar.bz2
-URL= $(HTTP)/$(NM)/$(FILE)
+URL-$(FILE)= $(HTTP)/$(NM)/$(FILE)
+SHA-$(FILE)= bc10f7d68152725cc7836a75437ac7e1163860de
-# 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 $(SRC)/$(FILE) ] ; then $(WGET) $(URL) && \
- mv $(FILE) $(SRC) ; fi
- @if [ ! -f /bin/less ] ; then unpack $(SRC)/$(FILE) && cd $(DIR) && \
- ./configure --prefix=/usr --bindir=/bin -sysconfdir=/etc && \
- make -j3 && make install ; fi
- @make clean
+stage2: Makefile $(FILE)
+ @$(std_build)
+ @cp $(SRC)/$(FILE) $(LFSSRC)
+compile-stage2:
+ @$(call echo_message, Configuring)
+#==============================================================================
+# Configure commands below \/
+#==============================================================================
+ @./configure --prefix=/usr --bindir=/bin \
+ --sysconfdir=/etc >../$(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