# file: src/common/etc/openssl/openssl/Makefile
#
#  2001 OpenCA Group

TOP	= ../../../../..
include $(TOP)/Makefile.global-vars

DEST_CONFOPENSSLOPENSSLDIR	= ${etc_prefix}/openssl/openssl

AC_FILES	= \
	CA_Operator.conf	\
	Cross_CA.conf		\
	Mail_Server.conf	\
	RA_Operator.conf	\
	Sub-CA.conf		\
	User.conf		\
	VPN_Server.conf		\
	Web_Server.conf

DEST_FILES	= $(AC_FILES:%=$(DEST_CONFOPENSSLOPENSSLDIR)/%)

#---- variable settings above, rules below ----

.PHONY:	default install-conf clean distclean

default::

install-conf::	$(DEST_FILES)

$(DEST_FILES)::
	$(INSTALL) -g ${httpd_group} -o ${httpd_user} -m 644 $(@:$(DEST_CONFOPENSSLOPENSSLDIR)/%=%) $@

distclean::
		$(RM) $(AC_FILES)
