#
# This file and its contents are supplied under the terms of the
# Common Development and Distribution License ("CDDL"), version 1.0.
# You may only use this file in accordance with the terms of version
# 1.0 of the CDDL.
#
# A full copy of the text of the CDDL should have accompanied this
# source.  A copy of the CDDL is also available via the Internet at
# http://www.illumos.org/license/CDDL.
#

#
# Copyright 2021 Jim Klimov
# Copyright 2022 Andreas Wacknitz
#
include ../../../make-rules/shared-macros.mk

# Beside the p5m file, there is really nothing to this component which just
# delivers a user and group actions as a common ground for PostgreSQL database servers.
# Version number of this component is not related to PostgreSQL version.
COMPONENT_NAME=				postgres-common
COMPONENT_VERSION=			10
COMPONENT_SUMMARY=			PostgreSQL common version independent files
COMPONENT_FMRI=				database/$(COMPONENT_NAME)
COMPONENT_CLASSIFICATION=	Development/Databases
COMPONENT_LICENSE=			CDDL
COMPONENT_LICENSE_FILE=		cddl.license

TEST_TARGET=	$(NO_TESTS)
include $(WS_MAKE_RULES)/prep-download.mk
include $(WS_MAKE_RULES)/justmake.mk
include $(WS_MAKE_RULES)/ips.mk

PATH=$(PATH.gnu)

download::

$(BUILD_DIR)/.prep: Makefile postgresql-common.p5m
	$(MKDIR) -p "$(@D)"
	$(TOUCH) $@

prep::  $(BUILD_DIR)/.prep

clean::
	$(RM) -r $(BUILD_DIR)

clobber:: clean

build:: $(BUILD_DIR)/.prep

install: $(BUILD_DIR)/.prep

# Auto-generated dependencies