summaryrefslogtreecommitdiffabout
path: root/mc/Makefile.am
blob: 2905bfc9a658261d61ca1b3b04e0235f51f102b5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
MCFILES=relay1.mc relay2.mc trurl.mc ulysses.mc
EXTRA_DIST=$(MCFILES)
SUFFIXES=.mc .cf

cf: $(MCFILES:.mc=.cf)

#ifeq (.sendmail,$(wildcard .sendmail))
#include .sendmail
#endif

clean:; rm -f *.cf

.mc.cf:
	@if [ -n "$$CFDIR" ]; then \
	  :; \
	elif [ -z "$(SENDMAIL_CFDIR)" ]; then \
	  if [ -n "$(SENDMAIL_VERSION)" ]; then \
	    for dir in /usr/src /usr/local/src ;\
	    do \
		if [ -r $${dir}/sendmail-$(SENDMAIL_VERSION)/cf/cf/Makefile ];\
		then \
		  CFDIR=$${dir}/sendmail-$(SENDMAIL_VERSION)/cf; \
		  break; \
		fi; \
	    done; \
	  fi ; \
	  if [ -z "$$CFDIR" ]; then \
	    echo "Neither SENDMAIL_CFDIR nor SENDMAIL_VERSION set." >&2; \
            echo "Use --with-sendmail-cfdir --with-sendmail-version when configuring" >&2; \
	    exit 1; \
	  fi; \
	else \
	  CFDIR=$(SENDMAIL_CFDIR);\
	fi;\
	$(MAKE) -f $$CFDIR/cf/Makefile CFDIR=$$CFDIR $@

Return to:

Send suggestions and report system problems to the System administrator.