Changeset 2667 for trunk/Config.kmk


Ignore:
Timestamp:
Mar 19, 2006, 3:47:00 AM (19 years ago)
Author:
bird
Message:

packing.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Config.kmk

    r2550 r2667  
     1# $Id: $
     2## @file
     3#
     4# Top-level kBuild configuration.
     5#
     6# Copyright (c) 2006 knut st. osmundsen <bird@anduin.net>
     7#
     8#
     9# This file is part of kNIX.
     10#
     11# kNIX is free software; you can redistribute it and/or modify
     12# it under the terms of the GNU General Public License as published by
     13# the Free Software Foundation; either version 2 of the License, or
     14# (at your option) any later version.
     15#
     16# kNIX is distributed in the hope that it will be useful,
     17# but WITHOUT ANY WARRANTY; without even the implied warranty of
     18# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     19# GNU General Public License for more details.
     20#
     21# You should have received a copy of the GNU General Public License
     22# along with kNIX; if not, write to the Free Software
     23# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
     24#
     25#
    126
     27#
     28# Add the packing pass.
     29#
     30PASSES         += PACKING
     31DEFAULT_PASSES += PACKING
    232
     33#
     34# This is where we install during the build.
     35#
    336PATH_INS := $(PATH_OUT)/dist
    437
     
    81114
    82115
     116#
     117# The default way of packing.
     118# We install to packages/<subdir>, then we zip up what's there.
     119#
     120PACKAGE_ZIP  ?= $(PATH_OUT)/packages/$(CURSUBDIR).zip
     121PATH_PACKAGE ?= $(PATH_OUT)/packages/$(CURSUBDIR)
     122PACKING      ?= defaultpacking
     123defaultpacking:
     124        $(RM) -f "$(PACKAGE_ZIP)"
     125        $(RM) -Rf "$(PATH_PACKAGE)"
     126        $(MAKE) "PATH_INS=$(PATH_PACKAGE)" install
     127        cd "$(PATH_PACKAGE)/" && zip -9r $(PATH_OUT)/packages/$(CURSUBDIR).zip *
     128# todo zip up the source and create a diff.
     129
Note: See TracChangeset for help on using the changeset viewer.