From bc09bf4498ebf7c386504b41f757001c67da4b19 Mon Sep 17 00:00:00 2001 From: Thierry Parmentelat Date: Tue, 16 Jun 2009 12:26:16 +0000 Subject: [PATCH] cleanup --- Makefile | 49 +++++++++++++++++++++++++++++++------------------ 1 file changed, 31 insertions(+), 18 deletions(-) diff --git a/Makefile b/Makefile index 5fddce6f..39b9fd79 100644 --- a/Makefile +++ b/Makefile @@ -4,41 +4,52 @@ # overwritten by the specfile DESTDIR="/" -init := geni/__init__.py geni/util/__init__.py geni/methods/__init__.py -subdirs := keyconvert #pyOpenSSL-0.9 +########## +all: keyconvert python -all: install +install: keyconvert-install python-install -install: $(init) $(subdirs) install-python +clean: keyconvert-clean key-convert-python -install-python: - python setup.py install --root=$(DESTDIR) --record=GENI_INSTALLED_FILES +.PHONY: all install clean -$(subdirs): $(init) +########## +keyconvert: + $(MAKE) -C keyconvert -$(subdirs): %: - $(MAKE) -C $@ +keyconvert-install: + $(MAKE) -C keyconvert install -clean: - python setup.py clean - for i in $(subdirs); do make -C $$i clean ; done +keyconvert-clean: + $(MAKE) -C keyconvert clean -index: $(init) +.PHONY: keyconvert keyconvert-install keyconvert-clean -index-clean: - rm $(init) +########## +python: $(init) -.phony: all install install-python force clean index $(subdirs) +python-install: + python setup.py install --root=$(DESTDIR) --record=GENI_INSTALLED_FILES -force: +python-clean: + python setup.py clean + rm $(init) + +.PHONY: python python-install python-clean +########## # are the .java files used ? tags: find . -name '*.py' -o -name '*.sh' -o -name '*.ecore' | grep -v '/\.svn/' | xargs etags - +.PHONY: tags ########## indexes +init := geni/__init__.py geni/util/__init__.py geni/methods/__init__.py + +force: +.PHONY: force + geni/__init__.py: (echo '## Please use make index to update this file' ; echo 'all = """' ; cd geni; ls -1 *.py | grep -v __init__ | sed -e 's,.py$$,,' ; echo '""".split()') > $@ @@ -106,3 +117,5 @@ else +$(RSYNC) geni-config-tty $(SSHURL)/usr/bin endif +.PHONY: sync +########## -- 2.43.0