From 20c4d34315020dbc8d5987f455855bd0b0aa11f5 Mon Sep 17 00:00:00 2001 From: Jan Lindemann Date: Mon, 1 Jul 2002 18:21:15 +0000 Subject: [PATCH] scripts/Makefile: Add support for cfg section --- scripts/Makefile | 25 ++++++++++++++----------- 1 file changed, 14 insertions(+), 11 deletions(-) diff --git a/scripts/Makefile b/scripts/Makefile index 00bd1a8f..e6c52692 100644 --- a/scripts/Makefile +++ b/scripts/Makefile @@ -29,22 +29,25 @@ # # ######################################################################## -EXEDIR = $(HOME)/bin -CONFDIR = $(HOME)/.jannet +MODDIR = ../.. + +include $(MODDIR)/make/scripts.mk + +#INSTALL_BINDIR = $(ENV_PREFIX)/$(HOME)/bin +#CONFDIR = $(ENV_PREFIX)/$(HOME)/.jannet all: -$(EXEDIR): - mkdir -p $@ +$(INSTALL_BINDIR): + $(INSTALL) -o root -g root -m 755 -d $@ -$(CONFDIR): - mkdir -p $@ +#install: $(EXEDIR) $(CONFDIR) +# $(INSTALL) *.sh -m 755 $(EXEDIR)/ +# if [ -f *.conf ]; then $(INSTALL) *.conf $(CONFDIR)/; fi -install: $(EXEDIR) $(CONFDIR) - install *.sh -m 755 $(EXEDIR)/ - if [ -f *.conf ]; then install *.conf $(CONFDIR)/; fi +#clean distclean libclean: +# rm -rf *~ .*.swp core *.rep -clean distclean libclean: - rm -rf *~ .*.swp core *.rep +install: $(INSTALL_BINDIR) $(INSTALLED_EXE_SH) profclean: