mirror of
https://github.com/yweber/lodel2.git
synced 2026-04-26 18:40:56 +02:00
Add -f option to rm in Makefiles and changes 2 properties names in generated code
This commit is contained in:
parent
0cfd0b7f7b
commit
e44dbcbad8
3 changed files with 8 additions and 8 deletions
6
Makefile
6
Makefile
|
|
@ -12,10 +12,10 @@ pip: cleanpycache
|
|||
.PHONY: check doc clean cleanpyc cleandoc cleanpycache
|
||||
|
||||
cleandoc:
|
||||
-rm -Rv ./doc/
|
||||
-rm -Rfv ./doc/
|
||||
cleanpyc:
|
||||
-find ./ |grep -E "\.pyc$$" |xargs rm -v 2>/dev/null
|
||||
-find ./ |grep -E "\.pyc$$" |xargs rm -fv 2>/dev/null
|
||||
cleanpycache: cleanpyc
|
||||
-find ./ -type d |grep '__pycache__' | xargs rmdir -v 2>/dev/null
|
||||
-find ./ -type d |grep '__pycache__' | xargs rmdir -fv 2>/dev/null
|
||||
|
||||
clean: cleanpyc cleandoc cleanpycache
|
||||
|
|
|
|||
|
|
@ -9,12 +9,12 @@ dbinit:
|
|||
.PHONY: clean cleanpycache cleanpyc refreshdyn distclean
|
||||
|
||||
distclean: clean
|
||||
-@rm dynleapi.py
|
||||
-@rm -vf dynleapi.py
|
||||
|
||||
clean: cleanpycache
|
||||
|
||||
cleanpyc:
|
||||
-@rm -v *.pyc
|
||||
-@rm -vf *.pyc
|
||||
|
||||
cleanpycache: cleanpyc
|
||||
-@rm -vR __pycache__
|
||||
-@rm -vfR __pycache__
|
||||
|
|
|
|||
|
|
@ -244,8 +244,8 @@ class LeObject(LeCrud, leapi.leobject._LeObject):
|
|||
class LeRelation(LeCrud, leapi.lerelation._LeRelation):
|
||||
_uid_fieldtype = {lerel_uid_fieldtype}
|
||||
_rel_fieldtypes = {lerel_fieldtypes}
|
||||
_lesup_name = {lesup_name}
|
||||
_lesub_name = {lesub_name}
|
||||
_superior_fieldname = {lesup_name}
|
||||
_subordinate_fieldname = {lesub_name}
|
||||
|
||||
class LeHierarch(LeRelation, leapi.lerelation._LeHierarch):
|
||||
pass
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue