Skip to content

Commit 108d3d8

Browse files
committed
build-sys: also add installation and dist targets
1 parent 344d520 commit 108d3d8

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

MANIFEST.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@ include systemd/*.h
22
exclude systemd/id128-constants.h
33
include README.md
44
include LICENSE.txt
5+
include Makefile
56
graft docs

Makefile

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,15 @@ systemd/id128-constants.h: $(INCLUDE_DIR)/systemd/sd-messages.h
1919
build: systemd/id128-constants.h
2020
$(PYTHON) setup.py build
2121

22+
install:
23+
$(PYTHON) setup.py install --skip-build $(if $(DESTDIR),--root $(DESTDIR))
24+
25+
dist:
26+
$(PYTHON) setup.py sdist
27+
2228
SPHINXOPTS = -D version=$(VERSION) -D release=$(VERSION)
2329
sphinx-%: build
2430
PYTHONPATH=$(builddir) $(SPHINX_BUILD) -b $* $(SPHINXOPTS) docs build/docs
2531
@echo Output has been generated in build/docs
2632

27-
.PHONY: build
33+
.PHONY: build install dist

0 commit comments

Comments
 (0)