Changeset 3416


Ignore:
Timestamp:
Jun 12, 2007, 6:28:11 AM (18 years ago)
Author:
bird
Message:

gawk, diff and use kmk cp.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libc/Makefile.kmk

    r2942 r3416  
    4242include $(wildcard $(PATH_LIBC_SRC)/Makefile.kmk)
    4343
     44#
     45# Some external tools we depend on.
     46#
     47LIBC_GAWK ?= gawk$(HOSTSUFF_EXE)
     48LIBC_DIFF ?= diff$(HOSTSUFF_EXE)
    4449               
    4550#
     
    462467                ,$(NL)$(TAB)@$(APPEND) $(PATH_TARGET)/libc-std.files "$(src)")
    463468ifeq ($(BUILD_PLATFORM),os2)
    464         gawk -f ./mkstd.awk @$(PATH_TARGET)/libc-std.files > $(PATH_TARGET)/libc-std.tmp.h
     469        $(LIBC_GAWK) -f ./mkstd.awk @$(PATH_TARGET)/libc-std.files > $(PATH_TARGET)/libc-std.tmp.h
    465470else
    466         cd src && gawk -f ../mkstd.awk $(subst $(PATH_LIBC_SRC)/,,$^) > $(PATH_TARGET)/libc-std.tmp.h
    467 endif
    468         if diff $(PATH_TARGET)/libc-std.tmp.h $(PATH_TARGET)/libc-std.h > /dev/null 2> /dev/null; then \
     471        cd src && $(LIBC_GAWK) -f ../mkstd.awk $(subst $(PATH_LIBC_SRC)/,,$^) > $(PATH_TARGET)/libc-std.tmp.h
     472endif
     473        if $(LIBC_DIFF) $(PATH_TARGET)/libc-std.tmp.h $(PATH_TARGET)/libc-std.h > /dev/null 2> /dev/null; then \
    469474                echo "* libc-std.h unchanged"; \
    470475        else \
    471                 cp $(PATH_TARGET)/libc-std.tmp.h $(PATH_TARGET)/libc-std.h; \
     476                $(CP_EXT) $(PATH_TARGET)/libc-std.tmp.h $(PATH_TARGET)/libc-std.h; \
    472477                echo "* libc-std.h updated"; \
    473478        fi
Note: See TracChangeset for help on using the changeset viewer.