Makefile: simplify install and fix exec permissions
This commit is contained in:
parent
e236b4b854
commit
1b253a9210
26
Makefile
26
Makefile
|
@ -129,30 +129,20 @@ Kyuafile: tests/Kyuafile
|
||||||
check: $(SCRIPTS) $(USR_BIN_FILES) functions.sh tests/Kyuafile Kyuafile tests/testdata/abuild.key.pub
|
check: $(SCRIPTS) $(USR_BIN_FILES) functions.sh tests/Kyuafile Kyuafile tests/testdata/abuild.key.pub
|
||||||
kyua --variable parallelism=$(shell nproc) test || (kyua report --verbose && exit 1)
|
kyua --variable parallelism=$(shell nproc) test || (kyua report --verbose && exit 1)
|
||||||
|
|
||||||
install: $(USR_BIN_FILES) $(SAMPLES) $(MAN_PAGES) default.conf abuild.conf functions.sh
|
install: $(USR_BIN_FILES) $(SAMPLES) $(MAN_PAGES) $(AUTOTOOLS_TOOLCHAIN_FILES) default.conf abuild.conf functions.sh
|
||||||
install -d $(DESTDIR)/$(bindir) $(DESTDIR)/$(sysconfdir) \
|
install -D -m 755 -t $(DESTDIR)/$(bindir)/ $(USR_BIN_FILES);\
|
||||||
$(DESTDIR)/$(sharedir) $(DESTDIR)/$(mandir)/man1 \
|
chmod 4555 $(DESTDIR)/$(bindir)/abuild-sudo
|
||||||
$(DESTDIR)/$(mandir)/man5
|
|
||||||
for i in $(USR_BIN_FILES); do\
|
|
||||||
install -m 755 $$i $(DESTDIR)/$(bindir)/$$i;\
|
|
||||||
done
|
|
||||||
chmod 4555 $(DESTDIR)/$(prefix)/bin/abuild-sudo
|
|
||||||
for i in adduser addgroup apk; do \
|
for i in adduser addgroup apk; do \
|
||||||
ln -fs abuild-sudo $(DESTDIR)/$(bindir)/abuild-$$i; \
|
ln -fs abuild-sudo $(DESTDIR)/$(bindir)/abuild-$$i; \
|
||||||
done
|
done
|
||||||
for i in $(MAN_1_PAGES); do\
|
install -D -m 644 -t $(DESTDIR)/$(mandir)/man1/ $(MAN_1_PAGES);\
|
||||||
install -m 644 $$i $(DESTDIR)/$(mandir)/man1/$$i;\
|
install -D -m 644 -t $(DESTDIR)/$(mandir)/man5/ $(MAN_5_PAGES);\
|
||||||
done
|
|
||||||
for i in $(MAN_5_PAGES); do\
|
|
||||||
install -m 644 $$i $(DESTDIR)/$(mandir)/man5/$$i;\
|
|
||||||
done
|
|
||||||
if [ -n "$(DESTDIR)" ] || [ ! -f "/$(sysconfdir)"/abuild.conf ]; then\
|
if [ -n "$(DESTDIR)" ] || [ ! -f "/$(sysconfdir)"/abuild.conf ]; then\
|
||||||
install -t $(DESTDIR)/$(sysconfdir)/ abuild.conf; \
|
install -D -m 644 -t $(DESTDIR)/$(sysconfdir)/ abuild.conf; \
|
||||||
fi
|
fi
|
||||||
|
|
||||||
install -t $(DESTDIR)/$(prefix)/share/abuild/ $(SAMPLES)
|
install -D -t $(DESTDIR)/$(sharedir)/ $(AUTOTOOLS_TOOLCHAIN_FILES)
|
||||||
install -t $(DESTDIR)/$(prefix)/share/abuild/ $(AUTOTOOLS_TOOLCHAIN_FILES)
|
install -D -m 644 -t $(DESTDIR)/$(sharedir)/ functions.sh default.conf $(SAMPLES)
|
||||||
install -t $(DESTDIR)/$(sharedir)/ functions.sh default.conf
|
|
||||||
|
|
||||||
depends depend:
|
depends depend:
|
||||||
sudo apk --no-cache -U --virtual .abuild-depends add openssl-dev zlib-dev
|
sudo apk --no-cache -U --virtual .abuild-depends add openssl-dev zlib-dev
|
||||||
|
|
Loading…
Reference in New Issue