Makefile.tcldom   [plain text]


##
# Makefile for tcldom
##
# Daniel A. Steffen <das@users.sourceforge.net>
##

# Project info
Project               = tcldom
ProjectName           = TclDOM
License               = LICENSE

# Fetch info
Release               = 2.6
Url                   = $(UrlBase)/tclxml/$(UrlFile)$(UrlExt)

Extra_Configure_Flags = $(TEA_Configure_Flags)
Extra_Environment     = $(TEA_Environment)
Extra_Install_Flags   = GENERIC_HDRS=

GnuAfterInstall       = strip install-doc fix-config fix-perms -f Makefile.$(Project)

# include TEA Tcl extension build support
include ../TEA.make

TclExtDir             = Tcldom

install-doc:
	$(_v) $(INSTALL_DIRECTORY) "$(DSTROOT)/$(TclExtManDir)"
	$(_v) $(INSTALL_FILE) "$(Sources)"/docs/$(Project).n "$(DSTROOT)/$(TclExtManDir)"

# the tcldomxml subproject is built by a separate Makefile
build install clean almostclean::
	$(_v) $(MAKE) -f Makefile.tcldomxml $@ \
	    Extra_TEA_Configure_Flags="--with-Tcldom=$(OBJROOT)" \
	    AM_CPPFLAGS=-I$(Sources) \
	    OBJROOT="$(OBJROOT)/src-libxml2" DSTROOT="$(DSTROOT)"