debian-koji/koji/ssl/Makefile
2007-03-20 16:59:58 -04:00

21 lines
396 B
Makefile

FILES = $(wildcard *.py)
PYTHON=python
_default:
@echo "nothing to make. try make install"
clean:
rm -f *.o *.so *.pyc *~
install:
@if [ "$(DESTDIR)" = "" ]; then \
echo " "; \
echo "ERROR: A destdir is required"; \
exit 1; \
fi
mkdir -p $(DESTDIR)
install -p -m 644 $(FILES) $(DESTDIR)
$(PYTHON) -c "import compileall; compileall.compile_dir('$(DESTDIR)', 1, '$(PYDIR)', 1)"