Commit feb65f5b authored by Andrew Price's avatar Andrew Price
Browse files

Make 'make JSENGINE=duk' work from the top directory

parent 57847312
Loading
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -2,7 +2,6 @@ SRCROOT = $(CURDIR)
include Makefile.common

build:
	$(MAKE) -C mozjs
	$(MAKE) -C src $@

po:
+3 −1
Original line number Diff line number Diff line
@@ -23,7 +23,9 @@ JSFLAGS = $(JSFLAGS_$(JSENGINE))
LDLIBS+= -lreadline -ltermcap -lcrypt -lsqlite3 -lcurl -lpthread -lcrypto -ljansson -lz -lm
CFLAGS+= -I.. $(JSFLAGS)

build: mw
# Force build order as we need generated mozjs headers to build mw
build: $(JSOBJ)
	$(MAKE) mw

$(JSOBJ):
	$(MAKE) -C $(JSDIR)