summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile9
1 files changed, 5 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 867f033..f5b8657 100644
--- a/Makefile
+++ b/Makefile
@@ -63,11 +63,12 @@ distclean: clean
@exec rm -f config.mak src/include/$(package)/config.h
tgz: distclean
- @rm -rf /tmp/$(package)-$(version) && \
- cp -a . /tmp/$(package)-$(version) && \
+ @. package/info && \
+ rm -rf /tmp/$$package-$$version && \
+ cp -a . /tmp/$$package-$$version && \
cd /tmp && \
- tar -zpcv --owner=0 --group=0 --numeric-owner --exclude=.git* -f /tmp/$(package)-$(version).tar.gz $(package)-$(version) && \
- exec rm -rf /tmp/$(package)-$(version)
+ tar -zpcv --owner=0 --group=0 --numeric-owner --exclude=.git* -f /tmp/$$package-$$version.tar.gz $$package-$$version && \
+ exec rm -rf /tmp/$$package-$$version
strip: $(ALL_LIBS) $(ALL_BINS)
ifneq ($(strip $(STATIC_LIBS)),)