summaryrefslogtreecommitdiffstats
path: root/userspace/arptables/Makefile
diff options
context:
space:
mode:
authorBart De Schuymer <bdschuym@pandora.be>2010-03-18 09:00:23 +0000
committerBart De Schuymer <bdschuym@pandora.be>2010-03-18 09:00:23 +0000
commitabcb1ec17950408ced445c66c756072b2454ee25 (patch)
tree9a098f8249cc44dd8cff38a0d3e1e8f929a1b9bb /userspace/arptables/Makefile
parent6ea5357cb38f429db92fcb3709885303462082ba (diff)
make INITDIR directory if DESTDIR is specified
Diffstat (limited to 'userspace/arptables/Makefile')
-rw-r--r--userspace/arptables/Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/userspace/arptables/Makefile b/userspace/arptables/Makefile
index 9282884..7ca2929 100644
--- a/userspace/arptables/Makefile
+++ b/userspace/arptables/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_