23 lines
788 B
Text
23 lines
788 B
Text
--- Makefile.orig 2018-03-17 15:44:40 UTC
|
|
+++ Makefile
|
|
@@ -45,9 +45,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) $(OUT)/mujs $(OUT)/libmujs.a $(OUT)/mujs.pc
|
|
-shared: static $(OUT)/libmujs.so
|
|
+shared: $(OUT) $(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 > $@
|
|
@@ -105,7 +105,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
|