Makefile: do not overwrite abuild.conf if it exist

This commit is contained in:
Natanael Copa 2009-01-07 18:29:19 +00:00
parent 576541e3f2
commit e04a69e213

View File

@ -18,7 +18,9 @@ install: abuild abuild.conf APKBUILD.proto functions.sh
mkdir -p $(DESTDIR)/$(prefix)/bin $(DESTDIR)/$(sysconfdir) \ mkdir -p $(DESTDIR)/$(prefix)/bin $(DESTDIR)/$(sysconfdir) \
$(DESTDIR)/$(datadir) $(DESTDIR)/$(datadir)
cp abuild buildrepo $(DESTDIR)/$(prefix)/bin/ 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 APKBUILD.proto $(DESTDIR)/$(prefix)/share/abuild
cp functions.sh $(DESTDIR)/$(datadir)/ cp functions.sh $(DESTDIR)/$(datadir)/