opnsense-ports/lang/mujs/files/patch-Makefile
Franco Fichtner 476fd92714 */*: sync with upstream
Taken from: HardenedBSD
2018-08-11 10:19:35 +02:00

23 lines
789 B
Text

--- Makefile.orig 2018-07-30 13:35:39 UTC
+++ Makefile
@@ -49,9 +49,9 @@ OUT := build/$(build)
SRCS := $(wildcard js*.c utf*.c regexp.c)
HDRS := $(wildcard js*.h mujs.h utf.h regexp.h)
-default: static
+default: shared
static: $(OUT)/mujs-pp $(OUT)/mujs $(OUT)/libmujs.a $(OUT)/mujs.pc
-shared: static $(OUT)/libmujs.so
+shared: $(OUT)/mujs $(OUT)/libmujs.so $(OUT)/mujs.pc
astnames.h: jsparse.h
grep -E '(AST|EXP|STM)_' jsparse.h | sed 's/^[^A-Z]*\(AST_\)*/"/;s/,.*/",/' | tr A-Z a-z > $@
@@ -115,7 +115,7 @@ install-static: install-common
install-shared: install-common
install -m 755 build/release/libmujs.so $(DESTDIR)$(libdir)
-install: install-static
+install: install-shared
tarball:
git archive --format=zip --prefix=mujs-$(VERSION)/ HEAD > mujs-$(VERSION).zip