2021-06-30 00:54:32 +03:00
|
|
|
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
|
2021-07-01 06:03:43 +03:00
|
|
|
$(MAKE):
|
2021-06-30 00:54:32 +03:00
|
|
|
@./configure \
|
|
|
|
--prefix=/usr \
|
|
|
|
ac_cv_func_malloc_0_nonnull=yes \
|
|
|
|
ac_cv_func_realloc_0_nonnull=yes
|
2021-06-30 01:08:42 +03:00
|
|
|
|
2021-07-01 06:03:43 +03:00
|
|
|
$(MAKE)
|
2021-06-30 00:54:32 +03:00
|
|
|
install:
|
2021-07-01 06:03:43 +03:00
|
|
|
$(MAKE) install DESTDIR="${PREFIX}"
|
2021-06-30 00:54:32 +03:00
|
|
|
ln -s flex "$1/usr/bin/lex"
|
|
|
|
uninstall:
|
2021-07-01 06:03:43 +03:00
|
|
|
$(MAKE) uninstall
|