simple/quotacheck/GNUmakefile

54 lines
971 B
Makefile
Raw Permalink Normal View History

include GNUmakevars
CONFDIR=../../configure
CONFDIR_exists=$(shell [ -d $(CONFDIR) ] && echo ok)
TARGETS = quotacheck quotastat quotasanitycheck quotagraph do_cron
all: $(TARGETS)
clean:
rm -f $(TARGETS) *.bak core foo bar baz *.ps
distclean: clean
rm -f customize
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 \
/usr/local/dfstat/ \
/usr/local/dfstat/quotagraph \
/usr/local/dfstat/do_cron \
%: %.pl customize
sh ./customize < $< > $@
chmod +x $@
%: %.sh customize
sh ./customize < $< > $@
chmod +x $@
customize: configure
sh ./configure
$(SBINDIR) /usr/local/dfstat/:
mkdir -p $@
2004-04-26 10:32:46 +02:00
/usr/local/dfstat/%: %
$(INSTALL) -m 755 $^ $@
ifeq ($(CONFDIR_exists),ok)
configure: $(CONFDIR)/start \
$(CONFDIR)/perl \
$(CONFDIR)/df \
$(CONFDIR)/repquota \
$(CONFDIR)/sendmail \
$(CONFDIR)/scp \
$(CONFDIR)/finish
cat $^ > $@
endif
include GNUmakerules