diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2009-01-07 18:29:19 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2009-01-07 18:29:19 +0000 |
commit | e04a69e2130403a407afec2b23725764e2597f8b (patch) | |
tree | c61e22125351825fe6b6afefc1f2169e48efb9f7 /Makefile | |
parent | 576541e3f2b8a36e809e30f6ffbd0787aa742c35 (diff) | |
download | abuild-e04a69e2130403a407afec2b23725764e2597f8b.tar.gz abuild-e04a69e2130403a407afec2b23725764e2597f8b.tar.bz2 abuild-e04a69e2130403a407afec2b23725764e2597f8b.tar.xz abuild-e04a69e2130403a407afec2b23725764e2597f8b.zip |
Makefile: do not overwrite abuild.conf if it exist
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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)/ |