mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
39 lines
1.1 KiB
Makefile
39 lines
1.1 KiB
Makefile
# -*- makefile -*-
|
|
#
|
|
# This Source Code Form is subject to the terms of the Mozilla Public
|
|
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
include $(topsrcdir)/config/rules.mk
|
|
|
|
##################################################
|
|
## Gather a list of tests, generate timestamp deps
|
|
##################################################
|
|
TS=.ts
|
|
ifneq (,$(findstring check,$(MAKECMDGOALS)))
|
|
allsrc = $(wildcard $(srcdir)/*)
|
|
tests2run = $(notdir $(filter %.tpl,$(allsrc)))
|
|
check_targets += $(addprefix $(TS)/,$(tests2run))
|
|
endif
|
|
|
|
check:: $(TS) $(check_targets)
|
|
|
|
#############################################
|
|
# Only invoke tests when sources have changed
|
|
#############################################
|
|
$(TS)/%: $(srcdir)/%
|
|
$(PERL) $(srcdir)/runtest $<
|
|
@touch $@
|
|
|
|
#####################################################
|
|
## Extra dep needed to synchronize parallel execution
|
|
#####################################################
|
|
$(TS): $(TS)/.done
|
|
$(TS)/.done:
|
|
$(MKDIR) -p $(dir $@)
|
|
touch $@
|
|
|
|
GARBAGE_DIRS += $(TS)
|
|
|
|
# EOF
|