2009-11-15 03:01:20 +05:30
|
|
|
all install clean distclean:
|
|
|
|
$(MAKE) -C src $@
|
2010-04-14 17:34:35 +05:30
|
|
|
|
|
|
|
PACKAGE=sysvinit
|
2018-05-05 23:03:54 +05:30
|
|
|
VERSION=$(shell git describe --tags --abbrev=4 HEAD 2>/dev/null | tr %_ :~)
|
|
|
|
override TARBALL=$(PACKAGE)-$(VERSION).tar.xz
|
|
|
|
override TARBALL_LATEST=$(PACKAGE)-latest.tar.xz
|
|
|
|
override SFTPBATCH=upload-$(VERSION)-sftpbatch
|
2010-04-14 17:34:35 +05:30
|
|
|
|
2014-02-08 00:43:52 +05:30
|
|
|
dist: $(TARBALL)
|
2018-05-05 23:03:54 +05:30
|
|
|
@echo "tarball $(TARBALL) ready"
|
2014-02-08 00:43:52 +05:30
|
|
|
|
2010-04-14 17:34:35 +05:30
|
|
|
upload: $(SFTPBATCH)
|
2018-05-05 23:03:54 +05:30
|
|
|
echo @sftp -b $< dl.sv.nongnu.org:/releases/$(PACKAGE)
|
2010-04-14 17:34:35 +05:30
|
|
|
|
|
|
|
$(SFTPBATCH): $(TARBALL).sig
|
|
|
|
@echo progress > $@
|
|
|
|
@echo put $(TARBALL) >> $@
|
2010-04-29 16:11:19 +05:30
|
|
|
@echo chmod 664 $(notdir $(TARBALL)) >> $@
|
2010-04-14 17:34:35 +05:30
|
|
|
@echo put $(TARBALL).sig >> $@
|
2010-04-29 16:11:19 +05:30
|
|
|
@echo chmod 664 $(notdir $(TARBALL)).sig >> $@
|
2018-05-05 23:03:54 +05:30
|
|
|
@echo rm $(TARBALL_LATEST) >> $@
|
|
|
|
@echo symlink $(notdir $(TARBALL)) $(TARBALL_LATEST) >> $@
|
2010-04-14 17:34:35 +05:30
|
|
|
@echo quit >> $@
|
|
|
|
|
|
|
|
$(TARBALL).sig: $(TARBALL)
|
|
|
|
@gpg -q -ba --use-agent -o $@ $<
|
|
|
|
|
2018-05-05 23:03:54 +05:30
|
|
|
$(TARBALL): .git
|
|
|
|
@git archive --prefix=$(PACKAGE)-$(VERSION)/ $(VERSION) -o $(TARBALL)
|