Makefile (552B)
1 include config.mk 2 3 .SUFFIXES: .c .o .gz 4 .PHONY : all clean install uninstall 5 6 .c.o: 7 @echo -e "CC $<" 8 @${CC} -c ${CFLAGS} $< -o $@ 9 10 prout: prout.o 11 @echo -e "LD prout" 12 @${LD} $^ -o $@ ${LDFLAGS} 13 14 prout.1.gz: prout.1 15 @echo "GZ $<" 16 @${GZ} -c $< > $@ 17 18 all : prout prout.1.gz 19 20 clean : 21 rm -f prout *.o *.gz *~ 22 23 install: prout prout.1.gz 24 install -D -m 0755 prout ${DESTDIR}${PREFIX}/bin/prout 25 install -D -m 0644 prout.1.gz ${DESTDIR}${MANPREFIX}/man1/prout.1.gz 26 27 uninstall: 28 rm ${DESTDIR}${PREFIX}/bin/prout 29 rm ${DESTDIR}${MANPREFIX}/man1/prout.1.gz