root/foundation-apps/nedit-maxx/Makefile

Revision 11, 2.0 KB (checked in by emasson, 3 years ago)

initial import for the community edition

Line 
1# $Id: Makefile,v 1.1 2008/07/18 19:14:55 emasson Exp $
2SHELL=/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
16all:
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 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; \
27            $(MAKE) -f Makefile.$@ verify_config && \
28            $(MAKE) -f Makefile.$@ libNUtil.a)
29        (cd source; $(MAKE) -f Makefile.$@ nedit nc)
30
31# This should not be in the default build, as users may not have Perl
32# installed.  This is only interesting to developers.
33docs:
34        (cd doc; $(MAKE) all)
35
36# We need a "dev-all" target that builds the docs plus binaries, but
37# that doesn't work since we require the user to specify the target.  More
38# thought is needed
39
40clean:
41        (cd util;   $(MAKE) -f Makefile.common clean)
42        (cd source; $(MAKE) -f Makefile.common clean)
43
44realclean: clean
45        (cd doc;    $(MAKE) clean)
46
47#
48# The following is for creating binary packages of NEdit.
49#
50RELEASE=nedit-5.4-`uname -s`-`uname -p`
51BINDIST-FILES=source/nedit source/nc README COPYRIGHT ReleaseNotes doc/nedit.doc doc/nedit.html doc/nedit.man doc/nc.man doc/faq.txt
52
53dist-bin: $(BINDIST-FILES)
54        rm -rf $(RELEASE)
55        mkdir -p $(RELEASE)
56        cp $(BINDIST-FILES) $(RELEASE)/
57        strip $(RELEASE)/nedit $(RELEASE)/nc
58        chmod 555 $(RELEASE)/nedit $(RELEASE)/nc
59        tar cf $(RELEASE).tar $(RELEASE)
60        compress -c $(RELEASE).tar > $(RELEASE).tar.Z
61        -gzip -9 -c $(RELEASE).tar > $(RELEASE).tar.gz
62        -bzip2 -9 -c $(RELEASE).tar > $(RELEASE).tar.bz2
63        rm -rf $(RELEASE) $(RELEASE).tar
Note: See TracBrowser for help on using the browser.