blob: 120556827ca50497db52d7e1edaf9e320a3a7a9e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
TOP=../../../..
include $(TOP)/mk/boilerplate.mk
include $(TOP)/mk/test.mk
EXECUTABLE = Main$(exeext)
CLEAN_FILES = c.c c.o Main.o Main.hi $(EXECUTABLE)
clean:
$(RM) $(CLEAN_FILES)
# Test that updates to C modules are noticed
recomp004:
$(RM) $(CLEAN_FILES)
$(CP) c1.c c.c
'$(TEST_HC)' $(TEST_HC_OPTS) -v0 -c c.c -o c.o
'$(TEST_HC)' $(TEST_HC_OPTS) -v0 --make Main.hs c.o -o $(EXECUTABLE)
./$(EXECUTABLE)
$(CP) c2.c c.c
'$(TEST_HC)' $(TEST_HC_OPTS) -v0 -c c.c -o c.o
# Hack to make sure c.o is really newer
touch -t 01010000 Main.hs Main.hi Main.o c.c $(EXECUTABLE)
'$(TEST_HC)' $(TEST_HC_OPTS) -v0 --make Main.hs c.o -o $(EXECUTABLE)
./$(EXECUTABLE)
|