diff options
| -rw-r--r-- | Makefile | 10 | ||||
| -rw-r--r-- | src/main.hs (renamed from main.hs) | 0 | ||||
| -rw-r--r-- | src/parser.hs (renamed from parser.hs) | 0 |
3 files changed, 6 insertions, 4 deletions
@@ -12,19 +12,21 @@ CC = ghc +SRC_DIR = src +BUILD_DIR = build NAME = computor -SRC = $(shell find . -name "*.hs") +SRC = $(shell find $(SRC_DIR) -type f -name "*.hs") all: $(NAME) $(NAME): $(SRC) - $(CC) -o $(NAME) $(SRC) + $(CC) --make -outputdir $(BUILD_DIR) -o $(NAME) $(SRC) clean: - rm -f *.o *.hi + $(RM) $(BUILD_DIR)/*.o $(BUILD_DIR)/*.hi fclean: clean - rm -f $(NAME) + $(RM) $(NAME) re: fclean all diff --git a/parser.hs b/src/parser.hs index 7929c26..7929c26 100644 --- a/parser.hs +++ b/src/parser.hs |
