Skip to content
Permalink
Browse files

A Makefile!

  • Loading branch information...
keith.dart
keith.dart committed May 30, 2011
1 parent 069294b commit e9fad698328de5a43c027c2b96936fb105986c7d
Showing with 42 additions and 0 deletions.
  1. +42 −0 Makefile
@@ -0,0 +1,42 @@
# Makefile to make builds and installation more familiar for some.

PYTHON = python2
SUBPACKAGES_DEV = aid utils core CLI debugger process SMI SNMP storage net audio XML WWW QA vim

.PHONY: build install rpms install_data develop develophome pytags

help:
@echo "Please use \`make <target>' where <target> is one of"
@echo " install to install from this workspace."
@echo " build to just build the packages."
@echo " install_data to install only data files, such as html, css, and javascript."
@echo " rpms to build RPMs on systems that can build RPMs"
@echo " develop to set up global develop mode (imports from this workspace)."
@echo " develophome to set up private devlop mode (in $HOME/.local)."
@echo " squash to squash (flatten) all named sub-packages into single tree."
@echo " pytags to make ctags of python source files."

build:
$(PYTHON) setup.py build

install: build
$(PYTHON) setup.py install

rpms:
$(PYTHON) setup.py rpms

install_data:
$(PYTHON) setup.py install_data core process storage XML WWW QA

develop:
$(PYTHON) setup.py develop

develophome:
$(PYTHON) setup.py develophome

squash:
$(PYTHON) setup.py squash

pytags:
find $(SUBPACKAGES_DEV) -name "*.py" \! -path "*/build/*" \! -path "*/dtds/*"| ctags -L -

0 comments on commit e9fad69

Please sign in to comment.
You can’t perform that action at this time.