Updated Makefile to use PDCurses install script

devel
Aadhavan Srinivasan 2 years ago
parent 3c5d9176b0
commit 58be3215f9

@ -10,6 +10,7 @@ full:
pdcurses: pdcurses:
make program3-4-pdcurses make program3-4-pdcurses
program3-4-pdcurses: program3-4.c texted.c fileman.c program3-4-pdcurses: program3-4.c texted.c fileman.c
./installpdcurses.sh
sed -i 's/<ncurses.h>/"pdcurses\/curses.h"/g' texted.h sed -i 's/<ncurses.h>/"pdcurses\/curses.h"/g' texted.h
sed -i 's/<ncurses.h>/"pdcurses\/curses.h"/g' fileman.h sed -i 's/<ncurses.h>/"pdcurses\/curses.h"/g' fileman.h
sed -i 's/for (int i=0,a=0;i<numCharsToPrint;i++,a++)/for (int i=0,a=0;i<numCharsToPrint-1;i++,a++)/g' program3-4.c sed -i 's/for (int i=0,a=0;i<numCharsToPrint;i++,a++)/for (int i=0,a=0;i<numCharsToPrint-1;i++,a++)/g' program3-4.c

Loading…
Cancel
Save