diff --git a/Makefile b/Makefile new file mode 100644 index 00000000..8a20a852 --- /dev/null +++ b/Makefile @@ -0,0 +1,14 @@ +# Makefile for lorax + +PYTHON ?= /usr/bin/python +DESTDIR ?= / + +all: + $(PYTHON) setup.py build + +install: + $(PYTHON) setup.py install --root $(DESTDIR) + +clean: + -rm -rf build + -git clean -d -x -f diff --git a/setup.py b/setup.py index 73e91f1a..619b6bb7 100644 --- a/setup.py +++ b/setup.py @@ -1,15 +1,15 @@ -import distutils +from distutils.core import setup import glob -distutils.core.setup(name='lorax', - version='0.1', - description='Boot image build tool', - author='David Cantrell', - author_email='dcantrell@redhat.com', - license='GPLv2+', - package_dir = {'': 'src'}, - packages = ['pylorax'], - scripts = ['src/bin/lorax.py'], - data_files = [('/usr/share/lorax', glob.glob('share/*'), - ('/etc/lorax', glob.glob('etc/*')] - ) +setup(name='lorax', + version='0.1', + description='Boot image build tool', + author='David Cantrell', + author_email='dcantrell@redhat.com', + license='GPLv2+', + package_dir = {'': 'src'}, + packages = ['pylorax'], + scripts = ['src/bin/lorax.py'], + data_files = [('/usr/share/lorax', glob.glob('share/*')), + ('/etc/lorax', glob.glob('etc/*'))] + )