shithub: choc

Download patch

ref: 4082f7caec1984713ba507a97b3c12fae2b5b9b6
parent: 58fee652c452dde03ab5b1a4528e713e0b97a459
author: Fabian Greffrath <fabian@greffrath.com>
date: Wed Sep 20 06:26:48 EDT 2017

Make "make" aware of convenience libraries in subdirectories

This may not be the most sophisticated solution (i.e. I would have
preferred to use wildcards in the target rules), but it should be
good enough to fix #938.

--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -168,6 +168,20 @@
 $(SETUP_BINARIES): @PROGRAM_PREFIX@setup$(EXEEXT)
 	cp @PROGRAM_PREFIX@setup$(EXEEXT) $@
 
+# Make "make" aware of convenience libraries in subdirectories
+
+doom/libdoom.a:
+	$(MAKE) -C doom
+
+heretic/libheretic.a:
+	$(MAKE) -C heretic
+
+hexen/libhexen.a:
+	$(MAKE) -C hexen
+
+strife/libstrife.a:
+	$(MAKE) -C strife
+
 # Source files needed for chocolate-setup:
 
 SETUP_FILES=                               \