gawk

Alexander E. Patrakov patrakov at ums.usu.ru
Sun Aug 14 06:33:06 PDT 2005


Hello,

when gawk-3.1.5 enters the book, please update the Makefile as attached 
(if it works and if it is equivalent to the book's actions). By 
explicitly sendng the Makefile, I just want to avoid conflicts in the 
utf8-newmake branch.

-- 
Alexander E. Patrakov
-------------- next part --------------
# Gawk Makefile
#==============================================================================

NM= gawk
VRS= 3.1.5
DIR= $(NM)-$(VRS)

FILE= $(DIR).tar.bz2
URL-$(FILE)= $(HTTP)/$(NM)/$(FILE)
SHA-$(FILE)= 0d5694461f1c32f1eae41a1c0d7ba0939b47e369

# Targets
# =============================================================================

include $(ROOT)/scripts/functions

stage1: $(FILE)
	@$(std_build)
	@cp $(SRC)/$(FILE) $(LFSSRC)

compile-stage1:
	@$(call echo_message, Configuring)
#==============================================================================
# Configure commands below \/
#==============================================================================
	@./configure --prefix=$(WD) --libexecdir=$(WD)/lib \
	>../$(DIR)-$@.log 2>&1
	@echo "#define HAVE_ISBLANK 1" >>config.h
	@echo "#define HAVE_LANGINFO_CODESET 1" >>config.h
	@echo "#define HAVE_LANGINFO_H 1" >>config.h
	@echo "#define HAVE_LC_MESSAGES 1" >>config.h
#
#==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)

chroot:
	@chroot "$(MP)" $(chenv-pre-bash) \
	'cd $(ROOT) && make ch-$(NM) $(chbash-pre-bash)'

stage2: Makefile $(FILE)
	@$(std_build)

compile-stage2:
	@$(call echo_message, Configuring)
#==============================================================================
# Configure commands below \/
#==============================================================================
	@./configure --prefix=/usr --libexecdir=/usr/lib >../$(DIR)-$@.log 2>&1
	@echo "#define HAVE_ISBLANK 1" >>config.h
	@echo "#define HAVE_LANGINFO_CODESET 1" >>config.h
	@echo "#define HAVE_LANGINFO_H 1" >>config.h
	@echo "#define HAVE_LC_MESSAGES 1" >>config.h
#
#==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: compile-stage1 clean chroot compile-stage2


More information about the livecd mailing list