mirror of
https://gitlab.alpinelinux.org/alpine/abuild.git
synced 2025-01-05 06:09:41 +00:00
Makefile: install abuild.conf if DESTDIR is set
This commit is contained in:
parent
9f8e91d57b
commit
c18022931d
2
Makefile
2
Makefile
@ -22,7 +22,7 @@ install: $(USR_BIN_FILES) abuild.conf APKBUILD.proto functions.sh
|
|||||||
for i in $(USR_BIN_FILES); do\
|
for i in $(USR_BIN_FILES); do\
|
||||||
install -m 755 $$i $(DESTDIR)/$(prefix)/bin/$$i;\
|
install -m 755 $$i $(DESTDIR)/$(prefix)/bin/$$i;\
|
||||||
done
|
done
|
||||||
if [ -z "$(DESTDIR)" ] && [ ! -f "/$(sysconfdir)"/abuild.conf ]; then\
|
if [ -n "$(DESTDIR)" ] || [ ! -f "/$(sysconfdir)"/abuild.conf ]; then\
|
||||||
cp abuild.conf $(DESTDIR)/$(sysconfdir)/; \
|
cp abuild.conf $(DESTDIR)/$(sysconfdir)/; \
|
||||||
fi
|
fi
|
||||||
cp APKBUILD.proto $(DESTDIR)/$(prefix)/share/abuild
|
cp APKBUILD.proto $(DESTDIR)/$(prefix)/share/abuild
|
||||||
|
Loading…
Reference in New Issue
Block a user