Merge tag 'trace-printf-v6.13' of git://git.kernel.org/pub/scm/linux/kernel/git/trace...
[drm/drm-misc.git] / tools / verification / dot2 / Makefile
blob021beb07a5213acc4e66adea94a0442b6620d32c
1 INSTALL=install
3 prefix ?= /usr
4 bindir ?= $(prefix)/bin
5 mandir ?= $(prefix)/share/man
6 miscdir ?= $(prefix)/share/dot2
7 srcdir ?= $(prefix)/src
9 PYLIB ?= $(shell python3 -c 'import sysconfig; print (sysconfig.get_path("purelib"))')
11 .PHONY: all
12 all:
14 .PHONY: clean
15 clean:
17 .PHONY: install
18 install:
19 $(INSTALL) automata.py -D -m 644 $(DESTDIR)$(PYLIB)/dot2/automata.py
20 $(INSTALL) dot2c.py -D -m 644 $(DESTDIR)$(PYLIB)/dot2/dot2c.py
21 $(INSTALL) dot2c -D -m 755 $(DESTDIR)$(bindir)/
22 $(INSTALL) dot2k.py -D -m 644 $(DESTDIR)$(PYLIB)/dot2/dot2k.py
23 $(INSTALL) dot2k -D -m 755 $(DESTDIR)$(bindir)/
25 mkdir -p ${miscdir}/
26 cp -rp dot2k_templates $(DESTDIR)$(miscdir)/