summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2009-01-07 18:29:19 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2009-01-07 18:29:19 +0000
commite04a69e2130403a407afec2b23725764e2597f8b (patch)
treec61e22125351825fe6b6afefc1f2169e48efb9f7 /Makefile
parent576541e3f2b8a36e809e30f6ffbd0787aa742c35 (diff)
downloadalpine-iso-e04a69e2130403a407afec2b23725764e2597f8b.tar.bz2
alpine-iso-e04a69e2130403a407afec2b23725764e2597f8b.tar.xz
Makefile: do not overwrite abuild.conf if it exist
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index fe62f54..055b1ec 100644
--- a/Makefile
+++ b/Makefile
@@ -18,7 +18,9 @@ install: abuild abuild.conf APKBUILD.proto functions.sh
mkdir -p $(DESTDIR)/$(prefix)/bin $(DESTDIR)/$(sysconfdir) \
$(DESTDIR)/$(datadir)
cp abuild buildrepo $(DESTDIR)/$(prefix)/bin/
- cp abuild.conf $(DESTDIR)/$(sysconfdir)/
+ if [ -z "$(DESTDIR)" ] && [ ! -f "/$(sysconfdir)"/abuild.conf ]; then\
+ cp abuild.conf $(DESTDIR)/$(sysconfdir)/; \
+ fi
cp APKBUILD.proto $(DESTDIR)/$(prefix)/share/abuild
cp functions.sh $(DESTDIR)/$(datadir)/