/***************************************************************************
 * Shell function directory
 *
 * If you use bourn shell or its cousines, define the directory
 * to install function collection file FvwmCommand.sh.  Your home
 * directory or autoload directory may be a good choice.
 *
 * If you use C shell or do not want to install FvwmCommand.sh
 * undefine it
 * 
 ***************************************************************************/
#define SHELLFUNCDIR $(FVWMDIR) 

/***************************************************************************
 * PERLLIBDIR
 *
 * If you have perl, define the perl lib (private or system) directory
 * to install function collection file FvwmCommand.pm.
 *
 * If you don't have perl or don't want to install FvwmCommand.pm
 * leave it undefined.
 *
 ***************************************************************************/
#define PERLLIBDIR /usr/lib/perl5 






BINDIR = $(FVWMDIR)
FVWM_SRCDIR = ../.. 
#include "../../Fvwm.tmpl"

DESTDIR = 

LOCAL_LIBRARIES = $(FVWM_LIBS) $(XLIB)

PROGRAMS = FvwmCommandS FvwmCommand 
CCOPTIONS = -Wall

SRCS1 = FvwmCommand.c FvwmCommand.h
OBJS1 = FvwmCommand.o 

ComplexProgramTarget_1(FvwmCommand,$(LOCAL_LIBRARIES),)

SRCS2 = FvwmCommandS.c FvwmCommand.h
OBJS2 = FvwmCommandS.o 

NormalProgramTarget(FvwmCommandS,$(OBJS2),,$(LOCAL_LIBRARIES),)
InstallProgram(FvwmCommandS,$(FVWMDIR))

all:: 
	/bin/sh findcmd $(FVWMDIR)
	if which perl ; then perl findcmd.pl $(FVWMDIR) ; fi                   

#ifdef SHELLFUNCDIR
install::
	$(INSTALL) $(INSTALLFLAGS) $(INSTBINFLAGS) FvwmCommand.sh SHELLFUNCDIR

clean::
	$(RM) FvwmCommand.sh
#endif

#ifdef PERLLIBDIR
install:: 
	$(INSTALL) $(INSTALLFLAGS) $(INSTBINFLAGS) FvwmCommand.pm PERLLIBDIR

clean::
	$(RM) FvwmCommand.pm
#endif
