# -----------------------------------------------------------------------------
-# $Id: Makefile,v 1.1 2001/08/17 12:47:47 simonmar Exp $
+# $Id: Makefile,v 1.6 2005/03/02 16:39:57 ross Exp $
TOP=../..
include $(TOP)/mk/boilerplate.mk
+-include ../config.mk
H_FILES = $(wildcard *.h)
-override datadir:=$(libdir)/include
-INSTALL_DATAS = $(H_FILES)
+includedir = $(libdir)/include
+INSTALL_INCLUDES = $(H_FILES)
-include $(TOP)/mk/target.mk
+ifneq "$(HavePosixRegex)" "YES"
+INSTALL_INCLUDES += ./regex/regex.h
+endif
+
+DIST_CLEAN_FILES += HsBaseConfig.h
+include $(TOP)/mk/target.mk