imagepaste / Makefile

HI_DIR=obj
O_DIR=obj
SRC_DIR=src
BIN_DIR=bin
DEBUG_TARGET=imp.debug
RELEASE_TARGET=imp.release
TEST_TARGET=imp.tests
DEFINES=
GHC_OPTIONS=-odir ${O_DIR} -hidir ${HI_DIR} -i${SRC_DIR} -cpp ${DEFINES}
DEBUG_OPTIONS=-prof -auto-all -rtsopts=all -DIMAGEPASTE_DEBUG

all: debug release

debug:
	ghc --make ${DEBUG_OPTIONS} ${GHC_OPTIONS} ${SRC_DIR}/Main.hs -o ${BIN_DIR}/${DEBUG_TARGET}

release:
	ghc --make ${GHC_OPTIONS} ${SRC_DIR}/Main.hs -o ${BIN_DIR}/${RELEASE_TARGET}

clean:
	rm -f ${HI_DIR}/*.hi
	rm -f ${O_DIR}/*.o
	rm -f ${BIN_DIR}/${DEBUG_TARGET}
	rm -f ${BIN_DIR}/${RELEASE_TARGET}
	rm -f ${BIN_DIR}/${TEST_TARGET}

check:
	ghc --make ${GHC_OPTIONS} ${SRC_DIR}/Tests.hs -o ${BIN_DIR}/${TEST_TARGET}
	${BIN_DIR}/${TEST_TARGET}
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.