changes make target dependencies
authorRobert Timm <mail@rtti.de>
Fri, 7 Apr 2017 22:43:49 +0000 (00:43 +0200)
committerRobert Timm <mail@rtti.de>
Fri, 7 Apr 2017 22:43:49 +0000 (00:43 +0200)
technically, the vimb binary does not depend on webext, but the all
target should build vimb and webext

src/Makefile

index d9c3d4d..fab3cca 100644 (file)
@@ -5,12 +5,12 @@ SUBDIRS = webextension
 OBJ     = $(patsubst %.c, %.o, $(wildcard *.c))
 JSFILES = $(wildcard scripts/*.js)
 
-all: vimb
+all: vimb $(SUBDIRS:%=%.subdir-all)
 
 clean: $(SUBDIRS:%=%.subdir-clean)
        $(RM) vimb *.o scripts/scripts.h
 
-vimb: $(OBJ) webextension.subdir-all
+vimb: $(OBJ)
        $(CC) $(LDFLAGS) $(OBJ) -o $@
 
 $(OBJ): config.h $(BASEDIR)/config.mk scripts/scripts.h