XCOMM $XFree86: xc/programs/xcursorgen/Imakefile,v 1.7 2002/12/23 11:05:23 herrb Exp $
#define IHaveSubdirs
#define PassCDebugFlags CDEBUGFLAGS="$(CDEBUGFLAGS)"

        SUBDIRS = redglass whiteglass handhelds
  DEFAULT_THEME = DefaultCursorTheme
        ICONDIR = $(LIBDIR)/icons
       THEMEDIR = $(ICONDIR)/default
       INCLUDES = $(LIBPNGINC)
        DEPLIBS = $(DEPXLIB)
LOCAL_LIBRARIES = $(XCURSORLIB) $(XRENDERLIB) $(XLIB) $(LIBPNGLIB) \
		  MathLibrary GzipLibrary
           SRCS = xcursorgen.c
           OBJS = xcursorgen.o

ComplexProgramTarget(xcursorgen)
LinkBuildBinary(ProgramTargetName(xcursorgen))

MakeSubdirs($(SUBDIRS))
DependSubdirs($(SUBDIRS))

/*
 * Create an index.theme file that references the
 * default theme
 */

all:: index.theme

index.theme:: Imakefile
	echo '[Icon Theme]' > index.theme
	echo 'Inherits=$(DEFAULT_THEME)' >> index.theme

clean::
	$(RM) index.theme

InstallTarget(install,index.theme,$(INSTDATAFLAGS),$(THEMEDIR))

