Explorar o código

pythonlib: use .py extension for python files

The tmp file is now directly in the source directory and deleted with make clean.

This should enable autogenerating documentation from setup.py even when GRASS was not compiled. It also contributes to better editing.


git-svn-id: https://svn.osgeo.org/grass/grass/trunk@65345 15284696-431f-4ddb-bdfa-cd5b030d7da7
Vaclav Petras %!s(int64=10) %!d(string=hai) anos
pai
achega
a2c940ea3c
Modificáronse 2 ficheiros con 4 adicións e 2 borrados
  1. 4 2
      lib/python/script/Makefile
  2. 0 0
      lib/python/script/setup.py

+ 4 - 2
lib/python/script/Makefile

@@ -18,10 +18,12 @@ $(DSTDIR):
 $(DSTDIR)/%: % | $(DSTDIR)
 	$(INSTALL_DATA) $< $@
 
-$(DSTDIR)/setup.py: $(OBJDIR)/setup.py | $(DSTDIR)
+EXTRA_CLEAN_FILES = setup.tmp.py
+
+$(DSTDIR)/setup.py: setup.tmp.py | $(DSTDIR)
 	$(INSTALL_DATA) $< $@
 
-$(OBJDIR)/setup.py: setup.py.sed | $(OBJDIR)
+setup.tmp.py: setup.py
 	sed \
 	-e 's#@LD_LIBRARY_PATH_VAR@#$(LD_LIBRARY_PATH_VAR)#' \
 	$< > $@

lib/python/script/setup.py.sed → lib/python/script/setup.py