Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make make no-op possible #18

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
21 changes: 9 additions & 12 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ build: build/cpp-netlib-0.11.1-final/.unpacked
$(MAKE) -f build.Makefile

build/cpp-netlib-0.11.1-final/.unpacked: cpp-netlib-0.11.1-final.tar.gz
mkdir build > /dev/null 2> /dev/null || true
mkdir -p build
tar -xf $< -C build
touch $@

Expand All @@ -24,7 +24,7 @@ unittest: build
build/cpp/testtaskqueue.bin

check_convention:
pep8 py tests --max-line-length=109
python -m pep8 py tests --max-line-length=109

.PHONY: install_binary
install_binary:
Expand Down Expand Up @@ -59,15 +59,12 @@ uninstall:
sudo rm -f /usr/lib/systemd/system/osmosis.service /etc/init/osmosis.conf
echo "CONSIDER ERASING /var/lib/osmosis"

dist/osmosis-1.0.linux-x86_64.tar.gz:
cd py; python ../setup.py build
cd py; python ../setup.py bdist
cd py; python ../setup.py bdist_egg
rm -fr dict osmosis.egg-info build/pybuild
mv py/dist ./
-mkdir build
mv py/build build/pybuild
mv py/osmosis.egg-info ./
dist/osmosis-1.0.linux-x86_64.tar.gz: setup.py py/*/*.py
python setup.py build
python setup.py bdist
python setup.py bdist_egg

prepareForCleanBuild:
prepareForCleanBuild: centos_cpp_deps

centos_cpp_deps:
sudo yum install boost-static gcc-c++ --assumeyes
13 changes: 12 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,12 @@
write me
# Osmosis

On Centos 7
Install yum requirements
```bash
make centos_cpp_deps
```

Create osmosis python executable
```bash
make
```
8 changes: 6 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,12 @@ def read(fname):
"Osmosis support tools in python"),
keywords="Osmosis rootfs initrd boot",
url="http://packages.python.org/osmosis",
packages=['osmosis', 'osmosis.policy'],
long_description=read('README.md'),
packages=["osmosis", "osmosis.policy"],
package_dir={
"osmosis": "py/osmosis",
"osmosis.policy": "py/osmosis/policy"
},
long_description=read("README.md"),
classifiers=[
"Development Status :: 4 - Beta",
"Topic :: Utilities",
Expand Down