Ignore:
Timestamp:
Jun 30, 2008, 11:14:11 PM (17 years ago)
Author:
bird
Message:

Converted to a sub-makefile setup ('single' makefile).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/sed/Makefile.kmk

    r1604 r1665  
    11# $Id$
    22## @file
    3 # sed
     3# Sub-Makefile for kmk_sed.
    44#
    55
     
    2525#
    2626
    27 DEPTH = ../..
    28 include $(PATH_KBUILD)/header.kmk
     27SUB_DEPTH = ../..
     28include $(KBUILD_PATH)/subheader.kmk
    2929
    3030#
     
    3535kmk_sed_TEMPLATE = BIN
    3636kmk_sed_DEPS = \
    37         $(PATH_TARGET)/config.h \
    38         $(PATH_TARGET)/regex.h
     37        $(PATH_kmk_sed)/config.h \
     38        $(PATH_kmk_sed)/regex.h
    3939kmk_sed_CLEAN = $(kmk_sed_DEPS)
    4040kmk_sed_INCS = \
    41         $(PATH_TARGET) \
     41        $(PATH_kmk_sed) \
    4242        . \
    4343        lib \
     
    7979        ../lib/startuphacks-win.c
    8080
    81 include $(FILE_KBUILD_FOOTER)
     81include $(FILE_KBUILD_SUB_FOOTER)
    8282
    8383#
    8484# Use checked in config.h instead of running ./configure for it.
    8585#
    86 config.h.$(KBUILD_TARGET) := config.h.$(KBUILD_TARGET)
     86kmk_sed_config.h.$(KBUILD_TARGET) := $(kmk_sed_PATH)/config.h.$(KBUILD_TARGET)
    8787
    88 $(PATH_TARGET)/config.h: $(config.h.$(KBUILD_TARGET)) | $(call DIRDEP,$(PATH_TARGET))
    89         $(CP) $^ $@
     88$(PATH_kmk_sed)/config.h: $(kmk_sed_config.h.$(KBUILD_TARGET)) | $(call DIRDEP,$(PATH_kmk_sed))
     89        $(CP) -f $^ $@
    9090
    9191#
    9292# Use the regex lib shipped with sed and not anything installed on the system.
    9393#
    94 $(PATH_TARGET)/regex.h: lib/regex_.h | $(call DIRDEP,$(PATH_TARGET))
    95         $(CP) $^ $@
     94$(PATH_kmk_sed)/regex.h: $(kmk_sed_PATH)/lib/regex_.h | $(call DIRDEP,$(PATH_kmk_sed))
     95        $(CP) -f $^ $@
    9696
Note: See TracChangeset for help on using the changeset viewer.