diff --git a/Makefile b/Makefile index 943ff2c..87978d9 100644 --- a/Makefile +++ b/Makefile @@ -11,19 +11,16 @@ DEPENDS = glibc ARCH = x86_64 URL = https://savannah.nongnu.org/projects/sysvinit +BRIEF = System that manages boot and shutdown DESC = System V style init programs original written by Miquel van Smoorenburg \ that control the booting and shutdown of your system -SNAPVER = sr3 +SNAPVER = 4 ARCHIVE := $(PWD)/SRC/$(shell ls SRC|egrep '(bz2|gz|tar|xz)$$'|tail -1) TYPE := $(shell file -ib $(ARCHIVE)|cut -d';' -f1|tr -d '\n') SRCDIR := $(shell tar -tf $(ARCHIVE)|head -1|sed 's/\/.*//') PATCHDIR := $(PWD)/SRC/patches -VERSION := $(shell echo $(SRCDIR)|egrep -o '\-[0-9].*'|sed 's/^-//')$(SNAPVER) - -MAKE = make -C src -MAKEINST = make -C src install -SNAPHACKS = +VERSION := $(shell echo $(SRCDIR)|egrep -o '\-[0-9].*'|sed 's/^-//')-$(SNAPVER) include /usr/share/snap/Makefile.snaplinux @@ -47,8 +44,7 @@ $(SRCDIR)/src/init: $(SRCDIR)/Makefile for patch in `find $(PATCHDIR) -name \*.patch|sort`; do \ patch --verbose -Np1 -i $$patch; \ done - @cd $(SRCDIR); \ - $(MAKE) + @cd $(SRCDIR) && make -C src $(ROOT): $(SRCDIR)/src/init @if [ -d $(ROOT) ]; then \ @@ -57,10 +53,7 @@ $(ROOT): $(SRCDIR)/src/init mkdir -v $(ROOT); \ fi - @cd $(SRCDIR); \ - $(MAKEINST) ROOT=$(ROOT) - - @$(SNAPHACKS) + @cd $(SRCDIR) && make -C src install ROOT=$(ROOT) clean: @rm -rvf $(ROOT) \