forked from mirrored-repos/manjaro-tools
update makefile
This commit is contained in:
parent
9c5403e6f3
commit
b3d874318e
1 changed files with 35 additions and 11 deletions
46
Makefile
46
Makefile
|
@ -1,6 +1,6 @@
|
||||||
V=0.9.3
|
V=0.9.4
|
||||||
|
|
||||||
PREFIX = /usr/local
|
PREFIX = $(PREFIX)/local
|
||||||
|
|
||||||
BINPROGS = \
|
BINPROGS = \
|
||||||
bin/checkpkg \
|
bin/checkpkg \
|
||||||
|
@ -16,7 +16,10 @@ BINPROGS = \
|
||||||
bin/manjaro-chroot \
|
bin/manjaro-chroot \
|
||||||
bin/fstabgen \
|
bin/fstabgen \
|
||||||
bin/make-set \
|
bin/make-set \
|
||||||
bin/chroot-run
|
bin/chroot-run \
|
||||||
|
bin/mkiso \
|
||||||
|
bin/buildiso \
|
||||||
|
bin/testiso
|
||||||
|
|
||||||
SYSCONFIGFILES = \
|
SYSCONFIGFILES = \
|
||||||
conf/manjaro-tools.conf
|
conf/manjaro-tools.conf
|
||||||
|
@ -38,6 +41,17 @@ LIBS = \
|
||||||
lib/util-mount.sh \
|
lib/util-mount.sh \
|
||||||
lib/util-msg.sh
|
lib/util-msg.sh
|
||||||
|
|
||||||
|
CPIOHOOKS = \
|
||||||
|
hooks/msio \
|
||||||
|
hooks/miso_loop_mnt \
|
||||||
|
hooks/miso_pxe_nbd
|
||||||
|
|
||||||
|
CPIOINST = \
|
||||||
|
inst/msio \
|
||||||
|
inst/miso_loop_mnt \
|
||||||
|
inst/miso_pxe_nbd \
|
||||||
|
inst/miso_kms
|
||||||
|
|
||||||
all: $(BINPROGS) bin/bash_completion bin/zsh_completion
|
all: $(BINPROGS) bin/bash_completion bin/zsh_completion
|
||||||
|
|
||||||
edit = sed -e "s|@pkgdatadir[@]|$(DESTDIR)$(PREFIX)/share/manjaro-tools|g" \
|
edit = sed -e "s|@pkgdatadir[@]|$(DESTDIR)$(PREFIX)/share/manjaro-tools|g" \
|
||||||
|
@ -67,14 +81,20 @@ install:
|
||||||
install -m0644 ${CONFIGFILES} $(DESTDIR)$(PREFIX)/share/manjaro-tools
|
install -m0644 ${CONFIGFILES} $(DESTDIR)$(PREFIX)/share/manjaro-tools
|
||||||
ln -sf find-libdeps $(DESTDIR)$(PREFIX)/bin/find-libprovides
|
ln -sf find-libdeps $(DESTDIR)$(PREFIX)/bin/find-libprovides
|
||||||
install -m0644 ${LIBS} $(DESTDIR)$(PREFIX)/lib/manjaro-tools
|
install -m0644 ${LIBS} $(DESTDIR)$(PREFIX)/lib/manjaro-tools
|
||||||
# compat symlink for manjaroiso
|
|
||||||
ln -sf basestrap $(DESTDIR)$(PREFIX)/bin/pacstrap
|
install -dm0644 $(DESTDIR)$(PREFIX)/lib/initcpio/hooks
|
||||||
#ln -sf fstabgen $(DESTDIR)$(PREFIX)/bin/genfstab
|
install -m0644 ${CPIOHOOKS} $(DESTDIR)$(PREFIX)/lib/initcpio/hooks
|
||||||
#ln -sf manjaro-chroot $(DESTDIR)$(PREFIX)/bin/arch-chroot
|
install -dm0644 $(DESTDIR)$(PREFIX)/lib/initcpio/install
|
||||||
|
install -m0644 ${CPIOINST} $(DESTDIR)$(PREFIX)/lib/initcpio/install
|
||||||
|
|
||||||
install -Dm0644 bin/bash_completion $(DESTDIR)/$(PREFIX)/share/bash-completion/completions/manjaro_tools
|
install -Dm0644 bin/bash_completion $(DESTDIR)/$(PREFIX)/share/bash-completion/completions/manjaro_tools
|
||||||
install -Dm0644 bin/zsh_completion $(DESTDIR)$(PREFIX)/share/zsh/site-functions/_manjaro_tools
|
install -Dm0644 bin/zsh_completion $(DESTDIR)$(PREFIX)/share/zsh/site-functions/_manjaro_tools
|
||||||
|
|
||||||
|
# compat symlink for manjaroiso
|
||||||
|
#ln -sf basestrap $(DESTDIR)$(PREFIX)/bin/pacstrap
|
||||||
|
#ln -sf fstabgen $(DESTDIR)$(PREFIX)/bin/genfstab
|
||||||
|
#ln -sf manjaro-chroot $(DESTDIR)$(PREFIX)/bin/arch-chroot
|
||||||
|
|
||||||
uninstall:
|
uninstall:
|
||||||
for f in ${SYSCONFIGFILES}; do rm -f $(DESTDIR)$(SYSCONFDIR)/manjaro-tools/$$f; done
|
for f in ${SYSCONFIGFILES}; do rm -f $(DESTDIR)$(SYSCONFDIR)/manjaro-tools/$$f; done
|
||||||
for f in ${SETS}; do rm -f $(DESTDIR)$(SYSCONFDIR)/manjaro-tools/sets/$$f; done
|
for f in ${SETS}; do rm -f $(DESTDIR)$(SYSCONFDIR)/manjaro-tools/sets/$$f; done
|
||||||
|
@ -82,14 +102,18 @@ uninstall:
|
||||||
for f in ${CONFIGFILES}; do rm -f $(DESTDIR)$(PREFIX)/share/manjaro-tools/$$f; done
|
for f in ${CONFIGFILES}; do rm -f $(DESTDIR)$(PREFIX)/share/manjaro-tools/$$f; done
|
||||||
rm -f $(DESTDIR)$(PREFIX)/bin/find-libprovides
|
rm -f $(DESTDIR)$(PREFIX)/bin/find-libprovides
|
||||||
for f in ${LIBS}; do rm -f $(DESTDIR)$(PREFIX)/lib/manjaro-tools/$$f; done
|
for f in ${LIBS}; do rm -f $(DESTDIR)$(PREFIX)/lib/manjaro-tools/$$f; done
|
||||||
# compat symlink for manjaroiso
|
|
||||||
rm -f $(DESTDIR)$(PREFIX)/bin/pacstrap
|
for f in ${CPIOHOOKS}; do rm -f $(DESTDIR)$(PREFIX)/lib/initcpio/hooks/$$f; done
|
||||||
#rm -f $(DESTDIR)$(PREFIX)/bin/genfstab
|
for f in ${CPIOINST}; do rm -f $(DESTDIR)$(PREFIX)/lib/initcpio/install/$$f; done
|
||||||
#rm -f $(DESTDIR)$(PREFIX)/bin/arch-chroot
|
|
||||||
|
|
||||||
rm $(DESTDIR)/$(PREFIX)/share/bash-completion/completions/manjaro_tools
|
rm $(DESTDIR)/$(PREFIX)/share/bash-completion/completions/manjaro_tools
|
||||||
rm $(DESTDIR)$(PREFIX)/share/zsh/site-functions/_manjaro_tools
|
rm $(DESTDIR)$(PREFIX)/share/zsh/site-functions/_manjaro_tools
|
||||||
|
|
||||||
|
# compat symlink for manjaroiso
|
||||||
|
#rm -f $(DESTDIR)$(PREFIX)/bin/pacstrap
|
||||||
|
#rm -f $(DESTDIR)$(PREFIX)/bin/genfstab
|
||||||
|
#rm -f $(DESTDIR)$(PREFIX)/bin/arch-chroot
|
||||||
|
|
||||||
dist:
|
dist:
|
||||||
git archive --format=tar --prefix=manjaro-tools-$(V)/ $(V) | gzip -9 > manjaro-tools-$(V).tar.gz
|
git archive --format=tar --prefix=manjaro-tools-$(V)/ $(V) | gzip -9 > manjaro-tools-$(V).tar.gz
|
||||||
gpg --detach-sign --use-agent manjaro-tools-$(V).tar.gz
|
gpg --detach-sign --use-agent manjaro-tools-$(V).tar.gz
|
||||||
|
|
Loading…
Reference in a new issue