Procházet zdrojové kódy

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 před 10 roky
rodič
revize
a2c940ea3c
2 změnil soubory, kde provedl 4 přidání a 2 odebrání
  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