X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=Makefile.am;h=bb631e94893c172ca2050abb395b5ef1382f48c4;hp=a6959934c67e3e121db9eca0309ac8e733583c95;hb=b71c0979112af784bfa104e6abfb7072a84a00dd;hpb=1d0ce70b85c36973b50e5783fe7b72941c81c0a9 diff --git a/Makefile.am b/Makefile.am index a695993..bb631e9 100644 --- a/Makefile.am +++ b/Makefile.am @@ -84,8 +84,7 @@ pgpewrapng_SOURCES = pgpewrap.c pgpewrapng_LDADD = pgpewrapng_DEPENDENCIES = -CLEANFILES = stamp-doc-rc makedoc \ - keymap_alldefs.h keymap_defs.h version.h +CLEANFILES = stamp-doc-rc makedoc keymap_defs.h version.h Madmuttrc ACLOCAL_AMFLAGS = -I m4 @@ -98,8 +97,6 @@ smime_keysng: $(srcdir)/smime_keys.pl cp $(srcdir)/smime_keys.pl smime_keysng chmod +x smime_keysng -Makefile: $(BUILT_SOURCES) - keymap_defs.h: OPS $(srcdir)/gen_defs $^ > keymap_defs.h @@ -117,38 +114,30 @@ install-exec-hook: { echo "Can't fix madmutt_dotlock's permissions!" >&2 ; } \ fi -install-data-local: madmuttrc +install-data-local: Madmuttrc $(srcdir)/mkinstalldirs $(DESTDIR)$(sysconfdir) - -if [ -f $(DESTDIR)$(pkgdatadir)/madmuttrc ] ; then \ - mv $(DESTDIR)$(pkgdatadir)/madmuttrc* $(DESTDIR)$(sysconfdir) ; \ - elif [ -f $(DESTDIR)$(pkgdatadir)/../madmuttrc ] ; then \ - mv $(DESTDIR)$(pkgdatadir)/../madmuttrc* $(DESTDIR)$(sysconfdir) ; \ - elif [ ! -f $(DESTDIR)$(sysconfdir)/madmuttrc ] ; then \ - $(INSTALL) -m 644 madmuttrc $(DESTDIR)$(sysconfdir) ; \ + -if [ -f $(DESTDIR)$(pkgdatadir)/Madmuttrc ] ; then \ + mv $(DESTDIR)$(pkgdatadir)/Madmuttrc* $(DESTDIR)$(sysconfdir) ; \ + elif [ -f $(DESTDIR)$(pkgdatadir)/../Madmuttrc ] ; then \ + mv $(DESTDIR)$(pkgdatadir)/../Madmuttrc* $(DESTDIR)$(sysconfdir) ; \ + elif [ ! -f $(DESTDIR)$(sysconfdir)/Madmuttrc ] ; then \ + $(INSTALL) -m 644 Madmuttrc $(DESTDIR)$(sysconfdir) ; \ fi -if [ ! -f $(DESTDIR)$(sysconfdir)/madmutt-mime.types ]; then \ $(INSTALL) -m 644 $(srcdir)/mime.types $(DESTDIR)$(sysconfdir)/madmutt-mime.types; \ fi -# kluge around automake problems. - -dist-hook: - -for file in $(BUILT_SOURCES) ; do rm -f $(distdir)/$$file ; done - -mutt-dist: - (cd $(srcdir) && ./build-release ) - update-doc: stamp-doc-rc (cd doc && $(MAKE) update-doc) -madmuttrc: stamp-doc-rc +Madmuttrc: stamp-doc-rc -stamp-doc-rc: $(srcdir)/init.h makedoc madmuttrc.head - -rm -f madmuttrc stamp-doc-rc +stamp-doc-rc: $(srcdir)/init.h makedoc Madmuttrc.head + -rm -f Madmuttrc stamp-doc-rc $(CPP) $(INCLUDES) $(DEFS) $(CPPFLAGS) -D_MAKEDOC -C \ - $(srcdir)/init.h | ./makedoc -c | cat madmuttrc.head - > madmuttrc - touch stamp-doc-rc + $(srcdir)/init.h | ./makedoc -c | cat Madmuttrc.head - > Madmuttrc + touch $@ -include cflags.mk