- Change help version to 5.4DEV
[nedit.git] / Makefile
blobe83030bc79bcc9ef81a7803f60ee11b9f14876fa
1 # $Id: Makefile,v 1.8 2002/09/26 12:04:03 ajhood Exp $
2 SHELL=/bin/sh
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
10 # make solaris
12 # This builds an intermediate library in the util/ directory,
13 # then builds the nedit and nc executables in the source/ directory.
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')
21 .DEFAULT:
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 doc; $(MAKE) all)
28 (cd source; $(MAKE) -f Makefile.$@ nedit nc)
30 clean:
31 (cd util; $(MAKE) -f Makefile.common clean)
32 (cd source; $(MAKE) -f Makefile.common clean)
34 realclean: clean
35 (cd doc; $(MAKE) clean)
37 # The following is for creating binary packages of NEdit.
39 RELEASE=nedit-5.3
40 BINDIST-FILES=source/nedit source/nc README COPYRIGHT ReleaseNotes doc/nedit.doc doc/nedit.html doc/nedit.man doc/nc.man doc/faq.txt
42 dist-bin: $(RELEASE-FILES)
43 rm -rf $(RELEASE)
44 mkdir -p $(RELEASE)
45 cp $(BINDIST-FILES) $(RELEASE)
46 strip $(RELEASE)/nedit $(RELEASE)/nc
47 chmod 555 $(RELEASE)/nedit $(RELEASE)/nc
48 tar cf $(RELEASE).tar $(RELEASE)
49 compress $(RELEASE).tar
50 mv $(RELEASE).tar.Z $(RELEASE)-`uname -s`-`uname -p`.tar.Z
51 rm -rf $(RELEASE)