Skip to content

Commit f13a571

Browse files
committed
build-sys: call setup.py from make
1 parent e706969 commit f13a571

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

Makefile

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,17 @@ endef
1111

1212
builddir := $(shell $(PYTHON) -c '$(buildscript)')
1313

14+
all: build
15+
1416
systemd/id128-constants.h: $(INCLUDE_DIR)/systemd/sd-messages.h
1517
$(SED) -n -r 's/,//g; s/#define (SD_MESSAGE_[A-Z0-9_]+)\s.*/add_id(m, "\1", \1) JOINER/p' <$< >$@
1618

19+
build: systemd/id128-constants.h
20+
$(PYTHON) setup.py build
21+
1722
SPHINXOPTS = -D version=$(VERSION) -D release=$(VERSION)
18-
sphinx-%:
23+
sphinx-%: build
1924
PYTHONPATH=$(builddir) $(SPHINX_BUILD) -b $* $(SPHINXOPTS) docs build/docs
2025
@echo Output has been generated in build/docs
26+
27+
.PHONY: build

0 commit comments

Comments
 (0)