Xft support under OpenMotif 2.3.3 - I've been using this for quite a while on
[nedit.git] / Makefile
blob4c77fc55df1b9e35e7d75f4f6eac4a7f9698ff99
1 # $Id: Makefile,v 1.19 2004/09/30 20:51:05 n8gray 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 Microline/XmL; if [ -f ../../makefiles/Makefile.$@ -a ! -f ./Makefile.$@ ];\
23 then ln -s ../../makefiles/Makefile.$@ .; fi)
24 @- (cd Xlt; if [ -f ../makefiles/Makefile.$@ -a ! -f ./Makefile.$@ ];\
25 then ln -s ../makefiles/Makefile.$@ .; fi)
26 @- (cd util; if [ -f ../makefiles/Makefile.$@ -a ! -f ./Makefile.$@ ];\
27 then ln -s ../makefiles/Makefile.$@ .; fi)
28 @- (cd source; if [ -f ../makefiles/Makefile.$@ -a ! -f ./Makefile.$@ ];\
29 then ln -s ../makefiles/Makefile.$@ .; fi)
31 (cd util; \
32 $(MAKE) -f Makefile.$@ verify_config && \
33 $(MAKE) -f Makefile.$@ libNUtil.a)
34 (cd Xlt; $(MAKE) -f Makefile.$@ libXlt.a)
35 (cd Microline/XmL; $(MAKE) -f Makefile.$@ libXmL.a)
36 (cd source; $(MAKE) -f Makefile.$@ nedit nc)
38 # This should not be in the default build, as users may not have Perl
39 # installed. This is only interesting to developers.
40 docs:
41 (cd doc; $(MAKE) all)
43 # We need a "dev-all" target that builds the docs plus binaries, but
44 # that doesn't work since we require the user to specify the target. More
45 # thought is needed
47 clean:
48 (cd util; $(MAKE) -f Makefile.common clean)
49 (cd Xlt; $(MAKE) -f Makefile.common clean)
50 (cd Microline/XmL; $(MAKE) -f Makefile.common clean)
51 (cd source; $(MAKE) -f Makefile.common clean)
53 realclean: clean
54 (cd doc; $(MAKE) clean)
57 # The following is for creating binary packages of NEdit.
59 RELEASE=nedit-5.5-`uname -s`-`uname -m`
60 BINDIST-FILES=source/nedit source/nc README COPYRIGHT ReleaseNotes doc/nedit.doc doc/nedit.html doc/nedit.man doc/nc.man doc/faq.txt
62 dist-bin: $(BINDIST-FILES)
63 rm -rf $(RELEASE)
64 mkdir -p $(RELEASE)
65 cp $(BINDIST-FILES) $(RELEASE)/
66 strip $(RELEASE)/nedit $(RELEASE)/nc
67 chmod 555 $(RELEASE)/nedit $(RELEASE)/nc
68 tar cf $(RELEASE).tar $(RELEASE)
69 compress -c $(RELEASE).tar > $(RELEASE).tar.Z
70 -gzip -9 -c $(RELEASE).tar > $(RELEASE).tar.gz
71 -bzip2 -9 -c $(RELEASE).tar > $(RELEASE).tar.bz2
72 rm -rf $(RELEASE) $(RELEASE).tar