Moved to new slp format
This commit is contained in:
27
Makefile
27
Makefile
@@ -11,21 +11,19 @@
|
|||||||
DEPENDS = autoconf
|
DEPENDS = autoconf
|
||||||
ARCH = x86_64
|
ARCH = x86_64
|
||||||
URL = https://www.gnu.org/software/automake/
|
URL = https://www.gnu.org/software/automake/
|
||||||
|
REPO = dev
|
||||||
|
BRIEF = Generate Makefile.in for configure from Makefile.am
|
||||||
DESC = Automake is a tool for automatically generating Makefile.in files \
|
DESC = Automake is a tool for automatically generating Makefile.in files \
|
||||||
compliant with the GNU Coding Standards.
|
compliant with the GNU Coding Standards.
|
||||||
SNAPVER = sr0
|
SLVER = 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/^-//')-$(SLVER)
|
||||||
|
|
||||||
MAKE = make
|
include /usr/share/sl/Makefile.snaplinux
|
||||||
MAKEINST = make install
|
|
||||||
SNAPHACKS =
|
|
||||||
|
|
||||||
include /usr/share/snap/Makefile.snaplinux
|
|
||||||
|
|
||||||
$(SRCDIR): $(ARCHIVE)
|
$(SRCDIR): $(ARCHIVE)
|
||||||
@if [ '$(TYPE)' == 'application/x-bzip2' ]; then \
|
@if [ '$(TYPE)' == 'application/x-bzip2' ]; then \
|
||||||
@@ -42,8 +40,9 @@ $(SRCDIR): $(ARCHIVE)
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
$(SRCDIR)/config.log: $(SRCDIR)
|
$(SRCDIR)/config.log: $(SRCDIR)
|
||||||
@cd $(SRCDIR) && for patch in `find $(PATCHDIR) -name \*.patch`; do \
|
@cd $(SRCDIR) && \
|
||||||
patch --verbose -Np0 -i $$patch; \
|
for patch in `find $(PATCHDIR) -name \*.patch|sort`; do \
|
||||||
|
patch --verbose -Np1 -i $$patch; \
|
||||||
done
|
done
|
||||||
@cd $(SRCDIR); \
|
@cd $(SRCDIR); \
|
||||||
./configure \
|
./configure \
|
||||||
@@ -53,8 +52,7 @@ $(SRCDIR)/config.log: $(SRCDIR)
|
|||||||
--target=x86_64-snap-linux-gnu
|
--target=x86_64-snap-linux-gnu
|
||||||
|
|
||||||
$(SRCDIR)/t/ax/test-defs.sh: $(SRCDIR)/config.log
|
$(SRCDIR)/t/ax/test-defs.sh: $(SRCDIR)/config.log
|
||||||
@cd $(SRCDIR); \
|
@cd $(SRCDIR) && make
|
||||||
$(MAKE)
|
|
||||||
|
|
||||||
$(ROOT): $(SRCDIR)/t/ax/test-defs.sh
|
$(ROOT): $(SRCDIR)/t/ax/test-defs.sh
|
||||||
@if [ -d $(ROOT) ]; then \
|
@if [ -d $(ROOT) ]; then \
|
||||||
@@ -63,10 +61,7 @@ $(ROOT): $(SRCDIR)/t/ax/test-defs.sh
|
|||||||
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); \
|
||||||
@@ -74,7 +69,7 @@ test: $(ROOT)
|
|||||||
|
|
||||||
clean:
|
clean:
|
||||||
@rm -rvf $(ROOT) \
|
@rm -rvf $(ROOT) \
|
||||||
$(SNAPINFO) \
|
$(SLINFO) \
|
||||||
$(MANIFEST) \
|
$(MANIFEST) \
|
||||||
$(FILES) \
|
$(FILES) \
|
||||||
$(SRCDIR)
|
$(SRCDIR)
|
||||||
|
|||||||
Reference in New Issue
Block a user