summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile18
1 files changed, 7 insertions, 11 deletions
diff --git a/Makefile b/Makefile
index 283c397..4ad8c64 100644
--- a/Makefile
+++ b/Makefile
@@ -36,12 +36,12 @@ distclean: clean
tgz: distclean
@. 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 && \
+ rm -rf ../../stage/$$package-$$version && \
+ cp -a . ../../stage/$$package-$$version && \
+ cd ../../stage && \
+ tar -zpcv --owner=0 --group=0 --numeric-owner --exclude=.git* -f $$package-$$version.tar.gz $$package-$$version && \
sha256sum $$package-$$version.tar.gz > $$package-$$version.tar.gz.sha256 && \
- exec rm -rf /tmp/$$package-$$version
+ exec rm -rf $$package-$$version
install: $(INSTALL_BINS) $(INSTALL_LIBS) $(INSTALL_EXTRAS)
@@ -63,7 +63,7 @@ $(ALL_BINS) $(ALL_LIBS):
-- $^ > $@
$(INSTALL_BINS) $(INSTALL_LIBS):
- exec $(INSTALL) -D -m 644 $^ $@
+ exec $(INSTALL) -D -m 644 $^ $(DESTDIR)/$@
grep -F -- $^ - < package/modes | { read name mode owner && \
if [ x$${mode} != x ] ; then chmod $${mode} $@ ; fi && \
if [ x$${owner} != x ] ; then chown -- $${owner} $@ ; fi ; } || exit 0
@@ -73,15 +73,11 @@ $(DESTDIR)$(exthome):
exec $(INSTALL) -D -l $(package)-$(version) $@
$(SLASHCOMMAND_BINS):
- exec $(INSTALL) -D -l $(exthome)/command/$$(basename $@) $@
+ exec $(INSTALL) -D -l $(DESTDIR)$(exthome)/command/$$(basename $@) $@
update: $(DESTDIR)$(exthome)
global-links: $(SLASHCOMMAND_BINS)
-uninstall:
- exec rm -f $(INSTALL_BINS) $(SLASHCOMMAND_BINS)
- exec rm -Rf $(libdir)
-
.PHONY: \
it all clean distclean tgz update global-links \
install uninstall \