Makefile
changeset 2 3bea787fbeda
parent 0 71a3a2a6663d
child 3 a093bec1f362
equal deleted inserted replaced
1:cd277b242dca 2:3bea787fbeda
     1 # Makefile for backup2Archiv2
     1 # Makefile for backup2Archiv2
     2 # Author: Heike Yvonne Pesch
     2 # Author: Heike Yvonne Pesch
       
     3 #
       
     4 prefix = /usr/local
     3 
     5 
     4 INSTALL_PATH=/usr/local/sbin
     6 INSTALL_PATH= ${DESTDIR}${prefix}/sbin
     5 INSTALL_LIST= backup2Archiv2
     7 INSTALL_LIST= backup2Archiv2
     6 
     8 
     7 list:
     9 .PHONY:	all clean distclean install
     8 	@echo "USAGE: make [install|clean]"
    10 
       
    11 all distclean clean:
     9 
    12 
    10 install:
    13 install:
    11 	@test -d $(INSTALL_PATH) || mkdir $(INSTALL_PATH)
    14 	install -m 0755 ${INSTALL_LIST} $(INSTALL_PATH)/
    12 	@chmod 2755 $(INSTALL_PATH)
    15 
    13 	@chgrp staff $(INSTALL_PATH)
    16 help:
    14 	@umask 003; cp --target-directory=$(INSTALL_PATH) $(INSTALL_LIST)
    17 	@echo "${MAKE} [all|install|clean|distclean]"
    15 	@chmod 555 $(INSTALL_PATH)/*
       
    16 				  
       
    17 clean:
       
    18 	@cd $(INSTALL_PATH); rm -f $(INSTALL_LIST)