head	1.5;
access;
symbols;
locks; strict;
comment	@# @;


1.5
date	2005.01.24.17.22.11;	author shd;	state dead;
branches;
next	1.4;

1.4
date	2005.01.24.17.21.49;	author shd;	state Exp;
branches;
next	1.3;

1.3
date	2005.01.24.15.25.34;	author shd;	state Exp;
branches;
next	1.2;

1.2
date	2005.01.24.14.39.23;	author shd;	state Exp;
branches;
next	1.1;

1.1
date	2005.01.24.14.39.07;	author shd;	state Exp;
branches;
next	;


desc
@@


1.5
log
@*** empty log message ***
@
text
@# Makefile for cksfv (Check SFV)

# Copyright (C) 2000 Bryan Call <bc@@fodder.org>

# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.

# 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, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.

VERSION="1.3.2"
WEBSITE=/var/www/html/cksfv/
BINDIR="/tmp///usr/local/bin"
MANDIR="/tmp///usr/local/share/man/man1"

all:
	$(MAKE) -C src VERSION=$(VERSION)

install:	
	mkdir -p $(BINDIR) $(MANDIR)
	install src/cksfv $(BINDIR)
	install cksfv.1 $(MANDIR)

dist:
	gmake clean
	rm -rf ~/cksfv-$(VERSION) \
	&& cp -r . ~/cksfv-$(VERSION) && cd ~ && rm -rf cksfv-$(VERSION)/CVS \
	&& rm -rf cksfv-$(VERSION)/src/CVS \
	&& rm -rf cksfv-$(VERSION)/rpm/CVS \
	&& tar cf cksfv-$(VERSION).tar cksfv-$(VERSION) \
	&& gzip -9f cksfv-$(VERSION).tar \
	&& rm -rf ~/cksfv-$(VERSION) \

rpm:	dist
	cp ~/cksfv-$(VERSION).tar.gz /usr/src/redhat/SOURCES \
	&& cp rpm/*patch /usr/src/redhat/SOURCES \
	&& cp rpm/cksfv.spec /usr/src/redhat/SPECS \
	&& rpm -ba /usr/src/redhat/SPECS/cksfv.spec \
	&& cp /usr/src/redhat/RPMS/i386/cksfv-$(VERSION)*.i386.rpm ~ \
	&& cp /usr/src/redhat/SRPMS/cksfv-$(VERSION)*.src.rpm ~ \

full_dist: rpm
	cp ~/cksfv-$(VERSION)*.src.rpm $(WEBSITE)
	cp ~/cksfv-$(VERSION)*.i386.rpm $(WEBSITE)
	cp ~/cksfv-$(VERSION).tar.gz $(WEBSITE)
	cd $(WEBSITE) && md5sum cksfv-$(VERSION)*.src.rpm \
	cksfv-$(VERSION)*.i386.rpm cksfv-$(VERSION).tar.gz > \
	cksfv-$(VERSION).md5 && cksfv cksfv-$(VERSION)*.src.rpm \
	cksfv-$(VERSION)*.i386.rpm cksfv-$(VERSION).tar.gz > \
	cksfv-$(VERSION).sfv
	cp ChangeLog README TODO INSTALL $(WEBSITE)

clean:
	rm -f *.o *~ *.core core
	rm -f rpm/*.o rpm/*~ rpm/*.core rpm/core
	cd src && gmake clean
@


1.4
log
@*** empty log message ***
@
text
@@


1.3
log
@*** empty log message ***
@
text
@d19 1
a19 1
VERSION="1.3.1"
d21 2
d27 4
a30 2
install:
	$(MAKE) -C src VERSION=$(VERSION) install
@


1.2
log
@*** empty log message ***
@
text
@d23 1
a23 1
	cd src && gmake VERSION=$(VERSION)
d26 1
a26 1
	cd src && gmake VERSION=$(VERSION) install
@


1.1
log
@*** empty log message ***
@
text
@d19 1
a19 1
VERSION="1.3"
@

