# Generated automatically from Makefile.in by configure. # ***** WARNING ***** EDIT THIS FILE WITH A UTF-AWARE EDITOR srcdir= . prefix= /usr/local exec_prefix= ${prefix} LIBDIR= $(exec_prefix)/lib INCDIR= $(prefix)/include MANDIR= $(prefix)/man ETCDIR= $(prefix)/etc # SVR4, I hate you. What ****idiot**** dreamed this up???? # Yeah, like all csh or rc users need this crap... SHELL=/bin/sh CC= cc OPTIM= -g -O -Wall CFLAGS= -fno-common -DETCDIR='"$(ETCDIR)"' -I. -I$(srcdir) OBJS= ure.o urelang.o utf.o LIBS= libutf.a ARFLAGS= crv INSTALL= /usr/bin/install -c -o root -g wheel INSTALL_DATA= install -o root -g wheel -m 444 RANLIB= ranlib $(LIBS) : $(OBJS) $(AR) $(ARFLAGS) $(LIBS) $(OBJS) ci: ci -l ure.c ure.h urelang.c utf.c utf.h install: $(LIBS) $(srcdir)/mkinstalldirs $(LIBDIR) $(INCDIR) $(ETCDIR) $(MANDIR)/man3 $(INSTALL_DATA) $(LIBS) $(LIBDIR) ; $(RANLIB) $(LIBDIR)/$(LIBS) $(INSTALL_DATA) $(srcdir)/ure.h $(INCDIR) $(INSTALL_DATA) $(srcdir)/utf.h $(INCDIR) $(INSTALL_DATA) $(srcdir)/langcoll.utf $(ETCDIR) $(INSTALL_DATA) $(srcdir)/utf.3 $(MANDIR)/man3 $(INSTALL_DATA) $(srcdir)/ure.3 $(MANDIR)/man3 uninstall: rm -f $(LIBDIR)/libure.a rm -f $(LIBDIR)/$(LIBS) rm -f $(ETCDIR)/langcoll.utf rm -f $(INCDIR)/ure.h $(INCDIR)/urelang.h $(INCDIR)/utf.h gurep: gurep.o $(LIBS) $(CC) gurep.o $(LIBS) -o gurep findword: findword.o $(LIBS) $(CC) findword.o $(LIBS) -o findword tst: gurep findword test -d tests || ln -s $(srcdir)/tests . test -f langcoll.utf || ln -s $(srcdir)/langcoll.utf . @echo "No news is good news." @echo "1. testing case-insensitive range at beginning of word" @./gurep -i -n '\<[A-Z]nt' tests/gurep.c > 1.out -@diff tests/1.exp 1.out @echo "2. testing beginning of line matching" @./gurep -n '^' tests/gurep.c > 2.out -@diff tests/2.exp 2.out @echo "3. checking end of word matching" @./gurep 'int\>' tests/gurep.c > 3.out -@diff tests/3.exp 3.out @echo "4. checking borders of word" @./gurep '\bint\b' tests/gurep.c > 4.out -@diff tests/4.exp 4.out @echo "5. Matching Unicode pattern" @./gurep '\u00a3' tests/demo* > 5.out -@diff tests/5.exp 5.out @echo "6. Matching UTF pattern" @./gurep '£' tests/demo* > 6.out -@diff tests/6.exp 6.out @echo "7. Setting non-standard alphabet" @./gurep -a Deutsch 'Jörg' tests/demo* > 7.out -@diff tests/7.exp 7.out @echo "8. check non-standard alphabet ranges" @./gurep -a Deutsch 'J[a-z]rg' tests/demo* > 8.out -@diff tests/8.exp 8.out @echo "9. testing case-insensitive standard alphabet ranges" @./gurep -i -n 'J[a-z]rg' tests/demo* > 9.out -@diff tests/9.exp 9.out @echo "10. testing sub-expressions" @./gurep -n 'i([nop])t' tests/gurep.c > A.out -@diff tests/A.exp A.out @echo "11. testing wildcards in middle of regex" @./gurep -n 'include.+/' tests/gurep.c > B.out -@diff tests/B.exp B.out @echo "12. testing utflangcmp" @./findword tests/C.in > C.out -@diff tests/C.exp C.out @echo "13. testing utflangcmp in Swedish" @./findword -a Svenska tests/C.in > D.out -@diff tests/D.exp D.out @echo "14. testing utflangcmp, ignoring case" @./findword -i tests/E.in > E.out -@diff tests/E.exp E.out @echo "15. testing utflangcmp in Swedish, ignoring case" @./findword -a Svenska -i tests/E.in > F.out -@diff tests/F.exp F.out @echo "Testing error conditions" @echo "E1. Bad ure - fail on compilation" @-./gurep -i -n '(agc' tests/gurep.c > E1.out 2>&1 -@diff tests/E1.exp E1.out @echo "E2. Rune error" @-./gurep -i -n 'Wily' tests/E2.in > E2.out 2>&1 -@diff tests/E2.exp E2.out @echo "E2. Null pattern" @-./gurep > E3.out 2>&1 -@diff tests/E3.exp E3.out @echo "Removing temporary files" @rm -f 1.out 2.out 3.out 4.out 5.out 6.out 7.out 8.out @rm -f 9.out A.out B.out C.out D.out E.out F.out @rm -f E1.out E2.out E3.out clean: rm -f $(OBJS) $(LIBS) ./gurep gurep.o ./findword findword.o cleandist: rm -f $(OBJS) $(LIBS) ./gurep gurep.o ./findword findword.o rm -f Makefile config.h rm -f config.log config.status config.cache