################################################### # Sample Makefile for mail archive maintenance. # partly rewritten to give list names in fewer places 5.7.1999 Bernhard Reiter # probably needs a modern gnu make now (tested with gmake 3.77) # # Define variables and Macros # ################################################### prefix=@prefix@ exec_prefix=@exec_prefix@ bindir=@bindir@ CC=@CC@ CFLAGS=@CFLAGS@ ################################################### # # Build the executable images # ################################################### # # List should contain your listnames. All standard names are derived # from that base name. # lists.h needs to check the macro LIST_ # # PLEASE read the README in this directory before continuing. # This is a SAMPLE file. LISTS = htest # LISTS = testmailman polis # two progs for each list ending with "-mail" and "-rdmsg" PROGS= $(LISTS:%=%-mail) $(LISTS:%=%-rdmsg) all: $(PROGS) %-mail: msg2archive.c lists.h $(CC) $(CFLAGS) -DLIST_$* -o $@ msg2archive.c %-rdmsg: mbox2hypermail.c lists.h $(CC) $(CFLAGS) -DLIST_$* -o $@ mbox2hypermail.c lint: lint $(LINT_FLAGS) $(SOURCE) | tee Lint.out BINARIES=$(PROGS:%=$(bindir)/%) install: $(BINARIES) $(bindir)/%-rdmsg : %-rdmsg install -c $< $(bindir) $(bindir)/%-mail : %-mail install -c $< $(bindir) clean: rm -f $(OBJS) Lint.out rm -f $(PROGS) ################################################### # # Object file include dependencies. # The object file include dependencies are required. # ################################################### depend: makedepend -- $(CFLAGS) -- $(SOURCE) # DO NOT DELETE THIS LINE -- make depend depends on it.