Added clean task for Windows

This commit is contained in:
Andrew Kane
2022-12-23 09:02:15 -08:00
parent 3f3ba5b8e7
commit e2f33dfdba
3 changed files with 12 additions and 1 deletions

View File

@@ -57,4 +57,5 @@ jobs:
nmake /NOLOGO /F Makefile.win
nmake /NOLOGO /F Makefile.win install
nmake /NOLOGO /F Makefile.win installcheck
nmake /NOLOGO /F Makefile.win clean
shell: cmd

4
.gitignore vendored
View File

@@ -6,3 +6,7 @@ regression.*
*.o
*.so
*.bc
*.dll
*.obj
*.lib
*.exp

View File

@@ -35,7 +35,7 @@ CFLAGS = /nologo /I"$(INCLUDEDIR_SERVER)\port\win32_msvc" /I"$(INCLUDEDIR_SERVER
CFLAGS = $(CFLAGS) $(PG_CFLAGS)
SHLIB = src\$(EXTENSION).dll
SHLIB = $(EXTENSION).dll
LIBS = "$(LIBDIR)\postgres.lib"
@@ -54,3 +54,9 @@ install:
installcheck:
"$(BINDIR)\pg_regress" --bindir="$(BINDIR)" $(REGRESS_OPTS) $(REGRESS)
clean:
rm -f $(SHLIB) $(EXTENSION).lib $(EXTENSION).exp
rm -f $(OBJS)
rm -rf sql\$(EXTENSION)--$(EXTVERSION).sql
rm -rf results regression.diffs regression.out tmp_check tmp_check_iso log output_iso