Rocco Rutte:
[apps/madmutt.git] / contrib / Makefile.in
1 SHELL = /bin/sh
2
3 PACKAGE = @PACKAGE@
4 VERSION = @VERSION@
5
6 prefix = @prefix@
7 exec_prefix = @exec_prefix@
8 bindir = @bindir@
9 libdir = @libdir@
10 mandir = @mandir@
11 srcdir = @srcdir@
12 docdir = @docdir@
13 top_srcdir = @top_srcdir@
14 top_builddir = ..
15 INSTALL = @INSTALL@
16 VPATH = @srcdir@
17 @SET_MAKE@
18
19 subdir = contrib
20
21 SAMPLES = Mush.rc Pine.rc gpg.rc pgp2.rc pgp5.rc pgp6.rc Tin.rc \
22         sample.muttrc  sample.mailcap sample.muttrc-tlr \
23         colors.default colors.linux smime.rc \
24         ca-bundle.crt smime_keys_test.pl grml-muttng update-config.pl
25
26 DISTFILES = Makefile.in language.txt language50.txt  \
27         patch.slang-1.2.2.keypad.1      \
28         $(SAMPLES)
29
30 ICONV_DISTFILES = README make.sh
31
32 all clean:
33
34 distclean:
35         -rm -f Makefile
36
37 check:
38
39 install:
40         $(top_srcdir)/mkinstalldirs $(DESTDIR)$(docdir)/samples $(DESTDIR)$(docdir)/samples/iconv
41         for f in $(SAMPLES) ; do \
42                 $(INSTALL) -m 644 $(srcdir)/$$f $(DESTDIR)$(docdir)/samples ;   \
43         done
44         chmod 755 $(DESTDIR)$(docdir)/samples/update-config.pl
45         for f in $(srcdir)/iconv/*.rc ; do                                      \
46                 $(INSTALL) -m 644 $$f $(DESTDIR)$(docdir)/samples/iconv   ;     \
47         done
48
49 # Nothing needs to be done - uninstall in doc removes samples as well.
50 # This is just so make uninstall doesn't fail.
51 uninstall:
52         for f in $(SAMPLES) ; do \
53           rm -f $(DESTDIR)$(docdir)/samples/$$f ; \
54         done
55         -rm -rf $(DESTDIR)$(docdir)/samples/iconv
56         -rmdir $(DESTDIR)$(docdir)/samples
57         -rmdir $(DESTDIR)$(docdir)
58
59 maintainer-clean: distclean
60
61 Makefile: ../config.status Makefile.in
62         cd .. \
63           && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
64
65 distdir = ../$(PACKAGE)-$(VERSION)/$(subdir)
66 dist distdir: Makefile $(DISTFILES)
67         for file in $(DISTFILES) ; do                           \
68                 ln $(srcdir)/$$file $(distdir) 2> /dev/null     \
69                         || cp -p $(srcdir)/$$file $(distdir);   \
70         done
71         mkdir -p $(distdir)/iconv
72         for file in $(ICONV_DISTFILES) ; do                                     \
73                 ln $(srcdir)/iconv/$$file $(distdir)/iconv 2> /dev/null         \
74                         || cp -p $(srcdir)/iconv/$$file $(distdir)/iconv;       \
75         done
76         for file in $(srcdir)/iconv/*.rc ; do                                   \
77                 ln $$file $(distdir)/iconv 2> /dev/null                         \
78                         || cp -p $$file $(distdir)/iconv ;                      \
79         done