~tleguern/krt

3c0c7214d5821b46c1843bd534d8e7eca119d84e — Tristan Le Guern 1 year, 7 months ago c85ff22
Update Makefile
1 files changed, 12 insertions(+), 4 deletions(-)

M Makefile
M Makefile => Makefile +12 -4
@@ 1,10 1,18 @@
SCRIPT= krt.sh
PROG= ${SCRIPT:R}
PROG= krt

.SUFFIXES: .sh
.PHONY: clean

.sh:
	cp $< $@
	chmod +x $@

all: ${PROG}

perfect_squares.txt: perfect_squares.sh
	perfect_squares.sh > perfect_squares.txt

${PROG}: perfect_squares.txt ${SCRIPT}
	cp ${SCRIPT} ${PROG}
${PROG}: perfect_squares.txt ${PROG}.sh

clean:
	rm -f -- perfect_squares.txt ${PROG} *.ppm