# Makefile for dcppt
#
# Copyright (C) GFD Dennou Club, 2005.  All rights reserved.

DESTDIR=/usr/local/bin
DCPPT=dcppt.pl
#VERSION=1.0    # Version is controled by CVS  -- 2006/03/05 morikawa
#TGZ=dcppt-$(VERSION).tar.gz
SAMPLE=sample
SIGEN=SIGEN.htm
README=README.TXT

all:

install:
	install -o root -g root -m 0775 $(DCPPT) $(DESTDIR)

uninstall:
	rm $(DESTDIR)/$(DCPPT)

doc: readme
	-rm $(SIGEN)
	cd $(SAMPLE); make quiet

clean:
	-rm $(README)
	cd $(SAMPLE); make clean

#tar:
#	cd $(SAMPLE); make clean
#	-rm $(TGZ) $(SIGEN)
#	cd .. ; tar cvfz $(TGZ) dcppt-$(VERSION)
#	cd $(SAMPLE); make quiet

readme:
	-perl $(DCPPT) -r > $(README)