# Generated automatically from Makefile.in by configure.
## wyg Makefile
## Lars Kellogg-Stedman <lars@larsshack.org>
## http://www.larsshack.org/sw/wyg/

INSTALL=/usr/bin/install -c
INSTALL_DOC=$(INSTALL) -m 644
INSTALL_BIN=$(INSTALL) -m 755

prefix=	/usr/local
exec_prefix= ${prefix}
bindir=	${exec_prefix}/bin
WYGDIR=	${prefix}/share/wyg

FILES=	parse.c.tmpl parse.h.tmpl parse.lex.tmpl parse.y.tmpl \
	Makefile.wyg wyg.conf.sample getopt.c getopt.h wygtest.c

all:
	@if test ! -f wyg; then \
		echo "Eek, you forgot to run configure!"; \
		echo "I'll do it for you, but you may want to take a look at"; \
		echo "the documentation..."; \
		echo; \
		./configure; \
	fi
	@echo "Type 'make install' to install wyg."

install:
	./aux/mkinstalldirs $(bindir)
	./aux/mkinstalldirs $(WYGDIR)

	$(INSTALL_BIN) wyg $(bindir)
	for file in $(FILES); do \
		$(INSTALL) wygdata/$$file $(WYGDIR); \
	done

distclean:
	rm -f config.log config.cache config.status
	rm -f wyg Makefile wygdata/Makefile.wyg
	cp Makefile.dist Makefile
