DIRCONFOBJS = ../dird/dird_conf.o ../dird/run_conf.o ../dird/inc_conf.o
NODIRTOOLS = bsmtp
-DIRTOOLS = bsmtp dbcheck fstype testfind testls regex wild
+DIRTOOLS = bsmtp dbcheck fstype testfind testls bregex bwild
TOOLS = $(@DIR_TOOLS@)
INSNODIRTOOLS = bsmtp
-INSDIRTOOLS = bsmtp dbcheck
+INSDIRTOOLS = bsmtp dbcheck bwild bregex
INSTOOLS = $(INS@DIR_TOOLS@)
$(CXX) -g $(LDFLAGS) -L. -L../lib -L../findlib -o $@ testls.o \
$(DLIB) -lfind -lbac -lm $(LIBS) $(GETTEXT_LIBS) $(OPENSSL_LIBS)
-regex: ../findlib/libfind.a ../lib/libbac.a regex.o
- $(CXX) -g $(LDFLAGS) -L. -L../lib -o $@ regex.o \
+bregex: ../findlib/libfind.a ../lib/libbac.a bregex.o
+ $(CXX) -g $(LDFLAGS) -L. -L../lib -o $@ bregex.o \
$(DLIB) -lbac -lm $(LIBS) $(GETTEXT_LIBS) $(OPENSSL_LIBS)
-wild: ../findlib/libfind.a ../lib/libbac.a wild.o
- $(CXX) -g $(LDFLAGS) -L. -L../lib -o $@ wild.o \
+bwild: ../findlib/libfind.a ../lib/libbac.a bwild.o
+ $(CXX) -g $(LDFLAGS) -L. -L../lib -o $@ bwild.o \
$(DLIB) -lbac -lm $(LIBS) $(GETTEXT_LIBS) $(OPENSSL_LIBS)
clean:
@$(RMF) bsmtp core core.* a.out *.o *.bak *~ *.intpro *.extpro 1 2 3
- @$(RMF) testfind dbcheck testls fstype
+ @$(RMF) $(DIRTOOLS)
realclean: clean
@$(RMF) tags
# Allow non-root execution of bsmtp for non-root Directors
install: $(INSTOOLS)
@for tool in ${INSTOOLS} ; do \
- $(INSTALL_PROGRAM) $$tool $(DESTDIR)$(sbindir)/$$tool ; \
+ $(INSTALL_PROGRAM) $$tool $(DESTDIR)$(sbindir)/$$tool ; \
done
chmod 755 $(DESTDIR)$(sbindir)/bsmtp
uninstall:
- (cd $(DESTDIR)$(sbindir); $(RMF) bsmtp)
- (cd $(DESTDIR)$(sbindir); $(RMF) dbcheck)
+ @for tool in ${INSTOOLS} ; do \
+ $(RMF) $(DESTDIR)$(sbindir)/$$tool ; \
+ done