]> git.armaanb.net Git - asd-repo.git/blobdiff - extra/m4/build
m4, flex: replace with obsd implementations
[asd-repo.git] / extra / m4 / build
index 206a476a2e4c7e1f7d6b765c99a678a3cd025d37..c88088c167f90ba3d1ef2bdfa349d394422aca5b 100755 (executable)
@@ -1,9 +1,11 @@
-#!/bin/sh -e
+#!/usr/bin/sh -e
 
-export CFLAGS="$CFLAGS -static"
+for i in libopenbsd libz yacc mv m4; do
+    make PREFIX=/usr -C "$i"
+done
 
-./configure \
-    --prefix=/usr
+mkdir -p "$1/usr/share/man" "$1/usr/bin"
 
-make
-make DESTDIR="$1" install
+cd m4
+install -Dm755 m4   "$1/usr/bin/m4"
+install -Dm644 m4.1 "$1/usr/share/man/man1/m4.1"