package up the files in koji/ssl as well

This commit is contained in:
Mike Bonnet 2007-03-20 16:59:58 -04:00
parent edc5ee08e4
commit 3632182163
2 changed files with 27 additions and 0 deletions

View file

@ -1,3 +1,5 @@
SUBDIRS = ssl
PYTHON=python
PACKAGE = $(shell basename `pwd`)
PYFILES = $(wildcard *.py)
@ -12,6 +14,7 @@ _default:
clean:
rm -f *.o *.so *.pyc *~
for d in $(SUBDIRS); do make -s -C $$d clean; done
install:
mkdir -p $(DESTDIR)/$(PKGDIR)
@ -22,3 +25,6 @@ install:
chmod 0755 $(DESTDIR)/$(PKGDIR)/$$p; \
done
$(PYTHON) -c "import compileall; compileall.compile_dir('$(DESTDIR)/$(PKGDIR)', 1, '$(PYDIR)', 1)"
for d in $(SUBDIRS); do make DESTDIR=$(DESTDIR)/$(PKGDIR)/$$d \
-C $$d install; [ $$? = 0 ] || exit 1; done

21
koji/ssl/Makefile Normal file
View file

@ -0,0 +1,21 @@
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)"