avoid circular dependency
authorAmin Bandali <bandali@gnu.org>
Thu, 16 Jul 2020 14:56:12 +0000 (10:56 -0400)
committerAmin Bandali <bandali@gnu.org>
Thu, 16 Jul 2020 14:56:12 +0000 (10:56 -0400)
Makefile

index a8b6ccb..38db53a 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,4 @@
-SRC := $(filter-out $(wildcard meta_*), \
-$(wildcard *.m4 fsf-internship/*.m4))
+SRC := $(filter-out $(wildcard meta_*), $(wildcard *.m4 fsf-internship/*.m4))
 OUTPUTS := $(patsubst %.m4,out/%.html, $(SRC))
 STATIC := $(patsubst static/%,out/%, $(wildcard static/* static/.*))
 
@@ -14,7 +13,7 @@ $(STATIC): ; ln -s $(PWD)/static/$(@F) $@
 
 # publications bibliography
 static/publications-partial.html: static/bandali.bib static/bandali-bib-*
-static/publications-partial.html: static/publications-*
+static/publications-partial.html: $(filter-out static/publications-partial.html, $(wildcard static/publications-*))
 static/publications-partial.html:
        $(MAKE) -C $(@D) $(@F)
 out/publications.html: static/publications-partial.html