Moved to slp format
This commit is contained in:
12
Makefile
12
Makefile
@@ -17,16 +17,16 @@ REPO = main
|
|||||||
BRIEF = Flex is a tool for generating scanners
|
BRIEF = Flex is a tool for generating scanners
|
||||||
DESC = Flex is a tool for generating scanners. A scanner, sometimes called a \
|
DESC = Flex is a tool for generating scanners. A scanner, sometimes called a \
|
||||||
tokenizer, is a program which recognizes lexical patterns in text.
|
tokenizer, is a program which recognizes lexical patterns in text.
|
||||||
SNAPVER = 3
|
SLVER = 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
|
||||||
export VERSION := $(shell echo $(SRCDIR)|egrep -o '\-[0-9].*'| \
|
export VERSION := $(shell echo $(SRCDIR)|egrep -o '\-[0-9].*'| \
|
||||||
sed 's/^-//')-$(SNAPVER)
|
sed 's/^-//')-$(SLVER)
|
||||||
|
|
||||||
include /usr/share/snap/Makefile.snaplinux
|
include /usr/share/sl/Makefile.snaplinux
|
||||||
|
|
||||||
DEV := $(PWD)/$(PACKAGE)-dev
|
DEV := $(PWD)/$(PACKAGE)-dev
|
||||||
DEVROOT := $(DEV)/ROOT
|
DEVROOT := $(DEV)/ROOT
|
||||||
@@ -70,7 +70,7 @@ $(ROOT): $(SRCDIR)/src/flex
|
|||||||
@cd $(SRCDIR) && make install DESTDIR=$(ROOT) && \
|
@cd $(SRCDIR) && make install DESTDIR=$(ROOT) && \
|
||||||
ln -sv flex $(ROOT)/usr/bin/lex && \
|
ln -sv flex $(ROOT)/usr/bin/lex && \
|
||||||
rm -v $(ROOT)/usr/share/info/dir && \
|
rm -v $(ROOT)/usr/share/info/dir && \
|
||||||
install -v -d $(DEV)/SNAP && \
|
install -v -d $(DEV)/SL && \
|
||||||
install -v -d $(DEVROOT) && \
|
install -v -d $(DEVROOT) && \
|
||||||
for file in `find $(ROOT)| \
|
for file in `find $(ROOT)| \
|
||||||
egrep '\.(a|h|la)$$'`; do \
|
egrep '\.(a|h|la)$$'`; do \
|
||||||
@@ -79,7 +79,7 @@ $(ROOT): $(SRCDIR)/src/flex
|
|||||||
mv $$file $$path; \
|
mv $$file $$path; \
|
||||||
done
|
done
|
||||||
@find $(ROOT) -type d -empty -delete && \
|
@find $(ROOT) -type d -empty -delete && \
|
||||||
cd $(DEV) && make -f ../Makefile.$(PACKAGE)-dev && mv *.snap ../
|
cd $(DEV) && make -f ../Makefile.$(PACKAGE)-dev && mv *.slp ../
|
||||||
|
|
||||||
test: $(ROOT)
|
test: $(ROOT)
|
||||||
@cd $(SRCDIR); \
|
@cd $(SRCDIR); \
|
||||||
@@ -88,7 +88,7 @@ test: $(ROOT)
|
|||||||
clean:
|
clean:
|
||||||
@rm -rvf $(ROOT) \
|
@rm -rvf $(ROOT) \
|
||||||
$(DEV) \
|
$(DEV) \
|
||||||
$(SNAPINFO) \
|
$(SLINFO) \
|
||||||
$(MANIFEST) \
|
$(MANIFEST) \
|
||||||
$(FILES) \
|
$(FILES) \
|
||||||
$(SRCDIR)
|
$(SRCDIR)
|
||||||
|
|||||||
@@ -13,4 +13,4 @@ REPO = dev
|
|||||||
BRIEF = Development files for flex
|
BRIEF = Development files for flex
|
||||||
DESC = Development files for flex
|
DESC = Development files for flex
|
||||||
|
|
||||||
include /usr/share/snap/Makefile.snaplinux
|
include /usr/share/sl/Makefile.snaplinux
|
||||||
|
|||||||
Reference in New Issue
Block a user