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 =
|
||||
ARCH = x86_64
|
||||
URL = http://sethwklein.net/iana-etc
|
||||
BRIEF = Definitions for services and protocols
|
||||
DESC = The iana-etc package installs services(5) and protocols(5) using \
|
||||
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)
|
||||
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)
|
||||
VERSION := $(shell echo $(SRCDIR)|egrep -o '\-[0-9].*'|sed 's/^-//')-$(SNAPVER)
|
||||
|
||||
# 'make get' should download latest, but currently doesn't...
|
||||
|
||||
MAKE = make
|
||||
MAKEINST = make install
|
||||
SNAPHACKS =
|
||||
# NOTE: 'make get' should download latest, but currently doesn't...
|
||||
|
||||
include /usr/share/snap/Makefile.snaplinux
|
||||
|
||||
@@ -45,8 +42,7 @@ $(SRCDIR)/Makefile: $(ARCHIVE)
|
||||
@touch $(SRCDIR)/Makefile
|
||||
|
||||
$(SRCDIR)/services: $(SRCDIR)/Makefile
|
||||
@cd $(SRCDIR); \
|
||||
$(MAKE)
|
||||
@cd $(SRCDIR) && make
|
||||
|
||||
$(ROOT): $(SRCDIR)/services
|
||||
@if [ -d $(ROOT) ]; then \
|
||||
@@ -55,10 +51,7 @@ $(ROOT): $(SRCDIR)/services
|
||||
mkdir -v $(ROOT); \
|
||||
fi
|
||||
|
||||
@cd $(SRCDIR); \
|
||||
$(MAKEINST) DESTDIR=$(ROOT)
|
||||
|
||||
@$(SNAPHACKS)
|
||||
@cd $(SRCDIR) && make install DESTDIR=$(ROOT)
|
||||
|
||||
test: $(ROOT)
|
||||
@cd $(SRCDIR); \
|
||||
|
||||
Reference in New Issue
Block a user