From aae88cbfd7b35970f8a8aef31aa7fb95101640dd Mon Sep 17 00:00:00 2001 From: Thierry Parmentelat Date: Tue, 9 Jun 2009 14:36:14 +0000 Subject: [PATCH] cosmetic --- Makefile | 29 +++++++++++++++-------------- 1 file changed, 15 insertions(+), 14 deletions(-) diff --git a/Makefile b/Makefile index ea0ad1a1..65c91373 100644 --- a/Makefile +++ b/Makefile @@ -1,16 +1,17 @@ # ## (Re)builds Python metafile (__init__.py) and documentation -# # -# Meta +# overwritten by the specfile DESTDIR="/" -init := geni/__init__.py geni/util/__init__.py geni/methods/__init__.py +init := geni/__init__.py geni/util/__init__.py geni/methods/__init__.py subdirs := keyconvert #pyOpenSSL-0.9 -all: $(init) $(subdirs) +all: install + +install: $(init) $(subdirs) install-python -install: all +install-python: python setup.py install --root=$(DESTDIR) --record=GENI_INSTALLED_FILES $(subdirs): $(init) @@ -20,15 +21,22 @@ $(subdirs): %: clean: python setup.py clean - cd keyconvert && make clean + for i in $(subdirs); do make -C $$i clean ; done index: $(init) index-clean: rm $(init) -.phony: all install force clean index $(subdirs) +.phony: all install install-python force clean index $(subdirs) + +force: + +# are the .java files used ? +tags: + find . -name '*.py' -o -name '*.sh' -o -name '*.ecore' | grep -v '/\.svn/' | xargs etags +########## indexes 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()') > $@ @@ -62,10 +70,3 @@ ifneq ($(util_now), $(util_files)) geni/util/__init__.py: force endif -force: - -.PHONY: all install force clean index tags $(subdirs) - -# are the .java files used ? -tags: - find . -name '*.py' -o -name '*.sh' -o -name '*.ecore' | grep -v '/\.svn/' | xargs etags -- 2.43.0