blob: cac8def7204ee485224e22ff2835e4aca5a182ef [file] [log] [blame]
PREFIX ?= /usr
PYTHON ?= python3
PYTHONLIBDIR ?= $(shell $(PYTHON) -c "from distutils.sysconfig import *; print(get_python_lib(prefix='$(PREFIX)'))")
PACKAGEDIR ?= /$(PYTHONLIBDIR)/sepolgen
all:
install: all
-mkdir -p $(DESTDIR)$(PACKAGEDIR)
install -m 644 *.py $(DESTDIR)$(PACKAGEDIR)
clean:
rm -f parser.out parsetab.py
rm -f *~ *.pyc
rm -rf __pycache__