From efcd2b112baacf97b784f965a4188733969f2b67 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Wed, 24 Jul 2002 22:12:28 +0000 Subject: add PMS_DIRS in Makefile.config and use it everywhere (cleaning some ugly stuff in Makefile.drakxtools while doing so) => now adding a new directory only need to be done at one place --- perl-install/Makefile.drakxtools | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) (limited to 'perl-install/Makefile.drakxtools') diff --git a/perl-install/Makefile.drakxtools b/perl-install/Makefile.drakxtools index 6b6dadfc9..70c5e9210 100644 --- a/perl-install/Makefile.drakxtools +++ b/perl-install/Makefile.drakxtools @@ -26,7 +26,7 @@ $(DIRS): [ ! -e $@/Makefile ] || $(MAKE) -C $@ install: - mkdir -p $(BINDEST) $(ETCDEST) $(SBINDEST) $(DATADIR)/{harddrake,pixmaps} $(LIBDEST)/{network,security,harddrake,interactive,partition_table} $(BINX11DEST) $(LIBX11DEST) $(PIXDIR) $(INITDIR) + mkdir -p $(BINDEST) $(ETCDEST) $(SBINDEST) $(DATADIR)/{harddrake,pixmaps} $(BINX11DEST) $(LIBX11DEST) $(PIXDIR) $(INITDIR) install -d $(INLIBDEST_DIRS:%=$(LIBDEST)/%) install $(STANDALONEPMS) $(SBINDEST) install -s rpcinfo-flushed ddcprobe/ddcxinfos serial_probe/serial_probe $(SBINDEST) @@ -35,21 +35,13 @@ install: mv -f $(SBINDEST)/lsnetdrake $(BINDEST)/lsnetdrake install -m 644 *.pm $(LIBDEST) - for i in network harddrake security interactive partition_table; do install -m 644 $$i/*.pm $(LIBDEST)/$$i/;done + for i in $(PMS_DIRS); do install -d $$i ; install -m 644 $$i/*.pm $(LIBDEST)/$$i/;done install -m 644 pixmaps/* $(PIXDIR) install -m 644 share/diskdrake.rc $(DATADIR)/$(NAME) install -d $(PREFIX)/etc/security echo 'RESTRICT=yes' > $(PREFIX)/etc/security/fileshare.conf - install -m 644 $(patsubst %,Newt/%.pm,Newt) $(LIBDEST)/Newt - install -m 644 $(patsubst %,c/%.pm,stuff) $(LIBDEST)/c - install -m 644 $(patsubst %,sbus_probing/%.pm,main) $(LIBDEST)/sbus_probing - install -m 644 $(patsubst %,resize_fat/%.pm,main any boot_sector c_rewritten dir_entry directory fat info_sector io) $(LIBDEST)/resize_fat - - install -d $(LIBDEST)/diskdrake - install -m 644 diskdrake/*.pm $(LIBDEST)/diskdrake - for i in $(HAVEINST_DIRS); do \ $(MAKE) -C $$i install PREFIX=$(PREFIX) DATADIR=$(DATADIR) NAME=$(NAME) ; \ done -- cgit v1.2.1