diff options
author | Michal Minar <miminar@redhat.com> | 2014-02-26 13:44:05 +0100 |
---|---|---|
committer | Michal Minar <miminar@redhat.com> | 2014-03-17 12:25:52 +0100 |
commit | c322f0f820e937861a043d9c8cf4df454edbca2e (patch) | |
tree | c90770674c0fdabfa9bec3d661e23930c34efa0c /Makefile | |
parent | 79b1b0e1935f068517acad9fb36647a6e5879f53 (diff) | |
download | openlmi-scripts-c322f0f820e937861a043d9c8cf4df454edbca2e.tar.gz openlmi-scripts-c322f0f820e937861a043d9c8cf4df454edbca2e.tar.xz openlmi-scripts-c322f0f820e937861a043d9c8cf4df454edbca2e.zip |
unified script versions
All scripts have the same version which is set in single file (VERSION).
All setup.py and conf.py scripts containing these version numbers were
renamed to *.skel. These skeletons are then read by makefiles and proper
*.py scripts are generated out of them.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 33 |
1 files changed, 11 insertions, 22 deletions
@@ -1,25 +1,14 @@ -PYTHONPATH?=$(HOME)/workspace/python_sandbox -DEVELOPDIR?=$(shell echo $(PYTHONPATH) | cut -d : -f 1) +include Makefile.inc -.PHONY: readme sdist develop upload_docs clean all +COMMANDS ?= $(shell find commands -mindepth 1 -maxdepth 1 -type d) +# all rules executable on meta-command and commands +RULES := setup upload upload_docs clean +MASSRULES := $(foreach rule,$(RULES),$(rule)-all) -all: sdist +.PHONY: $(MASSRULES) -sdist: - python setup.py sdist - -develop: - python setup.py develop --install-dir=$(DEVELOPDIR) - -readme: README.txt - -%.txt: %.md - pandoc --from=markdown --to=rst -o $@ $? - -upload_docs: - make -C doc html - python setup.py upload_docs - -clean: - -rm README.txt - make -C doc clean +$(MASSRULES): %-all: % + # executes rule for metacommand and for all commands found + for cmd in $(COMMANDS); do \ + make -C $$cmd $*; \ + done |