source: branches/ithildin-win32/Makefile.in @ 582

Revision 582, 4.2 KB checked in by wd, 7 years ago (diff)

And chuck 'et' from the Makefiles' vim settings!

  • Property svn:keywords set to Id Rev
Line 
1###############################################################################
2#
3# Makefile.in: Top-level makefile for ithildin.
4#
5# Copyright 2002 the Ithildin Project.
6# See the COPYING file for more information on licensing and use.
7#
8# $Id$
9#
10###############################################################################
11
12# these are where to install things at the end of the day
13prefix = @prefix@
14exec_prefix = @exec_prefix@
15BINDIR = @bindir@
16DATADIR = @datadir@@DIRSUFFIX@
17CONFDIR = @sysconfdir@@DIRSUFFIX@
18INCDIR = @includedir@/@PACKAGE@
19INSTALL = @INSTALL@
20PACKAGE = @PACKAGE@
21VERSION = @VERSION@
22
23# binaries which might prove useful
24RM = @RM@
25CTAGS = @CTAGS@
26
27# the nitty-gritty compiler stuff.
28
29CC = @CC@
30CFLAGS = @CFLAGS@
31LDFLAGS = @LDFLAGS@
32LIBS = @LIBS@
33
34# avoid directory printing
35MAKEFLAGS += --no-print-directory
36
37default: all
38
39all: base_build modules_build
40
41base_build:
42        @echo ">>> building base system ..."
43        @repover=`sh tools/repover.sh` ;                                \
44         (cd source && $(MAKE) REPOVER=$$repover all)
45        @echo "<<< finished building base system"
46
47modules_build:
48        @(cd modules && $(MAKE) all)
49
50base_install: base_build
51        mkdir -p $(BINDIR)
52        $(INSTALL) -b source/$(PACKAGE) $(BINDIR)
53        $(INSTALL) source/md5sum $(BINDIR)
54
55conf_install:
56        @if test -e $(CONFDIR)/$(PACKAGE).conf; then\
57            echo ">>> not overwriting conf files";\
58        else\
59            echo ">>> installing configuration files";\
60            mkdir -p $(CONFDIR);\
61            $(INSTALL) -b -m 644 doc/conf/*.conf $(CONFDIR);\
62        fi
63       
64data_install:
65        mkdir -p $(DATADIR)/doc
66        @echo ">>> installing data files in $(DATADIR)"
67        @$(INSTALL) -m 644 COPYING DEVELOPERS README TODO $(DATADIR)
68        @echo ">>> installing documentation in $(DATADIR)/doc"
69        @cd doc && for f in `find . \! -path '*/.svn*' -type f` ; do     \
70            df=`dirname $$f`                                            ;\
71            mkdir -p $(DATADIR)/doc/$$df                                ;\
72            $(INSTALL) -m 644 $$f $(DATADIR)/doc/$$df                   ;\
73        done
74
75include_install:
76        mkdir -p $(INCDIR)
77        @echo ">>> installing include files in $(INCDIR)"
78        $(INSTALL) -m 644 include/*.h $(INCDIR)
79
80modules_install: modules_build
81        @cd modules; $(MAKE) install
82
83install: base_install modules_install conf_install data_install include_install
84        @echo ">>> well, there you have it.  everything installed.  enjoy!"
85
86clean:
87        @echo ">>> cleaning base"
88        rm -f *~ doc/*~ include/*~ source/*~ *.core source/*.core
89        rm -f source/*.[do] source/$(PACKAGE) source/md5sum
90        @cd modules; $(MAKE) clean
91        @echo "<<< finished cleaning"
92
93distclean: clean
94        rm -rf autom4te.cache config.log config.status configure.lineno
95        rm -f tags source/tags include/config.h
96        rm -f Makefile source/Makefile modules/Makefile doc/conf/Makefile
97        rm -f `find . -name '*.d'`
98
99update: clean
100        svn update
101        @cfgline=`grep -E '^  \\$$' config.log | head -1 |              \
102                sed 's/^  \\$$ //' | sed 's/--quiet//'`                 ;\
103        if test autoconf/configure.ac -nt configure ; then              \
104            echo ">>> updating configure and include/config.h.in"       ;\
105            autoconf -o configure autoconf/configure.ac                 ;\
106            autoheader autoconf/configure.ac                            ;\
107            echo ">>> re-running configure as:"                         ;\
108            echo "    $$cfgline"                                        ;\
109            $$cfgline                                                   ;\
110        fi
111
112reconf: reconfigure
113reconfig: reconfigure
114reconfigure:
115        @cfgline=`grep -E '^  \\$$' config.log | head -1 | sed 's/^  \\$$ //'`;\
116        echo ">>> re-running configure as:"                             ;\
117        echo "    $$cfgline"                                            ;\
118        $$cfgline
119
120DISTFILES = .svn COPYING DEVELOPERS Makefile.in README TODO autoconf    \
121            configure doc include source tools
122MDISTFILES = modules/.svn modules/Makefile.in
123
124release: clean
125        @repover=`sh tools/repover.sh` ;                                \
126         echo ">>> building release for revision $$repover ..." ;       \
127         autoconf -o configure autoconf/configure.ac ;                  \
128         autoheader autoconf/configure.ac ;                             \
129         rm -rf dist ;                                                  \
130         mkdir -p dist/$$repover ;                                      \
131         echo ">>> building release for base system in $(VERSION).tar.gz";\
132         mkdir dist/$$repover/$(VERSION) ;                              \
133         cp -R $(DISTFILES) dist/$$repover/$(VERSION) ;                 \
134         mkdir -p dist/$$repover/$(VERSION)/modules ;                   \
135         cp -R $(MDISTFILES) dist/$$repover/$(VERSION)/modules ;        \
136         (cd dist/$$repover && tar -zcf $(VERSION).tar.gz $(VERSION)) ; \
137         rm -rf dist/$$repover/$(VERSION) ;                             \
138         (cd modules && $(MAKE) REPOVER=$$repover release) ;            \
139         echo "<<< finished building release in dist/$$repover"
140
141# vi:set ts=8 sts=4 sw=4 tw=76:
Note: See TracBrowser for help on using the repository browser.