Skip to content

Commit 40e08de

Browse files
committed
build-sys: add clean targets
1 parent 71d8261 commit 40e08de

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

Makefile

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,15 @@ install:
2525
dist:
2626
$(PYTHON) setup.py sdist
2727

28+
clean:
29+
rm -rf build systemd/*.so systemd/*.py[co] *.py[co] systemd/__pycache__
30+
31+
distclean: clean
32+
rm -rf dist MANIFEST systemd/id128-constants.h
33+
2834
SPHINXOPTS = -D version=$(VERSION) -D release=$(VERSION)
2935
sphinx-%: build
3036
PYTHONPATH=$(builddir) $(SPHINX_BUILD) -b $* $(SPHINXOPTS) docs build/docs
3137
@echo Output has been generated in build/docs
3238

33-
.PHONY: build install dist
39+
.PHONY: build install dist clean distclean

0 commit comments

Comments
 (0)