GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - benfogle/python-gnumake: Python integration into GNU make

BranchesTags
Open more actions menu

Latest commit

 

History

32 Commits
32 Commits

Folders and files

NameName
Last commit message
Last commit date
doc
doc
 
 
examples
examples
 
 
python/gnumake
python/gnumake
 
 
src
src
 
 
testing
testing
 
 
.gitignore
.gitignore
 
 
README.md
README.md
 
 
load-python.mk
load-python.mk
 
 
setup.py
setup.py
 
 

Repository files navigation

Py-gnumake

Please see the main documentation. This file is a brief summary of how to use Py-gnumake in your builds.

Overview

Py-gnumake is the unholy union of Python and makefiles. It is a GNU make plugin that lets you write portions of your makefiles in Python. Python code run through Py-gnumake has access to makefile variables, functions, and etc., just like regular makefile code.

Requirements

This module requires GNU make >= 4.0 and currently only supports Python 3.3 or greater. It has currently been tested on Ubuntu Linux only.

Using Py-gnumake from within your source tree

First clone the git repo somewhere in your source tree. (Git submodules work nicely for this.) In the Py-gnumake directory you will find the makefile load-python.mk. To use Py-gnumake, simply add the following to your makefile:

include path/to/load-python.mk

This will build Py-gnumake if necessary, and then load it into your makefile. (Including this file multiple times is benign.)

Using Py-gnumake as a Python module

Install Py-gnumake from PYPI, or build it from source. Then add the following to your makefile:

$(eval $(shell python3 -m gnumake))

(Note that while you can import gnumake into any Python script when it is installed in this manner, this module is completely nonfunctional unless invoked from a makefile.)

About

Python integration into GNU make

Resources

Readme
Activity

Stars

3 stars

Watchers

1 watching

Forks

2 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.