Added BRIEF to Makefile
This commit is contained in:
29
Makefile
29
Makefile
@@ -8,11 +8,13 @@
|
|||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
# GNU General Public License for more details.
|
# GNU General Public License for more details.
|
||||||
|
|
||||||
DEPENDS =
|
DEPENDS = glibc,libcap,libncurses,libreadline
|
||||||
ARCH = x86_64
|
ARCH = x86_64
|
||||||
URL = http://www.gnu.org/software/bash/
|
URL = http://www.gnu.org/software/bash/
|
||||||
DESC = Bash is the GNU Project\'s shell
|
BRIEF = Bash is the GNU Project\'s Bourne Again SHell
|
||||||
SNAPVER = sr1
|
DESC = Bash is the GNU Project\'s Bourne Again SHell, a complete \
|
||||||
|
implementation of the POSIX shell spec
|
||||||
|
SNAPVER = 5
|
||||||
|
|
||||||
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')
|
||||||
@@ -21,13 +23,7 @@ PATCHDIR := $(PWD)/SRC/patches
|
|||||||
PATCHLVL := $(shell cat $(PATCHDIR)/*.patch|grep '\#define PATCHLEVEL'|\
|
PATCHLVL := $(shell cat $(PATCHDIR)/*.patch|grep '\#define PATCHLEVEL'|\
|
||||||
tail -1|awk '{print $$NF}')
|
tail -1|awk '{print $$NF}')
|
||||||
VERSION := $(shell echo $(SRCDIR)|egrep -o '\-[0-9].*'|sed 's/^-//'|\
|
VERSION := $(shell echo $(SRCDIR)|egrep -o '\-[0-9].*'|sed 's/^-//'|\
|
||||||
sed 's/[0-9]*$$/$(PATCHLVL)/')$(SNAPVER)
|
sed 's/[0-9]*$$/$(PATCHLVL)/')-$(SNAPVER)
|
||||||
|
|
||||||
MAKE = make
|
|
||||||
MAKEINST = make install
|
|
||||||
SNAPHACKS = @if [ ! -f $(ROOT)/bin/sh ]; then \
|
|
||||||
ln -sv bash $(ROOT)/bin/sh; fi && \
|
|
||||||
rm -v $(ROOT)/usr/share/info/dir
|
|
||||||
|
|
||||||
include /usr/share/snap/Makefile.snaplinux
|
include /usr/share/snap/Makefile.snaplinux
|
||||||
|
|
||||||
@@ -61,8 +57,7 @@ $(SRCDIR)/config.log: $(SRCDIR)/configure
|
|||||||
--target=x86_64-snap-linux-gnu
|
--target=x86_64-snap-linux-gnu
|
||||||
|
|
||||||
$(SRCDIR)/bash: $(SRCDIR)/config.log
|
$(SRCDIR)/bash: $(SRCDIR)/config.log
|
||||||
@cd $(SRCDIR); \
|
@cd $(SRCDIR) && make
|
||||||
$(MAKE)
|
|
||||||
|
|
||||||
$(ROOT): $(SRCDIR)/bash
|
$(ROOT): $(SRCDIR)/bash
|
||||||
@if [ -d $(ROOT) ]; then \
|
@if [ -d $(ROOT) ]; then \
|
||||||
@@ -71,10 +66,12 @@ $(ROOT): $(SRCDIR)/bash
|
|||||||
mkdir -v $(ROOT); \
|
mkdir -v $(ROOT); \
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@cd $(SRCDIR); \
|
@cd $(SRCDIR) && make install DESTDIR=$(ROOT) && \
|
||||||
$(MAKEINST) DESTDIR=$(ROOT)
|
if [ ! -f $(ROOT)/bin/sh ]; then \
|
||||||
|
ln -sv bash $(ROOT)/bin/sh; \
|
||||||
@$(SNAPHACKS)
|
fi && \
|
||||||
|
rm -v $(ROOT)/usr/share/info/dir && \
|
||||||
|
gzip $(ROOT)/usr/share/doc/*/{*.html,CHANGES}
|
||||||
|
|
||||||
test: $(ROOT)
|
test: $(ROOT)
|
||||||
@cd $(SRCDIR); \
|
@cd $(SRCDIR); \
|
||||||
|
|||||||
Reference in New Issue
Block a user