Use p_new instead of xmalloc()
[apps/madmutt.git] / contrib / Makefile.in
index d0c775a..2286433 100644 (file)
@@ -1,5 +1,3 @@
-# $Id: Makefile.in,v 3.3 2003/04/02 08:47:28 roessler Exp $
-
 SHELL = /bin/sh
 
 PACKAGE = @PACKAGE@
@@ -23,7 +21,7 @@ subdir = contrib
 SAMPLES = Mush.rc Pine.rc gpg.rc pgp2.rc pgp5.rc pgp6.rc Tin.rc \
        sample.muttrc  sample.mailcap sample.muttrc-tlr \
        colors.default colors.linux smime.rc \
-       ca-bundle.crt smime_keys_test.pl
+       ca-bundle.crt smime_keys_test.pl grml-muttng update-config.pl
 
 DISTFILES = Makefile.in language.txt language50.txt  \
        patch.slang-1.2.2.keypad.1      \
@@ -43,6 +41,7 @@ install:
        for f in $(SAMPLES) ; do \
                $(INSTALL) -m 644 $(srcdir)/$$f $(DESTDIR)$(docdir)/samples ;   \
        done
+       chmod 755 $(DESTDIR)$(docdir)/samples/update-config.pl
        for f in $(srcdir)/iconv/*.rc ; do                                      \
                $(INSTALL) -m 644 $$f $(DESTDIR)$(docdir)/samples/iconv   ;     \
        done
@@ -50,6 +49,12 @@ install:
 # Nothing needs to be done - uninstall in doc removes samples as well.
 # This is just so make uninstall doesn't fail.
 uninstall:
+       for f in $(SAMPLES) ; do \
+         rm -f $(DESTDIR)$(docdir)/samples/$$f ; \
+       done
+       -rm -rf $(DESTDIR)$(docdir)/samples/iconv
+       -rmdir $(DESTDIR)$(docdir)/samples
+       -rmdir $(DESTDIR)$(docdir)
 
 maintainer-clean: distclean