# Makefile for GNUpod
#
prefix       = @prefix@
exec_prefix  = @exec_prefix@
bindir       = @bindir@
infodir      = @infodir@
mandir       = @mandir@
SHELL        = @SHELL@
top_srcdir   = @top_srcdir@
perlbinary   = @PERL@
pkgver       = @PACKAGE_VERSION@
pkgfname     = gnupod-@PACKAGE_VERSION@
pkgdir       = gnupod-@PACKAGE_VERSION@-noarch-1au


all:
	# Use 'make install' to install GNUpod
install:
	$(SHELL) $(top_srcdir)/mkinstalldirs $(DESTDIR)$(bindir)
	$(SHELL) $(top_srcdir)/mkinstalldirs $(DESTDIR)$(mandir)/man1
	$(perlbinary) tools/gnupod_install.pl INSTALL "$(perlbinary)" "$(bindir)" "$(infodir)" "$(mandir)" "$(DESTDIR)"
uninstall:
	$(perlbinary) tools/gnupod_install.pl REMOVE  "$(perlbinary)" "$(bindir)" "$(infodir)" "$(mandir)"
release:
	mkdir ../GNUPOD_R && find . | grep -v .git | grep -v \.\#| cpio -pvmd ../GNUPOD_R && cd ../GNUPOD_R && autoconf && rm Makefile && rm config.log config.status && rm -rf autom4te.cache testcases && cd man && gzip *.1 && echo DONE
