Makefile

Tue, 10 Oct 2023 20:34:51 +0200

author
Mike Becker <universe@uap-core.de>
date
Tue, 10 Oct 2023 20:34:51 +0200
changeset 74
ed9a5ffd1f13
parent 73
b383b1b61cbf
permissions
-rw-r--r--

update uwproj (adds support for config.site)

universe@68 1 # Copyright 2018 Mike Becker. All rights reserved.
universe@68 2 #
universe@68 3 # Redistribution and use in source and binary forms, with or without
universe@68 4 # modification, are permitted provided that the following conditions are met:
universe@68 5 #
universe@68 6 # 1. Redistributions of source code must retain the above copyright
universe@68 7 # notice, this list of conditions and the following disclaimer.
universe@68 8 #
universe@68 9 # 2. Redistributions in binary form must reproduce the above copyright
universe@68 10 # notice, this list of conditions and the following disclaimer in the
universe@68 11 # documentation and/or other materials provided with the distribution.
universe@68 12 #
universe@68 13 # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
universe@68 14 # AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
universe@68 15 # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
universe@68 16 # DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
universe@68 17 # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
universe@68 18 # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
universe@68 19 # SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
universe@68 20 # CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
universe@68 21 # OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
universe@68 22 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
universe@68 23
universe@69 24 VERSION=1.4.1
universe@68 25
universe@68 26 all: build config.mk FORCE
universe@73 27 @cd src && $(MAKE) VERSION=$(VERSION)
universe@68 28
universe@69 29 install:
universe@68 30 @cd src && $(MAKE) -s install
universe@68 31
universe@69 32 dist:
universe@71 33 @mkdir -p build/cline
universe@71 34 @cp -R README LICENSE Makefile configure \
universe@71 35 make src test build/cline/
universe@71 36 @cd build; tar -czf cline-$(VERSION).tar.gz -Hustar cline
universe@71 37 @rm -f -R build/cline
universe@71 38 @echo "Dist file created: build/cline-$(VERSION).tar.gz"
universe@69 39
universe@68 40 build:
universe@68 41 @mkdir -p build
universe@68 42
universe@68 43 clean:
universe@68 44 @rm -f -R build
universe@68 45
universe@68 46 config.mk:
universe@68 47 @echo "create config"
universe@68 48 @./configure --release
universe@68 49
universe@68 50 check:
universe@68 51 @cd test && $(MAKE) -s
universe@68 52
universe@68 53 FORCE:

mercurial