1998-05-18 16:54:02 +02:00
|
|
|
include GNUmakevars
|
|
|
|
|
2004-11-30 10:27:01 +01:00
|
|
|
CONFDIR=../../configure
|
|
|
|
CONFDIR_exists=$(shell [ -d $(CONFDIR) ] && echo ok)
|
|
|
|
|
|
|
|
|
2004-04-26 10:32:46 +02:00
|
|
|
TARGETS = quotacheck quotastat quotasanitycheck quotagraph
|
1998-09-17 10:32:57 +02:00
|
|
|
all: $(TARGETS)
|
1998-05-18 16:54:02 +02:00
|
|
|
|
|
|
|
clean:
|
1998-09-17 10:32:57 +02:00
|
|
|
rm -f $(TARGETS) *.bak core foo bar baz *.ps
|
1998-05-18 16:54:02 +02:00
|
|
|
|
|
|
|
distclean: clean
|
|
|
|
rm -f customize
|
|
|
|
|
1998-09-17 10:15:45 +02:00
|
|
|
install: $(SBINDIR) $(SBINDIR)/quotacheck $(SBINDIR)/quotastat \
|
2001-07-16 15:58:03 +02:00
|
|
|
$(SBINDIR)/dfree \
|
2004-04-26 10:32:46 +02:00
|
|
|
$(SBINDIR)/quotasanitycheck $(MAN8DIR)/quotasanitycheck.8 \
|
2005-03-29 11:52:02 +02:00
|
|
|
/usr/local/dfstat/ \
|
2004-04-26 10:32:46 +02:00
|
|
|
/usr/local/dfstat/quotagraph
|
1998-05-18 16:54:02 +02:00
|
|
|
|
|
|
|
%: %.pl customize
|
|
|
|
sh ./customize < $< > $@
|
|
|
|
chmod +x $@
|
|
|
|
|
|
|
|
%: %.sh customize
|
|
|
|
sh ./customize < $< > $@
|
|
|
|
chmod +x $@
|
|
|
|
|
|
|
|
customize: configure
|
|
|
|
sh ./configure
|
|
|
|
|
2005-03-29 11:52:02 +02:00
|
|
|
$(SBINDIR) /usr/local/dfstat/:
|
1998-05-18 16:54:02 +02:00
|
|
|
mkdir -p $@
|
|
|
|
|
2004-04-26 10:32:46 +02:00
|
|
|
/usr/local/dfstat/%: %
|
|
|
|
$(INSTALL) -m 755 $^ $@
|
|
|
|
|
2004-11-30 10:27:01 +01:00
|
|
|
ifeq ($(CONFDIR_exists),ok)
|
|
|
|
|
|
|
|
configure: $(CONFDIR)/start \
|
|
|
|
$(CONFDIR)/perl \
|
|
|
|
$(CONFDIR)/df \
|
|
|
|
$(CONFDIR)/repquota \
|
|
|
|
$(CONFDIR)/sendmail \
|
|
|
|
$(CONFDIR)/scp \
|
|
|
|
$(CONFDIR)/finish
|
|
|
|
cat $^ > $@
|
|
|
|
|
|
|
|
endif
|
|
|
|
|
1998-05-18 16:54:02 +02:00
|
|
|
include GNUmakerules
|