mirror of
https://github.com/postgrespro/pg_probackup.git
synced 2025-02-03 14:01:57 +02:00
Clean asciidoc.
This commit is contained in:
parent
5ee1aafb89
commit
5b4e5ac480
40
Makefile
40
Makefile
@ -21,19 +21,7 @@ OBJS = backup.o \
|
||||
pgut/pgut.o \
|
||||
pgut/pgut-port.o
|
||||
|
||||
DOCS = doc/pg_arman.txt
|
||||
|
||||
EXTRA_CLEAN = datapagemap.c datapagemap.h xlogreader.c
|
||||
|
||||
# asciidoc and xmlto are present, so install the html documentation and man
|
||||
# pages as well. html is part of the vanilla documentation. Man pages need a
|
||||
# special handling at installation.
|
||||
ifneq ($(ASCIIDOC),)
|
||||
ifneq ($(XMLTO),)
|
||||
man_DOCS = doc/pg_arman.1
|
||||
DOCS += doc/pg_arman.html doc/README.html
|
||||
endif # XMLTO
|
||||
endif # ASCIIDOC
|
||||
EXTRA_CLEAN = datapagemap.c datapagemap.h xlogreader.c receivelog.h streamutil.h
|
||||
|
||||
PG_CPPFLAGS = -I$(libpq_srcdir) ${PTHREAD_CFLAGS}
|
||||
override CPPFLAGS := -DFRONTEND $(CPPFLAGS)
|
||||
@ -74,29 +62,3 @@ PG_CONFIG = pg_config
|
||||
PGXS := $(shell $(PG_CONFIG) --pgxs)
|
||||
include $(PGXS)
|
||||
|
||||
# Part related to documentation
|
||||
# Compile documentation as well is ASCIIDOC and XMLTO are defined
|
||||
ifneq ($(ASCIIDOC),)
|
||||
ifneq ($(XMLTO),)
|
||||
docs:
|
||||
$(MAKE) -C doc/
|
||||
|
||||
# Special handling for man pages, they need to be in a dedicated folder
|
||||
install: install-man
|
||||
|
||||
install-man:
|
||||
$(MKDIR_P) '$(DESTDIR)$(mandir)/man1/'
|
||||
$(INSTALL_DATA) $(man_DOCS) '$(DESTDIR)$(mandir)/man1/'
|
||||
else
|
||||
docs:
|
||||
@echo "No docs to build"
|
||||
endif # XMLTO
|
||||
else
|
||||
docs:
|
||||
@echo "No docs to build"
|
||||
endif # ASCIIDOC
|
||||
|
||||
# Clean up documentation as well
|
||||
clean: clean-docs
|
||||
clean-docs:
|
||||
$(MAKE) -C doc/ clean
|
||||
|
Loading…
x
Reference in New Issue
Block a user