1 INSTALL=install 2 3 prefix ?= /usr 4 bindir ?= $(prefix)/bin 5 mandir ?= $(prefix)/share/man 6 miscdir ?= $(prefix)/share/dot2 7 srcdir ?= $(prefix)/src 8 9 PYLIB ?= $(shell python3 -c 'import sysconfig; print (sysconfig.get_path("purelib"))') 10 11 .PHONY: all 12 all: 13 14 .PHONY: clean 15 clean: 16 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)/ 24 25 mkdir -p ${miscdir}/ 26 cp -rp dot2k_templates $(DESTDIR)$(miscdir)/
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.