universe@68: # Copyright 2018 Mike Becker. All rights reserved. universe@68: # universe@68: # Redistribution and use in source and binary forms, with or without universe@68: # modification, are permitted provided that the following conditions are met: universe@68: # universe@68: # 1. Redistributions of source code must retain the above copyright universe@68: # notice, this list of conditions and the following disclaimer. universe@68: # universe@68: # 2. Redistributions in binary form must reproduce the above copyright universe@68: # notice, this list of conditions and the following disclaimer in the universe@68: # documentation and/or other materials provided with the distribution. universe@68: # universe@68: # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" universe@68: # AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE universe@68: # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE universe@68: # DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE universe@68: # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL universe@68: # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR universe@68: # SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER universe@68: # CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, universe@68: # OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE universe@68: # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. universe@68: universe@69: VERSION=1.4.1 universe@68: universe@68: all: build config.mk FORCE universe@73: @cd src && $(MAKE) VERSION=$(VERSION) universe@68: universe@69: install: universe@68: @cd src && $(MAKE) -s install universe@68: universe@69: dist: universe@71: @mkdir -p build/cline universe@71: @cp -R README LICENSE Makefile configure \ universe@71: make src test build/cline/ universe@71: @cd build; tar -czf cline-$(VERSION).tar.gz -Hustar cline universe@71: @rm -f -R build/cline universe@71: @echo "Dist file created: build/cline-$(VERSION).tar.gz" universe@69: universe@68: build: universe@68: @mkdir -p build universe@68: universe@68: clean: universe@68: @rm -f -R build universe@68: universe@68: config.mk: universe@68: @echo "create config" universe@68: @./configure --release universe@68: universe@68: check: universe@68: @cd test && $(MAKE) -s universe@68: universe@68: FORCE: