########################################################################
# 'Makefile' for the program consoleSudoku.            
#                                                           
# Version: 0.11
# Date: 03-June-2016
########################################################################
#
# Copyright (C) <2016>  <author: Peter Rossnagel>  <contact: pewrn@t-online.de>
# -----------------------------------------------------------------------------
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 3 as published by
# the Free Software Foundation.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program.  If not, see <http://www.gnu.org/licenses/>.
#
########################################################################

NAME=consoleSudoku
BINDIR=$(DESTDIR)/usr/bin
MANDIR=$(DESTDIR)/usr/share/man/man6
DOCDIR=$(DESTDIR)/usr/share/doc/packages/$(NAME)

# Targets
# The First target 'all' is the one build when there is nothing on make command line

all:
	./make.sh

install:
	./install.sh

clean:
#	rm -f $(NAME)
	rm -f $(NAME).o $(NAME).ppu $(NAME).bak
	rm -f $(NAME).pas~ $(NAME).sh~ $(NAME).log

uninstall:
	rm -f $(BINDIR)/$(NAME)
	rm -f $(MANDIR)/$(NAME).6.gz
	rm -f $(DOCDIR)/README $(DOCDIR)/COPYING $(DOCDIR)/ChangeLog $(DOCDIR)/AUTHORS -d $(DOCDIR)

