#!/bin/bash
set -e

./configure --prefix=/usr \
            --docdir=/usr/share/doc/flex-"${VERSION}" \
            --disable-static

make

make -j1 install
ln -sv flex /usr/bin/lex