The following changes were made to Makefile:
* Added BRIEF * Moved to new version scheme * Moved make commands to more appropriate location
This commit is contained in:
19
Makefile
19
Makefile
@@ -11,21 +11,18 @@
|
|||||||
DEPENDS =
|
DEPENDS =
|
||||||
ARCH = x86_64
|
ARCH = x86_64
|
||||||
URL = http://sethwklein.net/iana-etc
|
URL = http://sethwklein.net/iana-etc
|
||||||
|
BRIEF = Definitions for services and protocols
|
||||||
DESC = The iana-etc package installs services(5) and protocols(5) using \
|
DESC = The iana-etc package installs services(5) and protocols(5) using \
|
||||||
data from the Internet Assigned Numbers Authority <http://www.iana.org/>
|
data from the Internet Assigned Numbers Authority <http://www.iana.org/>
|
||||||
SNAPVER = sr0
|
SNAPVER = 1
|
||||||
|
|
||||||
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 get' should download latest, but currently doesn't...
|
# NOTE: 'make get' should download latest, but currently doesn't...
|
||||||
|
|
||||||
MAKE = make
|
|
||||||
MAKEINST = make install
|
|
||||||
SNAPHACKS =
|
|
||||||
|
|
||||||
include /usr/share/snap/Makefile.snaplinux
|
include /usr/share/snap/Makefile.snaplinux
|
||||||
|
|
||||||
@@ -45,8 +42,7 @@ $(SRCDIR)/Makefile: $(ARCHIVE)
|
|||||||
@touch $(SRCDIR)/Makefile
|
@touch $(SRCDIR)/Makefile
|
||||||
|
|
||||||
$(SRCDIR)/services: $(SRCDIR)/Makefile
|
$(SRCDIR)/services: $(SRCDIR)/Makefile
|
||||||
@cd $(SRCDIR); \
|
@cd $(SRCDIR) && make
|
||||||
$(MAKE)
|
|
||||||
|
|
||||||
$(ROOT): $(SRCDIR)/services
|
$(ROOT): $(SRCDIR)/services
|
||||||
@if [ -d $(ROOT) ]; then \
|
@if [ -d $(ROOT) ]; then \
|
||||||
@@ -55,10 +51,7 @@ $(ROOT): $(SRCDIR)/services
|
|||||||
mkdir -v $(ROOT); \
|
mkdir -v $(ROOT); \
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@cd $(SRCDIR); \
|
@cd $(SRCDIR) && make install DESTDIR=$(ROOT)
|
||||||
$(MAKEINST) DESTDIR=$(ROOT)
|
|
||||||
|
|
||||||
@$(SNAPHACKS)
|
|
||||||
|
|
||||||
test: $(ROOT)
|
test: $(ROOT)
|
||||||
@cd $(SRCDIR); \
|
@cd $(SRCDIR); \
|
||||||
|
|||||||
Reference in New Issue
Block a user