Moved to slp format

This commit is contained in:
2020-08-24 19:59:17 -05:00
parent 3021446ba4
commit 311d9723c2
3 changed files with 7 additions and 7 deletions

View File

@@ -17,16 +17,16 @@ REPO = main
BRIEF = Flex is a tool for generating scanners
DESC = Flex is a tool for generating scanners. A scanner, sometimes called a \
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)
TYPE := $(shell file -ib $(ARCHIVE)|cut -d';' -f1|tr -d '\n')
SRCDIR := $(shell tar -tf $(ARCHIVE)|head -1|sed 's/\/.*//')
PATCHDIR := $(PWD)/SRC/patches
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
DEVROOT := $(DEV)/ROOT
@@ -70,7 +70,7 @@ $(ROOT): $(SRCDIR)/src/flex
@cd $(SRCDIR) && make install DESTDIR=$(ROOT) && \
ln -sv flex $(ROOT)/usr/bin/lex && \
rm -v $(ROOT)/usr/share/info/dir && \
install -v -d $(DEV)/SNAP && \
install -v -d $(DEV)/SL && \
install -v -d $(DEVROOT) && \
for file in `find $(ROOT)| \
egrep '\.(a|h|la)$$'`; do \
@@ -79,7 +79,7 @@ $(ROOT): $(SRCDIR)/src/flex
mv $$file $$path; \
done
@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)
@cd $(SRCDIR); \
@@ -88,7 +88,7 @@ test: $(ROOT)
clean:
@rm -rvf $(ROOT) \
$(DEV) \
$(SNAPINFO) \
$(SLINFO) \
$(MANIFEST) \
$(FILES) \
$(SRCDIR)