diff options
author | 2010-08-23 00:01:08 -0400 | |
---|---|---|
committer | 2010-08-23 00:01:08 -0400 | |
commit | 4dc68a994ebcec662b3bcf8870ba733821abd894 (patch) | |
tree | c3a1a7716cc2720177e451085b2833b4d8f2bca5 | |
parent | rpm2targz: avoid double deletion of workdir (diff) | |
download | rpm2targz-4dc68a994ebcec662b3bcf8870ba733821abd894.tar.gz rpm2targz-4dc68a994ebcec662b3bcf8870ba733821abd894.tar.bz2 rpm2targz-4dc68a994ebcec662b3bcf8870ba733821abd894.zip |
improve local symlink management
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
-rw-r--r-- | .gitignore | 11 | ||||
-rw-r--r-- | Makefile | 10 |
2 files changed, 16 insertions, 5 deletions
@@ -7,7 +7,14 @@ core *.orig *.rej -rpm2tar -rpmoffset +/rpm2tar +/rpm2tarbz2 +/rpm2tarlzma +/rpm2tarxz +/rpm2tbz2 +/rpm2tgz +/rpm2txz +/rpmoffset +/rpmunpack /test @@ -16,7 +16,7 @@ rpm2tar: rpm2targz $(dosym) $< $@ clean: - rm -f *.o rpmoffset rpm2tar + rm -f *.o rpmoffset rpm2tar $(LINKS) dist: git archive --prefix=$(P)/ master | lzma > $(P).tar.lzma @@ -26,12 +26,16 @@ dist-live: clean mkdir $(P) cp `find . -maxdepth 1 -type f '!' -name .gitignore` $(P) +LINKS = $(patsubst %,rpm2%,tar tarbz2 tbz2 tarlzma tgz tarxz txz) +links: + set -e; for t in $(LINKS) ; do $(dosym) rpm2targz $$t ; done + install: rpmoffset $(dodir) $(DESTDIR)$(bindir) $(dobin) rpm2targz rpmoffset $(DESTDIR)$(bindir) set -e ; \ - for t in tar tarbz2 tbz2 tarlzma tgz tarxz txz ; do \ - $(dosym) rpm2targz $(DESTDIR)$(bindir)/rpm2$$t ; \ + for t in $(LINKS) ; do \ + $(dosym) rpm2targz $(DESTDIR)$(bindir)/$$t ; \ done $(dosym) rpm2targz $(DESTDIR)$(bindir)/rpmunpack |