diff options
author | Luke Shumaker <LukeShu@sbcglobal.net> | 2012-11-28 14:41:30 -0500 |
---|---|---|
committer | Luke Shumaker <LukeShu@sbcglobal.net> | 2012-11-28 14:41:30 -0500 |
commit | f22d5bdc64963753261b1aebecac41bb45fbf958 (patch) | |
tree | 9b5bd6059b2308ecf864ca9bcd5516334019add3 | |
parent | 92a87bf9e4e0a5a2bfbe1072c61f2a2cb2bdd233 (diff) |
clean up Makefile, symlink archroot<->mkarchroot (prepare to deprecate the latter)
-rw-r--r-- | Makefile | 39 |
1 files changed, 21 insertions, 18 deletions
@@ -12,7 +12,10 @@ SBINPROGS = \ mkarchroot \ makechrootpkg -all: $(BINPROGS) $(SBINPROGS) bash_completion zsh_completion +SHAREFILES = \ + lib/common.sh + +all: $(BINPROGS) $(SBINPROGS) $(SHAREFILES) bash_completion zsh_completion edit = sed -e "s|@pkgdatadir[@]|$(DESTDIR)$(PREFIX)/share/devtools|g" @@ -30,26 +33,26 @@ install: install -dm0755 $(DESTDIR)$(PREFIX)/bin install -dm0755 $(DESTDIR)$(PREFIX)/sbin install -dm0755 $(DESTDIR)$(PREFIX)/share/devtools - install -m0755 ${BINPROGS} $(DESTDIR)$(PREFIX)/bin - install -m0755 ${SBINPROGS} $(DESTDIR)$(PREFIX)/sbin + + install -m0755 ${BINPROGS} $(DESTDIR)$(PREFIX)/bin + install -m0755 ${SBINPROGS} $(DESTDIR)$(PREFIX)/sbin + install -m0644 ${SHAREFILES} $(DESTDIR)$(PREFIX)/share/devtools + ln -sf find-libdeps $(DESTDIR)$(PREFIX)/bin/find-libprovides - install -Dm0644 bash_completion $(DESTDIR)/usr/share/bash-completion/completions/devtools - install -Dm0644 zsh_completion $(DESTDIR)$(PREFIX)/share/zsh/site-functions/_devtools - install -Dm0644 lib/common.sh $(DESTDIR)/usr/share/devtools + ln -sf mkarchroot $(DESTDIR)$(PREFIX)/sbin/archroot + + install -Dm0644 bash_completion $(DESTDIR)$(PREFIX)/share/bash-completion/completions/devtools + install -Dm0644 zsh_completion $(DESTDIR)$(PREFIX)/share/zsh/site-functions/_devtools uninstall: - for f in ${BINPROGS}; do rm -f $(DESTDIR)$(PREFIX)/bin/$$f; done - for f in ${SBINPROGS}; do rm -f $(DESTDIR)$(PREFIX)/sbin/$$f; done - for f in ${CONFIGFILES}; do rm -f $(DESTDIR)$(PREFIX)/share/devtools/$$f; done - rm $(DESTDIR)/usr/share/bash-completion/completions/devtools - rm $(DESTDIR)$(PREFIX)/share/zsh/site-functions/_devtools - rm -f $(DESTDIR)$(PREFIX)/bin/find-libprovides + for f in ${BINPROGS} ; do rm -f $(DESTDIR)$(PREFIX)/bin/$$f; done + for f in ${SBINPROGS} ; do rm -f $(DESTDIR)$(PREFIX)/sbin/$$f; done + for f in ${SHAREFILES}; do rm -f $(DESTDIR)$(PREFIX)/share/devtools/$${f##*/}; done -dist: - git archive --format=tar --prefix=devtools-$(V)/ $(V) | gzip -9 > devtools-$(V).tar.gz - gpg --detach-sign --use-agent devtools-$(V).tar.gz + rm -f $(DESTDIR)$(PREFIX)/bin/find-libprovides + rm -f $(DESTDIR)$(PREFIX)/sbin/archroot -upload: - scp devtools-$(V).tar.gz devtools-$(V).tar.gz.sig gerolde.archlinux.org:/srv/ftp/other/devtools/ + rm -f $(DESTDIR)$(PREFIX)/share/bash-completion/completions/devtools + rm -f $(DESTDIR)$(PREFIX)/share/zsh/site-functions/_devtools -.PHONY: all clean install uninstall dist upload +.PHONY: all clean install uninstall |