# $Id: Makefile,v 1.3 2005/03/23 12:34:27 edg Exp $
SHELL=/bin/sh
#
# Makefile for NEdit text editor
#
# Targets are the suffixes of the system-specific makefiles in
# the makefiles/ directory.
# For example, to build NEdit for Solaris, give the command
#
# make solaris
#
# This builds an intermediate library in the util/ directory,
# then builds the nedit and nc executables in the source/ directory.
#
all:
@echo "Please specify target:"
@echo "(For example, type \"make linux\" for a Linux system.)"
@(cd ../makefiles && ls -C Makefile* | sed -e 's/Makefile.//g')
.DEFAULT:
@- (cd XmL; if [ -f ../../makefiles/Makefile.$@ -a ! -f ./Makefile.$@ ];\
then ln -s ../../makefiles/Makefile.$@ .; fi)
@- (cd XmL; $(MAKE) -f Makefile.$@ libXmL.a)
clean:
@- (cd XmL; $(MAKE) -f Makefile.common clean)