A Mandelbrot set renderer implemented in Haskell, outputs a farbfeld image.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Makefile 1.2KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. # Basically stolen from suckless.org
  2. include config.mk
  3. SRC = mandel.hs
  4. MAN = mandel.${SECTION}
  5. BIN = mandel
  6. all: options ${BIN}
  7. options: config.mk
  8. @echo ":: ${BIN} ${VERSION} ::"
  9. @echo
  10. @echo "HFLAGS = ${HFLAGS}"
  11. @echo "HC = ${HC}"
  12. @echo
  13. ${BIN}: ${SRC}
  14. ${HC} -o $@ ${HFLAGS} ${SRC}
  15. clean:
  16. @echo "Cleaning"
  17. @rm -f *.hi *.o *.txz ${BIN}
  18. dist: clean
  19. @echo "Making distribution tarball"
  20. @mkdir -p ${BIN}-${VERSION}
  21. @cp LICENSE Makefile README config.mk ${BIN}.1 ${SRC} \
  22. ${BIN}-${VERSION}
  23. @tar -cf ${BIN}-${VERSION}.tar ${BIN}-${VERSION}
  24. @xz -c ${BIN}-${VERSION}.tar > ${BIN}-${VERSION}.txz
  25. @rm -rf ${BIN}-${VERSION}
  26. install: all ${MAN}
  27. @echo "Installing binary to ${PREFIX}/bin"
  28. @cp -f ${BIN} ${PREFIX}/bin
  29. @chmod 755 ${PREFIX}/bin/${BIN}
  30. @echo Installing man page to ${MANPREFIX}/man${SECTION}
  31. @mkdir -p ${MANPREFIX}/man1
  32. @sed "s/VERSION/${VERSION}/g" < ${MAN} \
  33. > ${MANPREFIX}/man${SECTION}/${MAN}
  34. @chmod 644 ${MAXPREFIX}/man${SECTION}/${MAN}
  35. uninstall:
  36. @echo "Removing binary from ${PREFIX}/bin"
  37. @rm -f ${PREFIX}/bin/${BIN}
  38. @echo "Removing man page from ${MANPREFIX}/man${SECTION}
  39. @rm -f ${MANPREFIX}/man${SECTION}/${MAN}
  40. .PHONY: all options clean dist install uninstall