2009-11-14 21:31:20 +00:00
|
|
|
all install clean distclean:
|
|
|
|
$(MAKE) -C src $@
|
2010-04-14 12:04:35 +00:00
|
|
|
|
|
|
|
PACKAGE=sysvinit
|
2018-05-05 14:51:22 -03:00
|
|
|
VERSION=$(shell git describe --tags --abbrev=0 HEAD 2>/dev/null)
|
|
|
|
GITLOGIN=$(shell git remote -v | head -n 1 | cut -f 1 -d '@' | sed 's/origin\t//g')
|
2018-05-05 14:33:54 -03:00
|
|
|
override TARBALL=$(PACKAGE)-$(VERSION).tar.xz
|
|
|
|
override TARBALL_LATEST=$(PACKAGE)-latest.tar.xz
|
|
|
|
override SFTPBATCH=upload-$(VERSION)-sftpbatch
|
2010-04-14 12:04:35 +00:00
|
|
|
|
2014-02-07 19:13:52 +00:00
|
|
|
dist: $(TARBALL)
|
2018-05-05 14:33:54 -03:00
|
|
|
@echo "tarball $(TARBALL) ready"
|
2014-02-07 19:13:52 +00:00
|
|
|
|
2010-04-14 12:04:35 +00:00
|
|
|
upload: $(SFTPBATCH)
|
2018-05-05 14:51:22 -03:00
|
|
|
echo @sftp -b $< $(GITLOGIN)@dl.sv.nongnu.org:/releases/$(PACKAGE)
|
2010-04-14 12:04:35 +00:00
|
|
|
|
|
|
|
$(SFTPBATCH): $(TARBALL).sig
|
|
|
|
@echo progress > $@
|
|
|
|
@echo put $(TARBALL) >> $@
|
2010-04-29 10:41:19 +00:00
|
|
|
@echo chmod 664 $(notdir $(TARBALL)) >> $@
|
2010-04-14 12:04:35 +00:00
|
|
|
@echo put $(TARBALL).sig >> $@
|
2010-04-29 10:41:19 +00:00
|
|
|
@echo chmod 664 $(notdir $(TARBALL)).sig >> $@
|
2018-05-05 14:33:54 -03:00
|
|
|
@echo rm $(TARBALL_LATEST) >> $@
|
|
|
|
@echo symlink $(notdir $(TARBALL)) $(TARBALL_LATEST) >> $@
|
2010-04-14 12:04:35 +00:00
|
|
|
@echo quit >> $@
|
|
|
|
|
|
|
|
$(TARBALL).sig: $(TARBALL)
|
|
|
|
@gpg -q -ba --use-agent -o $@ $<
|
|
|
|
|
2018-05-05 14:33:54 -03:00
|
|
|
$(TARBALL): .git
|
|
|
|
@git archive --prefix=$(PACKAGE)-$(VERSION)/ $(VERSION) -o $(TARBALL)
|