1 # $Id: Makefile,v 1.6 2001/07/28 19:53:48 tringali Exp $
4 # Makefile for NEdit text editor
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
12 # This builds an intermediate library in the util/ directory,
13 # then builds the nedit and nc executables in the source/ directory.
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')
22 @
- (cd util
; if
[ -f ..
/makefiles
/Makefile.
$@
-a
! -f .
/Makefile.
$@
];\
23 then ln
-s ..
/makefiles
/Makefile.
$@ .
; fi
)
24 @
- (cd source
; if
[ -f ..
/makefiles
/Makefile.
$@
-a
! -f .
/Makefile.
$@
];\
25 then ln
-s ..
/makefiles
/Makefile.
$@ .
; fi
)
26 (cd util
; $(MAKE
) -f Makefile.
$@ libNUtil.a
)
27 (cd source
; $(MAKE
) -f Makefile.
$@ nedit nc
)
30 (cd util
; $(MAKE
) -f Makefile.common
clean)
31 (cd source
; $(MAKE
) -f Makefile.common
clean)