datadir = @datadir@
infodir = @infodir@
prefix = @prefix@
srcdir = @srcdir@
subdir = etc
top_srcdir = @top_srcdir@
lispdir = @lispdir@
etcdir = @etcdir@

VPATH=$(srcdir)
EMACS=@EMACS@
INSTALL = @INSTALL@
INSTALL_DATA = @INSTALL_DATA@
SHELL = /bin/sh

install: 
	$(SHELL) $(top_srcdir)/mkinstalldirs $(etcdir)
	cd $(srcdir) \
	&& for p in gnus-tut.txt; do \
	  echo " $(INSTALL_DATA) $$p $(etcdir)/$$p"; \
	  $(INSTALL_DATA) $$p $(etcdir)/$$p; \
	done
	$(SHELL) $(top_srcdir)/mkinstalldirs $(etcdir)/images/gnus
	cd $(srcdir) \
	&& for p in images/gnus/*.xpm images/gnus/*.pbm images/gnus/*.xbm images/gnus/x-splash; do \
	  echo " $(INSTALL_DATA) $$p $(etcdir)/$$p"; \
	  $(INSTALL_DATA) $$p $(etcdir)/$$p; \
	done
	$(SHELL) $(top_srcdir)/mkinstalldirs $(etcdir)/images/smilies
	cd $(srcdir) \
	&& for p in images/smilies/*.pbm images/smilies/*.xpm; do \
	  echo " $(INSTALL_DATA) $$p $(etcdir)/$$p"; \
	  $(INSTALL_DATA) $$p $(etcdir)/$$p; \
	done

uninstall: 
	rm -f $(etcdir)/gnus-tut.txt
	cd $(srcdir) \
	&& for p in images/gnus/*.xpm images/gnus/*.pbm images/gnus/*.xbm images/gnus/x-splash; do \
	  rm -f "$(etcdir)/$$p"; \
	done
	rmdir $(etcdir)/images/gnus 2> /dev/null || true
	cd $(srcdir) \
	&& for p in images/smilies/*.pbm images/smilies/*.xpm; do \
	  rm -f "$(etcdir)/$$p"; \
	done
	rmdir $(etcdir)/images/smilies 2> /dev/null || true
	rmdir $(etcdir)/images 2> /dev/null || true

Makefile: $(srcdir)/Makefile.in ../config.status
	cd .. \
	  && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status

distclean:
	rm -f *~ Makefile

# Tell versions [3.59,3.63) of GNU make to not export all variables.
# Otherwise a system limit (for SysV at least) may be exceeded.
.NOEXPORT:
