Skip to content

Commit

Permalink
Merge pull request #15 from ericsonj/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
ericsonj authored Mar 28, 2021
2 parents 7eaece2 + ddb1f44 commit 790e3f1
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 4 deletions.
28 changes: 27 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,33 @@
**pymaketool** is an elegant and simple tool to build and manager large C/C++ projects and libraries.
The main purpose is to ease the build process of a project using Python for find and organize file sources.

<img src="images/makefile_pyfile.jpg" alt="Kitten" title="makefile vs pymaketool" width="500" />
<img src="https://github.com/ericsonj/pymaketool/raw/master/images/makefile_pyfile.jpg" alt="" title="makefile vs pymaketool" width="500" />

## Quick Start

Install required packages:

### Ubuntu
```bash
$ sudo apt-get install -y gcc make python3 python3-pip python3-gi python3-gi-cairo gir1.2-gtk-3.0 git time zip
```

### Fedora
```bash
$ sudo dnf install python3 python3-pip python3-gobject gtk3 time zip git gcc
```

### Arch Linux
```bash
$ sudo pacman -S gcc make python python-pip python-gobject gtk3 time zip git
```

Install pymaketool:
```bash
$ pip3 install pymaketool
```

## Quick Info

**pymaketool** process modules of code like objects. These objects ware define by files **_mk.py*. With Python you can code how to discover and get source files and include paths, e.g.:

Expand Down
5 changes: 2 additions & 3 deletions scripts/pynewproject
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ for p in pkgs:

parser = argparse.ArgumentParser()
parser.add_argument('project', help="Project key", nargs='*')
parser.add_argument('-l', '--list', action='store_true', help="list projects availables")
parser.add_argument('-l', '--list', action='store_true', help="List projects availables")
parser.add_argument('-v', '--version', action='version', version='%(prog)s 1.0.0')
args = parser.parse_args()

Expand All @@ -103,8 +103,7 @@ if args.project:
try:
if args.project[0] == obj.__class__.__name__:
log.debug("run exec_generator")
options = ' '.join(args.project[1:])
obj.exec_generator(args=shlex.split(options))
obj.exec_generator(args=sys.argv[1:]) ## TODO: Check here
exit(0)
except Exception as ex:
log.error(ex)
Expand Down

0 comments on commit 790e3f1

Please sign in to comment.