aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorPS <p@0x53.net>2026-02-07 11:32:31 +0100
committerPS <p@0x53.net>2026-02-07 11:32:31 +0100
commitc31f8338f26ea068c5ba898b21d7ea8b6edd7465 (patch)
treef8fa01190f57cc8eff5cd997350bcb991ea16013 /Makefile
parentd31250fc850b196d2b46b94c82f0538f4b79248c (diff)
downloadgoetia-s6-linux-init-c31f8338f26ea068c5ba898b21d7ea8b6edd7465.tar.gz
goetia-s6-linux-init-c31f8338f26ea068c5ba898b21d7ea8b6edd7465.tar.bz2
goetia-s6-linux-init-c31f8338f26ea068c5ba898b21d7ea8b6edd7465.zip
Improve build system and doc
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile19
1 files changed, 8 insertions, 11 deletions
diff --git a/Makefile b/Makefile
index 0e68c25..4ad8c64 100644
--- a/Makefile
+++ b/Makefile
@@ -36,11 +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 && \
- exec rm -rf /tmp/$$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 $$package-$$version
install: $(INSTALL_BINS) $(INSTALL_LIBS) $(INSTALL_EXTRAS)
@@ -62,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
@@ -72,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 \