Added EXTRA_TARGETS Makefile variable
authorClifford Wolf <clifford@clifford.at>
Thu, 28 Mar 2013 15:53:40 +0000 (16:53 +0100)
committerClifford Wolf <clifford@clifford.at>
Thu, 28 Mar 2013 15:53:40 +0000 (16:53 +0100)
Makefile
techlibs/Makefile.inc

index d59ca1d6060cb97151519a11687e621bb47896ea..e1b8bac16871b22f75300f048b028f82a42a108b 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -16,6 +16,7 @@ OBJS += libs/sha1/sha1.o
 OBJS += libs/subcircuit/subcircuit.o
 
 GENFILES =
+EXTRA_TARGETS =
 TARGETS = yosys yosys-config
 
 all: top-all
@@ -60,7 +61,7 @@ include passes/*/Makefile.inc
 include backends/*/Makefile.inc
 include techlibs/Makefile.inc
 
-top-all: $(TARGETS)
+top-all: $(TARGETS) $(EXTRA_TARGETS)
 
 yosys: $(OBJS)
        $(CXX) -o yosys $(LDFLAGS) $(OBJS) $(LDLIBS)
index 031a4ad30f0c3ce54c6df89a923a004df4c35ed8..6c2a5f66ad9d48b4ffbb4dc3c3ce8b51229a1618 100644 (file)
@@ -1,5 +1,5 @@
 
-TARGETS += techlibs/blackbox.v
+EXTRA_TARGETS += techlibs/blackbox.v
 
 techlibs/blackbox.v: techlibs/blackbox.sed techlibs/simlib.v techlibs/stdcells_sim.v
        cat techlibs/simlib.v techlibs/stdcells_sim.v | sed -rf techlibs/blackbox.sed > techlibs/blackbox.v.new