URI:
       Fix MakeFile - tty-clock - port of tty-clock to OpenBSD, with pledge/unveil added as goodie.
  HTML git clone https://git.drkhsh.at/tty-clock.git
   DIR Log
   DIR Files
   DIR Refs
   DIR README
   DIR LICENSE
       ---
   DIR commit efe374a07c87a5443dc90824cd1628e92176151a
   DIR parent 2261c301b42d12fcf915c3ab501ed095a3eb3ab4
  HTML Author: Martin Duquesnoy <xorg62@gmail.com>
       Date:   Sat,  6 Dec 2008 01:18:32 +0100
       
       Fix MakeFile
       
       Diffstat:
         M Makefile                            |      43 +++++++++++++++++--------------
         M clock.c                             |       2 +-
       
       2 files changed, 24 insertions(+), 21 deletions(-)
       ---
   DIR diff --git a/Makefile b/Makefile
       @@ -1,30 +1,33 @@
       -tty-clock : clock.c
       +SRC = clock.c
       +CC = cc
       +NCURSESFLAG = -lncurses
       +BIN = tty-clock
       +INSTALLPATH = /usr/local/bin/
       +CFLAGS = -Wall ${NCURSESFLAG}
        
       -        @echo "*** Building ***"
       -        @cc -lncurses $^ -o tty-clock -Wall 
       -        @echo "*** TTY-Clock build ***"
       -        @echo ""
       +
       +tty-clock : ${SRC}
       +
       +        @echo "build ${SRC}"
       +        @echo "CC ${CFLAGS} ${SRC}"
       +        @${CC} ${CFLAGS} ${SRC} -o ${BIN}
        
        install : tty-clock
       -  
       -        @echo "*** Moving TTY-Clock ***"
       -        @cp tty-clock /usr/local/bin/
       -        @echo "*** Clock moved ***"
       -        @echo ""
       -        @echo "*** Chmod TTY-Clock ***"
       -        @chmod 777 /usr/local/bin/tty-clock
       -        @echo "*** TTY-Clock is now installed ***"
       -        @echo ""
       +
       +        @echo "installing binary file to ${INSTALLPATH}${BIN}"
       +        @cp ${BIN} ${INSTALLPATH}
       +        @chmod 777 ${INSTALLPATH}${BIN}
       +        @echo "installed."
        
        uninstall :
        
       -        @echo "*** Uninstall TTY-Clock ***"
       -        @rm -f /usr/local/bin/tty-clock
       -        @echo "*** TTY-Clock uninstalled :'( ***"
       +        @echo "uninstalling binary file (${INSTALLPATH}${BIN})"
       +        @rm -f ${INSTALLPATH}${BIN}
       +        @echo "uninstalled :'(."
        
        clean :
        
       -        @echo "*** Cleaning TTY-clock ***"
       -        @rm tty-clock
       -        @echo "*** Your TTY-Clock is clean ;) ***"
       +        @echo "cleaning"
       +        @rm ${BIN}
       +        @echo "cleaned."
        
   DIR diff --git a/clock.c b/clock.c
       @@ -424,7 +424,7 @@ main(int argc, char **argv)
                  {
                  case 'h':
                  default:
       -               fprintf(stderr, HELPSTR);
       +               printf(HELPSTR);
                       exit(EXIT_SUCCESS);
                       break;
                  case 'i':