瀏覽代碼

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 年之前
父節點
當前提交
a2c940ea3c
共有 2 個文件被更改,包括 4 次插入2 次删除
  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