Skip to content

Commit 379741f

Browse files
nwellnhofjgm
authored andcommitted
Makefile: Don't depend on $(SPEC)
The spec file is always present.
1 parent 9e99cba commit 379741f

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

Diff for: Makefile

+3-3
Original file line numberDiff line numberDiff line change
@@ -153,11 +153,11 @@ update-spec:
153153
curl 'https://raw.githubusercontent.com/jgm/CommonMark/master/spec.txt'\
154154
> $(SPEC)
155155

156-
test: $(SPEC) cmake_build
156+
test: cmake_build
157157
ctest --test-dir $(BUILDDIR) --output-on-failure || (cat $(BUILDDIR)/Testing/Temporary/LastTest.log && exit 1)
158158

159-
$(ALLTESTS): $(SPEC)
160-
python3 test/spec_tests.py --spec $< --dump-tests | python3 -c 'import json; import sys; tests = json.loads(sys.stdin.read()); print("\n".join([test["markdown"] for test in tests]))' > $@
159+
$(ALLTESTS):
160+
python3 test/spec_tests.py --spec $(SPEC) --dump-tests | python3 -c 'import json; import sys; tests = json.loads(sys.stdin.read()); print("\n".join([test["markdown"] for test in tests]))' > $@
161161

162162
leakcheck: $(ALLTESTS)
163163
for format in html man xml latex commonmark; do \

Diff for: Makefile.nmake

+1-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ SRCDIR=src
22
DATADIR=data
33
BUILDDIR=build
44
INSTALLDIR=windows
5-
SPEC=test/spec.txt
65
PROG=$(BUILDDIR)\src\cmark.exe
76
GENERATOR=NMake Makefiles
87

@@ -21,7 +20,7 @@ install: all
2120
clean:
2221
-rmdir /s /q $(BUILDDIR) $(MINGW_INSTALLDIR) 2> nul
2322

24-
test: $(SPEC) all
23+
test: all
2524
ctest --test-dir $(BUILDDIR) --output-on-failure
2625

2726
distclean: clean

0 commit comments

Comments
 (0)