aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile8
1 files changed, 5 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 146b5e3c2..c708db5a1 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,4 @@
-V ?= 0
+V ?= 0
SRC_DIR = src
TEST_DIR = test
@@ -96,8 +96,10 @@ min: ${JQ_MIN}
${JQ_MIN}: ${JQ}
@@echo "Building" ${JQ_MIN}
- @@${COMPILER} ${JQ} > ${JQ_MIN}
- @@sed -i '$ s#^\( \*/\)\(.\+\)#\1\n\2;#' ${JQ_MIN}
+ @@${COMPILER} ${JQ} > ${JQ_MIN}.tmp
+ @@echo ";" >> ${JQ_MIN}.tmp
+ @@sed 's/\*\/(/*\/ʩ(/' ${JQ_MIN}.tmp | tr "ʩ" "\n" > ${JQ_MIN}
+ @@rm -rf ${JQ_MIN}.tmp
clean:
@@echo "Removing Distribution directory:" ${DIST_DIR}