Changeset 2226 for trunk/Makefile.kmk


Ignore:
Timestamp:
Jan 8, 2009, 11:31:25 PM (17 years ago)
Author:
bird
Message:

Config.kmk,Makefile.kmk: Split up data and docs in share/; made the NIX_INSTALL_DIR stuff more flexible.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Makefile.kmk

    r2202 r2226  
    3232ifdef NIX_INSTALL_DIR
    3333#
    34 # When doing a unix install, install all the kBuild scripts.
     34# When doing a unix install, install all the kBuild scripts and docs.
     35# TODO: Make this default and make it possible to disable it for in-tree development.
    3536#
    36 INSTALLS += kBuild
    37 kBuild_INST = $(NIX_INSTALL_DIR_SHARE)
    38 kBuild_SOURCES := \
     37INSTALLS += kBuild-data
     38kBuild-data_TEMPLATE = DATA
     39kBuild-data_SOURCES := \
    3940        $(foreach src,\
    4041                $(wildcard \
     
    4344                        kBuild/sdks/*.kmk \
    4445                        kBuild/units/*.kmk \
     46                        kBuild/msgstyles/*.kmk \
     47                        kBuild/templates/*.kmk),\
     48                $(src)=>$(subst kBuild/,,$(src)))
     49
     50INSTALLS += kBuild-doc
     51kBuild-doc_TEMPLATE = DOC
     52kBuild-doc_SOURCES := \
     53        $(foreach src,\
     54                $(wildcard \
    4555                        kBuild/doc/*.txt \
    4656                        kBuild/doc/*.html \
    47                         kBuild/msgstyles/* \
    48                         kBuild/templates/*),\
    49                 $(src)=>$(subst kBuild/,,$(src)))
     57                 ),\
     58                $(src)=>$(subst kBuild/doc/,,$(src)))
    5059endif
    5160
    5261#
    5362# And install any binary only tools and dlls.
     63# TODO: Ship env.sh and envos2.cmd / envwin.cmd where applicable.
    5464#
    5565INSTALLS += kBuild_bin
Note: See TracChangeset for help on using the changeset viewer.