2014-06-17 03:22:06 +02:00
|
|
|
include $(dir $(lastword $(MAKEFILE_LIST)))../header.mk
|
|
|
|
|
|
|
|
DATA_AUTOMATION := \
|
2017-03-30 19:08:30 +02:00
|
|
|
$(sort $(wildcard $(d)autoload/*)) \
|
|
|
|
$(sort $(wildcard $(d)demos/*)) \
|
|
|
|
$(sort $(wildcard $(d)include/*.lua)) \
|
|
|
|
$(sort $(wildcard $(d)include/aegisub/*))
|
2014-06-17 03:22:06 +02:00
|
|
|
|
|
|
|
DATA_AUTOMATION_REL := $(subst $(d),,$(DATA_AUTOMATION))
|
|
|
|
DATA_AUTOMATION_INSTALLED = $(addprefix $(DESTDIR)$(P_DATA)/automation/, $(DATA_AUTOMATION_REL))
|
|
|
|
|
|
|
|
$(DESTDIR)$(P_DATA)/automation/%: $(d)%
|
|
|
|
$(MKDIR_INSTALL)
|
|
|
|
|
|
|
|
aegisub-lua_OBJ := $(d)tests/aegisub.o $(TOP)lib/libaegisub.a $(TOP)lib/libluabins.a $(LIBS_LUA)
|
|
|
|
aegisub-lua_CPPFLAGS := $(CPPFLAGS_BOOST) $(CFLAGS_LUA) -I$(TOP)libaegisub/include -I$(TOP)src $(CXXFLAGS_WX)
|
2016-02-20 19:53:07 +01:00
|
|
|
aegisub-lua_LIBS := $(LIBS_WX) $(LIBS_BOOST) $(LIBS_ICU) $(LIBS_PTHREAD)
|
2014-06-17 03:22:06 +02:00
|
|
|
|
|
|
|
PROGRAM += $(d)aegisub-lua
|
|
|
|
|
|
|
|
test-automation: $(PROGRAM)
|
2015-12-21 04:48:23 +01:00
|
|
|
eval `luarocks path`; cd $(TOP)automation; ./aegisub-lua tests/busted.lua -p 'moon' tests/modules
|
2014-06-17 03:22:06 +02:00
|
|
|
|
|
|
|
test: test-automation
|
|
|
|
|
|
|
|
install: $(DATA_AUTOMATION_INSTALLED)
|
|
|
|
|
|
|
|
include $(TOP)Makefile.target
|