##
CLEANFILES = config/version.c sbr/sigmsg.h etc/mts.conf etc/sendfiles \
etc/mhn.defaults man/man.sed $(man_MANS)
+clean-local:
+ @rm -rf RPM
##
## Stuff that should be cleaned via "make maintainer-clean"
uip/annosbr.c uip/distsbr.c
uip_forw_LDADD = $(LDADD) $(ICONVLIB)
-uip_inc_SOURCES = uip/inc.c uip/scansbr.c uip/dropsbr.c uip/termsbr.c
-if POP_SUPPORT
-uip_inc_SOURCES += uip/popsbr.c
-endif
+uip_inc_SOURCES = uip/inc.c uip/scansbr.c uip/dropsbr.c uip/termsbr.c \
+ uip/popsbr.c
uip_inc_LDADD = $(LDADD) $(TERMLIB) $(ICONVLIB) $(SASLLIB)
uip_install_mh_SOURCES = uip/install-mh.c
uip/mhmisc.c uip/mhfree.c uip/termsbr.c uip/md5.c
uip_mhstore_LDADD = $(LDADD) $(TERMLIB)
-uip_msgchk_SOURCES = uip/msgchk.c
-if POP_SUPPORT
-uip_msgchk_SOURCES += uip/popsbr.c
-endif
+uip_msgchk_SOURCES = uip/msgchk.c uip/popsbr.c
uip_msgchk_LDADD = $(LDADD) $(SASLLIB)
uip_msh_SOURCES = uip/msh.c uip/mshcmds.c uip/vmhsbr.c uip/picksbr.c \
fi
install-data-hook:
- rm -f $(DESTDIR)/$(man5dir)/mh_profile.5
- ln $(DESTDIR)/$(man5dir)/mh-profile.5 $(DESTDIR)/$(man5dir)/mh_profile.5
+ rm -f $(DESTDIR)$(man5dir)/mh_profile.5
+ ln $(DESTDIR)$(man5dir)/mh-profile.5 $(DESTDIR)$(man5dir)/mh_profile.5
##
## Make sure we remove those links at uninstall time
##
echo 's,%manext1%,$(manext1),g' >> $@
echo 's,%manext5%,$(manext5),g' >> $@
echo 's,%manext8%,$(manext8),g' >> $@
-if POP_SUPPORT
- echo '/^%nmhbeginpop%/d;/^%nmhendpop%/d' >> $@
-else
- echo '/^%nmhbeginpop%/,/^%nmhendpop%/d' >> $@
-endif
echo '/%components%/r $(top_srcdir)/etc/components' >> $@
echo ' s,%components%,,g' >> $@
echo '/%distcomps%/r $(top_srcdir)/etc/distcomps' >> $@
## Our RPM build target
##
-rpm: $(DIST_ARCHIVES)
+rpm: dist
@test -d $(rpmdir)/SOURCES || $(MKDIR_P) $(rpmdir)/SOURCES
@test -d $(rpmdir)/SPECS || $(MKDIR_P) $(rpmdir)/SPECS
@mv -f $(DIST_ARCHIVES) $(rpmdir)/SOURCES