]> git.llucax.com Git - software/mutt-debian.git/blob - contrib/Makefile.am
removing files which will be regenerated during the build
[software/mutt-debian.git] / contrib / Makefile.am
1 # $Id$
2
3 subdir = contrib
4
5 SAMPLES = Mush.rc Pine.rc gpg.rc pgp2.rc pgp5.rc pgp6.rc Tin.rc \
6         sample.muttrc  sample.mailcap sample.muttrc-tlr \
7         colors.default colors.linux smime.rc \
8         ca-bundle.crt smime_keys_test.pl mutt_xtitle
9
10 EXTRA_DIST = language.txt language50.txt  \
11         patch.slang-1.2.2.keypad.1      \
12         $(SAMPLES) \
13         iconv/README \
14         iconv/make.sh
15
16 install-data-local:
17         $(top_srcdir)/mkinstalldirs $(DESTDIR)$(docdir)/samples $(DESTDIR)$(docdir)/samples/iconv
18         for f in $(SAMPLES) ; do \
19                 $(INSTALL) -m 644 $(srcdir)/$$f $(DESTDIR)$(docdir)/samples ;   \
20         done
21         for f in $(srcdir)/iconv/*.rc ; do                                      \
22                 $(INSTALL) -m 644 $$f $(DESTDIR)$(docdir)/samples/iconv   ;     \
23         done
24
25 uninstall-local:
26         for f in $(SAMPLES) ; do \
27                 rm -f $(DESTDIR)$(docdir)/samples/$$f ; \
28         done
29         -rm -rf $(DESTDIR)$(docdir)/samples/iconv
30         -rmdir $(DESTDIR)$(docdir)/samples
31         -rmdir $(DESTDIR)$(docdir)
32
33 distdir = ../$(PACKAGE)-$(VERSION)/$(subdir)
34 dist-hook: Makefile $(DISTFILES)
35         mkdir -p $(distdir)/iconv
36         for file in $(srcdir)/iconv/*.rc ; do                                   \
37                 ln $$file $(distdir)/iconv 2> /dev/null                         \
38                         || cp -p $$file $(distdir)/iconv ;                      \
39         done