summaryrefslogtreecommitdiffstats
path: root/lib/libc/regex
diff options
context:
space:
mode:
authortjr <tjr@FreeBSD.org>2004-07-19 08:41:11 +0000
committertjr <tjr@FreeBSD.org>2004-07-19 08:41:11 +0000
commit892503bdc7052b887c25076ecef5750b6df742a6 (patch)
tree7ac12ee28e3eeb7908e744a14f775787506dbe31 /lib/libc/regex
parentfa91996c2f190d9b58baefba2b28d583506cd706 (diff)
downloadFreeBSD-src-892503bdc7052b887c25076ecef5750b6df742a6.zip
FreeBSD-src-892503bdc7052b887c25076ecef5750b6df742a6.tar.gz
Update for removal of cclass.h. Trim some useless targets. Invoke mkh
with "sh mkh" so it works if the script is not executable.
Diffstat (limited to 'lib/libc/regex')
-rw-r--r--lib/libc/regex/grot/Makefile40
1 files changed, 6 insertions, 34 deletions
diff --git a/lib/libc/regex/grot/Makefile b/lib/libc/regex/grot/Makefile
index b7eefb9..b610c80 100644
--- a/lib/libc/regex/grot/Makefile
+++ b/lib/libc/regex/grot/Makefile
@@ -24,7 +24,7 @@ LDFLAGS =
HMISSING =
SRCMISSING = split.c
OBJMISSING = split.o
-H = cclass.h cname.h regex2.h utils.h $(HMISSING)
+H = cname.h regex2.h utils.h $(HMISSING)
REGSRC = regcomp.c regerror.c regexec.c regfree.c engine.c
SRC = $(REGSRC) debug.c main.c $(SRCMISSING)
@@ -39,7 +39,7 @@ JUNKLINT =possible pointer alignment|null effect
.SUFFIXES: .ih .h
.c.ih:
- ./mkh $(MKHFLAGS) -p $< >$@
+ sh mkh $(MKHFLAGS) -p $< >$@
default: r
@@ -50,12 +50,12 @@ o: $(OBJPRODN)
REGEXHSRC = regex2.h reg*.c
h: $(REGEXHSRC)
- ./mkh $(MKHFLAGS) -i _REGEX_H_ $(REGEXHSRC) >regex.tmp
+ sh mkh $(MKHFLAGS) -i _REGEX_H_ $(REGEXHSRC) >regex.tmp
cmp -s regex.tmp regex.h 2>/dev/null || cp regex.tmp regex.h
rm -f regex.tmp
regcomp.o regexec.o regfree.o debug.o: utils.h regex.h regex2.h
-regcomp.o: cclass.h cname.h regcomp.ih
+regcomp.o: cname.h regcomp.ih
regexec.o: engine.c engine.ih
regerror.o: regerror.ih
regerror.o: utils.h
@@ -83,42 +83,14 @@ t: ./re tests
-time ./re -el <tests
-time ./re -cs -el <tests
-e: echeck re tests
- ./re -d <tests | awk -f echeck
-
l: $(LINTC)
lint $(LINTFLAGS) -h $(LINTC) 2>&1 | egrep -v '$(JUNKLINT)' | tee lint
-fullprint:
- ti README WHATSNEW notes todo | hplist
- ti *.h | hplist
- hplist *.c
- hplist regex.3 regex.7
-
-print:
- ti README WHATSNEW notes todo | hplist
- ti *.h | hplist
- hplist reg*.c engine.c
-
clean: tidy
rm -f *.o *.s *.ih re
tidy:
- rm -f junk* core dtr regex.tmp lint
+ rm -f junk* core regex.tmp lint
spotless: clean
- rm -f mkh regex.h
-
-mkh: /usr/henry/bin/mkh
- cp $? $@
-
-DTRH = cclass.h cname.h regex2.h utils.h limits.h stdlib.h
-DTR = README WHATSNEW Makefile Makefile.44bsd mkh regex.3 regex.7 tests $(DTRH) $(SRC)
-dtr: $(DTR)
- makedtr $(DTR) >$@
-
-cio: $(DTR)
- cio $(DTR)
-
-rdf: $(DTR)
- rcsdiff -c $(DTR) 2>&1 | p
+ rm -f regex.h
OpenPOWER on IntegriCloud