avoid circular dependency
[~bandali/bndl.org] / 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/.*))
 
 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-*
 
 # 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
 static/publications-partial.html:
        $(MAKE) -C $(@D) $(@F)
 out/publications.html: static/publications-partial.html