Jelajahi Sumber

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 10 tahun lalu
induk
melakukan
a2c940ea3c
2 mengubah file dengan 4 tambahan dan 2 penghapusan
  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