Makefile
changeset 30 3d78db598b87
parent 19 d31157fe5358
equal deleted inserted replaced
29:edae3cb9aca3 30:3d78db598b87
     1 # © Heiko Schlittermann
     1 # © Heiko Schlittermann
     2 # $Id$
     2 # $Id$
     3 # $URL$
     3 # $URL$
     4 
     4 
     5 SCRIPTS = exiacl
     5 SCRIPTS = exiacl
     6 CLEANFILES = exiacl
     6 MANPAGES = exiacl.8
       
     7 CLEANFILES = $(SCRIPTS) $(MANPAGES)
     7 p = exiacl
     8 p = exiacl
     8 
     9 
     9 prefix = /usr/local
    10 prefix = /usr/local
    10 bindir = $(prefix)/bin
    11 bindir = $(prefix)/bin
    11 
    12 
    21 endif
    22 endif
    22 
    23 
    23 
    24 
    24 .PHONY: all install clean uninstall
    25 .PHONY: all install clean uninstall
    25 
    26 
    26 all:	$(SCRIPTS)
    27 all:	$(SCRIPTS) $(MANPAGES)
    27 
    28 
    28 install:    all
    29 install:    all
    29 	install -d $(bindir)
    30 	install -d $(bindir)
    30 	install -m 0755 $(SCRIPTS) $(bindir)
    31 	install -m 0755 $(SCRIPTS) $(bindir)
    31 ifdef STOW
    32 ifdef STOW
    43 %:	%.pl
    44 %:	%.pl
    44 	@perl -c $<
    45 	@perl -c $<
    45 	@cp -vf $< $@
    46 	@cp -vf $< $@
    46 	@chmod -w+x $@
    47 	@chmod -w+x $@
    47 
    48 
       
    49 %.8:	%.man8
       
    50 	pod2man --name $(basename $<) --section 8 --center "exim" $< >$@
       
    51 
    48 
    52 
    49 # vim:sts=4 sw=4 aw ai sm list:
    53 # vim:sts=4 sw=4 aw ai sm list: