SRCS	:= $(wildcard *.pl)

########################################################################

PACKAGE := kickproc
VERSION := 1.0

include constants.make
include progs.make
include dirs.make
NOPMMANS := yes
include pod-vars.make

INSTALL = ./shtool install

BINS	:= $(basename $(PLS))

########################################################################

.PHONY:	all none test clean man txt html tex \
	config configclean links linksclean .cvsignore .cvsignoreclean \
	install uninstall dist distclean


.SUFFIXES:
.INTERMEDIATE: %.pod


all:	gzman

test:	links
	@echo "No tests here"

links:	linksclean
	for i in $(notdir $(BINS)); do $(LN_S) $$i.pl $$i; done

linksclean:
	$(RM)  $(BINS)

install: all
	$(INSTALL)    -d $(BINDIR)
	for i in $(notdir $(BINS)); do $(INSTALL) -v -c $$i.pl $(BINDIR)/$$i; done
	$(INSTALL)    -d $(MAN1DIR)
	$(INSTALL) -v -c -m 0644 $(GZMAN1S) $(MAN1DIR)
	$(INSTALL)    -d $(CONFDIR)
	$(INSTALL) -v -c kickproc.conf $(CONFDIR)/kickproc.conf.example

uninstall:
	$(RM) $(addprefix $(MAN1DIR)/, $(GZMAN1S))
	$(RM) $(addprefix $(BINDIR)/, $(notdir $(BINS)))
	$(RM) -r $(CONFDIR)/kickproc.conf

clean distclean: linksclean
	$(RM) $(GZMANS) $(MANS) $(TXTS) $(TEXS) $(HTMLS)
	$(RM) pod2html-{dir,item}cache *.gz


none config lib .cvsignore .cvsignoreclean:

include pod-rules.make
include dist-rules.make

#end
