simple/quotacheck/GNUmakefile

53 lines
933 B
Makefile
Raw Normal View History

include GNUmakevars
CONFDIR=../../configure
CONFDIR_exists=$(shell [ -d $(CONFDIR) ] && echo ok)
2004-04-26 10:32:46 +02:00
TARGETS = quotacheck quotastat quotasanitycheck quotagraph
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/ \
2004-04-26 10:32:46 +02:00
/usr/local/dfstat/quotagraph
%: %.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