1 | # Makefile.in for sawmill version 4 |
---|
2 | # Copyright (C) 1998 John Harper <john@dcs.warwick.ac.uk> |
---|
3 | # $Id: Makefile.in,v 1.2 2003-05-03 15:26:12 ghudson Exp $ |
---|
4 | # |
---|
5 | # This file is part of sawmill. |
---|
6 | # |
---|
7 | # sawmill is free software; you can redistribute it and/or modify it |
---|
8 | # under the terms of the GNU General Public License as published by |
---|
9 | # the Free Software Foundation; either version 2, or (at your option) |
---|
10 | # any later version. |
---|
11 | # |
---|
12 | # sawmill is distributed in the hope that it will be useful, but |
---|
13 | # WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
14 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
15 | # GNU General Public License for more details. |
---|
16 | # |
---|
17 | # You should have received a copy of the GNU General Public License |
---|
18 | # along with sawmill; see the file COPYING. If not, write to |
---|
19 | # the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. |
---|
20 | |
---|
21 | include ./Makedefs |
---|
22 | |
---|
23 | top_builddir=. |
---|
24 | top_srcdir=@top_srcdir@ |
---|
25 | srcdir=@srcdir@ |
---|
26 | VPATH=@srcdir@ |
---|
27 | |
---|
28 | SUBDIRS = @SUBDIRS@ |
---|
29 | |
---|
30 | OLD_BINARIES = sawmill sawmill-client sawmill-capplet sawmill-ui sawmill-themer |
---|
31 | |
---|
32 | all : build.h DOC NEWS FAQ |
---|
33 | for dir in $(SUBDIRS); do \ |
---|
34 | [ -d $$dir ] && ( cd $$dir && $(MAKE) $@ ) || exit 1; \ |
---|
35 | done |
---|
36 | |
---|
37 | # this depends on config.status so it's rebuilt if configure is re-run |
---|
38 | build.h : build-info config.status |
---|
39 | $(SHELL) $< $(host_type) $(version)$(subversion) \ |
---|
40 | '$(sawfishdir)' '$(lispdir)' '$(sawfishexecdir)' '$(localedir)' |
---|
41 | |
---|
42 | install : all installdirs |
---|
43 | for dir in $(SUBDIRS); do \ |
---|
44 | ( cd $$dir && $(MAKE) $@ ) || exit 1; \ |
---|
45 | done |
---|
46 | for f in ./DOC*; do \ |
---|
47 | $(INSTALL_DATA) $$f $(DESTDIR)$(sawfishexecdir); \ |
---|
48 | done |
---|
49 | rm -f $(DESTDIR)$(GNOMEDIR)/share/gnome/wm-properties/Sawmill.desktop |
---|
50 | $(INSTALL_DATA) $(srcdir)/Sawfish.desktop \ |
---|
51 | $(DESTDIR)$(GNOMEDIR)/share/gnome/wm-properties |
---|
52 | -for f in $(OLD_BINARIES); do \ |
---|
53 | if [ -x $(DESTDIR)$(bindir)/$$f ]; then \ |
---|
54 | rm -f $(DESTDIR)$(bindir)/$$f; \ |
---|
55 | $(INSTALL_SCRIPT) $(srcdir)/moved $(DESTDIR)$(bindir)/$$f; \ |
---|
56 | fi \ |
---|
57 | done |
---|
58 | |
---|
59 | installdirs : mkinstalldirs |
---|
60 | $(SHELL) $< $(DESTDIR)$(sawfishdir)/$(version) \ |
---|
61 | $(DESTDIR)$(bindir) $(DESTDIR)$(sawfishexecdir) \ |
---|
62 | $(DESTDIR)$(GNOMEDIR)/share/gnome/wm-properties |
---|
63 | |
---|
64 | uninstall : |
---|
65 | for dir in $(SUBDIRS); do \ |
---|
66 | ( cd $$dir && $(MAKE) $@ ) || exit 1; \ |
---|
67 | done |
---|
68 | rm -rf $(DESTDIR)$(sawfishdir)/$(version) |
---|
69 | |
---|
70 | DOC : |
---|
71 | repdoc DOC `find $(srcdir) \( -name '*.c' -o -name '*.jl' \) -print` |
---|
72 | |
---|
73 | NEWS : man/news.texi |
---|
74 | (cd man && $(MAKE) ../NEWS ) |
---|
75 | |
---|
76 | FAQ : man/faq.texi |
---|
77 | (cd man && $(MAKE) ../FAQ ) |
---|
78 | |
---|
79 | clean : |
---|
80 | -for dir in $(SUBDIRS); do \ |
---|
81 | [ -d $$dir ] && ( cd $$dir && $(MAKE) $@ ) || exit 1; \ |
---|
82 | done |
---|
83 | rm -f *~ NEWS DOC* TAGS build.h |
---|
84 | |
---|
85 | realclean : |
---|
86 | -for dir in $(SUBDIRS); do \ |
---|
87 | [ -d $$dir ] && ( cd $$dir && $(MAKE) $@ ) || exit 1; \ |
---|
88 | done |
---|
89 | rm -f config.cache config.h config.log config.status Makedefs Makefile |
---|
90 | rm -f *~ NEWS DOC* TAGS build.h sawfish.spec |
---|
91 | |
---|
92 | distclean : realclean |
---|
93 | |
---|
94 | TAGS : |
---|
95 | etags --language=c `find $(srcdir) -name '*.[ch]' -print` \ |
---|
96 | --language=lisp `find $(srcdir) -name '*.jl' -print` |
---|
97 | |
---|
98 | .PHONY: install uninstall tar clean realclean distclean TAGS |
---|