prepare: wget -O flex.tar.gz https://github.com/westes/flex/releases/download/v2.6.4/flex-2.6.4.tar.gz tar -xf flex.tar.gz cd flex $(MAKE): @./configure \ --prefix=/usr \ ac_cv_func_malloc_0_nonnull=yes \ ac_cv_func_realloc_0_nonnull=yes $(MAKE) install: $(MAKE) install DESTDIR="${PREFIX}" ln -s flex "$1/usr/bin/lex" uninstall: $(MAKE) uninstall