tweak the makefiles to ensure that libmarkdown (a synthetic target) is make before any of the executables are assembled during a parallel make

This commit is contained in:
david parsons
2022-07-30 14:39:42 +00:00
parent 25f24b5bf4
commit 6e03172bea
2 changed files with 5 additions and 2 deletions
+4 -1
View File
@@ -127,9 +127,12 @@ gethopt.o: gethopt.c
main.o: main.c mkdio.h config.h
$(BUILD) -c main.c
$(MKDLIB): $(OBJS)
$(MKDLIB): $(OBJS) .libmarkdown
./librarian.sh make $(MKDLIB) VERSION $(OBJS)
.libmarkdown: $(OBJS)
touch $@
verify: echo tools/checkbits.sh verify_subdirs
@./echo -n "headers ... "; tools/checkbits.sh && echo "GOOD"
+1 -1
View File
@@ -4,7 +4,7 @@ EXERCISE=$(exercisers)/flags
TESTFRAMEWORK += $(EXERCISE)
$(exercisers)/flags: $(exercisers)/flags.o
$(exercisers)/flags: $(exercisers)/flags.o $(MKDLIB)
$(LINK) -o $@ $< -lmarkdown
$(exercisers)/flags.o: $(exercisers)/flags.c