The following changes were made to Makefile:

* added BRIEF
  * moved to new version scheme
  * removed MAKE and MAKEINST vars
This commit is contained in:
2017-03-29 15:53:03 -05:00
parent 9e2becb2a6
commit 3fdf2a54e6

View File

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