]> git.armaanb.net Git - asd-repo.git/blobdiff - extra/m4/build
m4: change source
[asd-repo.git] / extra / m4 / build
index c88088c167f90ba3d1ef2bdfa349d394422aca5b..f8ba4cbedab449559fb0b6540ad8dd61fc4f4df6 100755 (executable)
@@ -1,11 +1,12 @@
-#!/usr/bin/sh -e
+#!/bin/sh -e
 
-for i in libopenbsd libz yacc mv m4; do
-    make PREFIX=/usr -C "$i"
-done
+patch -p1 < m4-hand-written-lexer.patch
 
-mkdir -p "$1/usr/share/man" "$1/usr/bin"
+./configure \
+    --prefix=/usr \
+    --mandir=/usr/share/man \
+    --enable-m4 \
+    --enable-static
 
-cd m4
-install -Dm755 m4   "$1/usr/bin/m4"
-install -Dm644 m4.1 "$1/usr/share/man/man1/m4.1"
+make -B
+make -B DESTDIR="$1" install