Fri, 29 Sep 2023 20:07:20 +0200
add new dist target
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@69 | 27 | @cd src && $(MAKE) -s 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@69 | 33 | tar -czf cline-$(VERSION).tar.gz -Hustar \ |
universe@69 | 34 | README LICENSE Makefile configure make src test |
universe@69 | 35 | |
universe@68 | 36 | build: |
universe@68 | 37 | @mkdir -p build |
universe@68 | 38 | |
universe@68 | 39 | clean: |
universe@68 | 40 | @rm -f -R build |
universe@68 | 41 | |
universe@68 | 42 | config.mk: |
universe@68 | 43 | @echo "create config" |
universe@68 | 44 | @./configure --release |
universe@68 | 45 | |
universe@68 | 46 | check: |
universe@68 | 47 | @cd test && $(MAKE) -s |
universe@68 | 48 | |
universe@68 | 49 | FORCE: |