############################################################################
## $Id$

include src/Inventor/Xt/common/Makefile.common

############################################################################

if BUILD_LIBRARY
# Material editor(s) not part of the public API yet, so there's
# no point yet in installing the material data.
#LIBDIRS = data src
LIBDIRS = src
else
LIBDIRS =
endif

if BUILD_HTMLPAGES
HTMLDIR = html
else
HTMLDIR =
endif

SUBDIRS = . $(LIBDIRS) man $(HTMLDIR)
# test-code

############################################################################

BUILT_SOURCES = \
	$(SoGuiAllBuiltFiles)

CLEANFILES = \
	$(SoGui_BuiltMetaFiles)

DISTCLEANFILES = \
	$(SoGui_BuiltFiles) \
	$(SoGui_BuiltMetaFiles) \
	test-code/Makefile \
	test-code/.deps/*.Po

EXTRA_DIST = \
	build/so@gui@.spec.in \
	cfg/soxt.m4 \
	docs/ChangeLog.v1.1.0 \
	docs/ChangeLog.v1.2.0 \
	docs/ChangeLog.v1.2.1 \
	docs/ChangeLog.v1.2.2 \
	docs/ChangeLog.v1.3.0 \
	docs/announcement-1_1_0.txt \
	docs/announcement-1_2_0.txt \
	docs/announcement-1_2_1.txt \
	docs/announcement-1_2_2.txt \
	docs/announcement-1_3_0.txt \
	docs/announcement-1_4_0.txt \
	$(SoGuiCommonDistFiles) \
	test-code/Makefile.am \
	test-code/Makefile.in \
	test-code/button.cpp \
	test-code/coloreditor.cpp \
	test-code/examinerviewer.cpp \
	test-code/initalfullscreen.cpp \
	test-code/initialpos.c \
	test-code/materialeditor.cpp

if BUILD_LIBRARY

acdatadir = $(datadir)/aclocal
# Don't replace "xt" with "@gui@" here, as it will pøkk up
# for ``make dist''.
dist_acdata_DATA = cfg/soxt.m4

cfgdatadir = $(datadir)/Coin/conf
cfgdata_DATA = so@gui@-@CONFIG@.cfg

bin_SCRIPTS = so@gui@-config

endif

pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA= SoXt.pc

built-sources: $(BUILT_SOURCES)
all-local: built-sources

############################################################################
