From e04a69e2130403a407afec2b23725764e2597f8b Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Wed, 7 Jan 2009 18:29:19 +0000 Subject: Makefile: do not overwrite abuild.conf if it exist --- Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'Makefile') 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)/ -- cgit v1.2.3-60-g2f50