Skip to content

Commit c1c5529

Browse files
committed
build-sys: add utility target to build TAGS
1 parent f83f19b commit c1c5529

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
__pycache__/
22
*.py[co]
33
/journald/*.so
4+
/TAGS
45

56
# Packages
67
*.egg

Makefile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
PYTHON = python
22
SED = sed
33
SPHINX_BUILD = sphinx-build
4+
ETAGS = etags
45
INCLUDE_DIR = /usr/include/
56
VERSION := $(shell $(PYTHON) setup.py --version)
67

@@ -33,4 +34,7 @@ sphinx-%: build
3334
PYTHONPATH=$(builddir) $(SPHINX_BUILD) -b $* $(SPHINXOPTS) docs build/docs
3435
@echo Output has been generated in build/docs
3536

36-
.PHONY: build install dist clean distclean
37+
TAGS: $(shell git ls-files systemd/*.[ch])
38+
$(ETAGS) $+
39+
40+
.PHONY: build install dist clean distclean TAGS

0 commit comments

Comments
 (0)