From 37f5df5bf841297258cf033152d6fe46592c3f6e Mon Sep 17 00:00:00 2001 From: Bart De Schuymer Date: Thu, 18 Mar 2010 09:00:23 +0000 Subject: make INITDIR directory if DESTDIR is specified --- Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/Makefile b/Makefile index 9282884..7ca2929 100644 --- a/Makefile +++ b/Makefile @@ -50,6 +50,7 @@ scripts: arptables-save arptables-restore arptables.sysv cat arptables-restore | sed 's/__EXEC_PATH__/$(tmp1)/g' > arptables-restore_ install -m 0755 arptables-restore_ $(DESTDIR)$(BINDIR)/arptables-restore cat arptables.sysv | sed 's/__EXEC_PATH__/$(tmp1)/g' | sed 's/__SYSCONFIG__/$(tmp2)/g' > arptables.sysv_ + if [ "$(DESTDIR)" != "" ]; then mkdir -p $(DESTDIR)$(INITDIR); fi if test -d $(DESTDIR)$(INITDIR); then install -m 0755 arptables.sysv_ $(DESTDIR)$(INITDIR)/arptables; fi rm -f arptables-save_ arptables-restore_ arptables.sysv_ -- cgit v1.2.3