We create these artifacts when running the test suite, so should remove
them when running the clean target.
Reported-by: Lucas Nussbaum <lucas@debian.org>
Signed-off-by: Guillem Jover <guillem@hadrons.org>
Gbp-Pq: Name 0004-build-Remove-all-test-artifacts-on-clean.patch
$(CC) $(MK_CPPFLAGS) $(MK_CFLAGS) -DTEST_NAME=\"$<\" -o $@ $(MK_LDFLAGS)
clean:
- rm -f $(PROGS) *.o runtests.out rofile wofile rwfile
+ rm -f $(PROGS) *.o runtests.out tempfile testfile
+ rm -f testdir/rofile testdir/wofile testdir/rwfile
+ rmdir testdir || true
.PHONY: