UNIXworkcode

1 # $Id: Makefile,v 1.3 2005/03/23 12:34:27 edg Exp $ 2 SHELL=/bin/sh 3 # 4 # Makefile for NEdit text editor 5 # 6 # Targets are the suffixes of the system-specific makefiles in 7 # the makefiles/ directory. 8 # For example, to build NEdit for Solaris, give the command 9 # 10 # make solaris 11 # 12 # This builds an intermediate library in the util/ directory, 13 # then builds the nedit and nc executables in the source/ directory. 14 # 15 16 all: 17 @echo "Please specify target:" 18 @echo "(For example, type \"make linux\" for a Linux system.)" 19 @(cd ../makefiles && ls -C Makefile* | sed -e 's/Makefile.//g') 20 21 .DEFAULT: 22 @- (cd XmL; if [ -f ../../makefiles/Makefile.$@ -a ! -f ./Makefile.$@ ];\ 23 then ln -s ../../makefiles/Makefile.$@ .; fi) 24 @- (cd XmL; $(MAKE) -f Makefile.$@ libXmL.a) 25 26 clean: 27 @- (cd XmL; $(MAKE) -f Makefile.common clean) 28