Add indent target to makefiel

This commit is contained in:
Artem Gavrilov
2024-07-17 17:28:34 +02:00
parent 7e11cf6154
commit f4d4e5a221
3 changed files with 34 additions and 0 deletions

View File

@@ -30,3 +30,12 @@ top_builddir = ../..
include $(top_builddir)/src/Makefile.global
include $(top_srcdir)/contrib/contrib-global.mk
endif
update-typedefs:
wget -q -O - "https://buildfarm.postgresql.org/cgi-bin/typedefs.pl?branch=REL_16_STABLE" | cat - typedefs.list | sort | uniq > typedefs-full.list
indent:
pgindent --typedefs=typedefs-full.list .
.PHONY: update-typedefs indent