Test coverage -- fix regression
[open-adventure.git] / Makefile
index d16b12b8f0cfb36814af8d3d332b8d6a23da2835..b8582d5d66c1f34df008d45634ea9ea88897a123 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -38,40 +38,43 @@ endif
 
 OBJS=main.o init.o actions.o score.o misc.o saveresume.o
 CHEAT_OBJS=cheat.o init.o actions.o score.o misc.o saveresume.o
-SOURCES=$(OBJS:.o=.c) advent.h adventure.text adventure.yaml Makefile control linenoise/linenoise.[ch] newdungeon.py
+SOURCES=$(OBJS:.o=.c) advent.h adventure.yaml Makefile control linenoise/linenoise.[ch] make_dungeon.py
 
 .c.o:
        $(CC) $(CCFLAGS) $(DBX) -c $<
 
-advent:        $(OBJS) linenoise.o newdb.o
-       $(CC) $(CCFLAGS) $(DBX) -o advent $(OBJS) newdb.o linenoise.o $(LDFLAGS) $(LIBS)
+advent:        $(OBJS) linenoise.o dungeon.o
+       $(CC) $(CCFLAGS) $(DBX) -o advent $(OBJS) dungeon.o linenoise.o $(LDFLAGS) $(LIBS)
 
-main.o:                advent.h newdb.h
+main.o:                advent.h dungeon.h
 
-init.o:                advent.h newdb.h
+init.o:                advent.h dungeon.h
 
-actions.o:     advent.h newdb.h
+actions.o:     advent.h dungeon.h
 
-score.o:       advent.h newdb.h
+score.o:       advent.h dungeon.h
 
-misc.o:                advent.h newdb.h
+misc.o:                advent.h dungeon.h
 
-cheat.o:       advent.h newdb.h
+cheat.o:       advent.h dungeon.h
 
-saveresume.o:  advent.h newdb.h
+saveresume.o:  advent.h dungeon.h
 
-newdb.o:       newdb.c newdb.h
-       $(CC) $(CCFLAGS) $(DBX) -c newdb.c
+dungeon.o:     dungeon.c dungeon.h
+       $(CC) $(CCFLAGS) $(DBX) -c dungeon.c
 
-newdb.c newdb.h: newdungeon.py adventure.yaml
-       python3 newdungeon.py
+dungeon.c dungeon.h: make_dungeon.py adventure.yaml
+       python3 make_dungeon.py
 
 linenoise.o:   linenoise/linenoise.h
+       $(CC) -c linenoise/linenoise.c
+
+linenoise-dbg: linenoise/linenoise.h
        $(CC) $(CCFLAGS) -c linenoise/linenoise.c
 
 clean:
        rm -f *.o advent cheat *.html *.gcno *.gcda
-       rm -f newdb.c newdb.h
+       rm -f dungeon.c dungeon.h
        rm -f README advent.6 MANIFEST *.tar.gz
        rm -f *~
        rm -f .*~
@@ -79,8 +82,8 @@ clean:
        cd tests; $(MAKE) --quiet clean
 
 
-cheat: $(CHEAT_OBJS) linenoise.o newdb.o 
-       $(CC) $(CCFLAGS) $(DBX) -o cheat $(CHEAT_OBJS) linenoise.o newdb.o $(LDFLAGS) $(LIBS)
+cheat: $(CHEAT_OBJS) linenoise.o dungeon.o 
+       $(CC) $(CCFLAGS) $(DBX) -o cheat $(CHEAT_OBJS) linenoise.o dungeon.o $(LDFLAGS) $(LIBS)
 
 check: advent cheat
        cd tests; $(MAKE) --quiet
@@ -147,4 +150,4 @@ debug: CCFLAGS += -O0 --coverage -ggdb
 debug: linty
 debug: cheat
 
-
+debug-ln: linenoise-dbg debug