aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorPS <p@0x53.net>2026-02-07 11:32:25 +0100
committerPS <p@0x53.net>2026-02-07 11:32:25 +0100
commit88048289ee9d66f55952048f9a0ef6cfcef21599 (patch)
tree30b783ff47e605f862298cc7fc6c6b599d3ff280 /Makefile
parent02a071125de739ed54660ad014ffd57c42516abf (diff)
downloadgoetia-linux-init-88048289ee9d66f55952048f9a0ef6cfcef21599.tar.gz
goetia-linux-init-88048289ee9d66f55952048f9a0ef6cfcef21599.tar.bz2
goetia-linux-init-88048289ee9d66f55952048f9a0ef6cfcef21599.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 \