add koji-hub-plugins subpackage

This commit is contained in:
Mike Bonnet 2009-11-10 14:56:05 -05:00
parent ef98c3e398
commit 2571537bb2
3 changed files with 41 additions and 2 deletions

20
plugins/Makefile Normal file
View file

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