aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile.in
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2017-05-23 07:49:30 +0200
committerTristan Gingold <tgingold@free.fr>2017-05-23 07:49:30 +0200
commitd29431d443b497dae9f07d6c9dc82213669f92ed (patch)
tree5295dc87fe9bef7757a9c7c3e1ce1fd563a54c58 /Makefile.in
parent353ee35fc75da5fd25008c6537434186e2a759b3 (diff)
downloadghdl-d29431d443b497dae9f07d6c9dc82213669f92ed.tar.gz
ghdl-d29431d443b497dae9f07d6c9dc82213669f92ed.tar.bz2
ghdl-d29431d443b497dae9f07d6c9dc82213669f92ed.zip
Avoid dependencies on dirs, create dirs during configure.
For #352
Diffstat (limited to 'Makefile.in')
-rw-r--r--Makefile.in9
1 files changed, 8 insertions, 1 deletions
diff --git a/Makefile.in b/Makefile.in
index 63aaa366b..342ca567b 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -163,7 +163,7 @@ ghdl_mcode$(EXEEXT): $(GRT_ADD_OBJS) $(GRT_SRC_DEPS) $(ORTHO_DEPS) \
memsegs_c.o: $(srcdir)/src/ortho/mcode/memsegs_c.c
$(CC) -c $(OPT_FLAGS) -o $@ $<
-libs.vhdl.mcode: force
+libs.vhdl.mcode: ghdl_mcode$(EXEEXT)
$(MAKE) -f $(srcdir)/libraries/Makefile.inc $(LIBVHDL_FLAGS_TO_PASS) GHDL=$(PWD)/ghdl_mcode$(EXEEXT) GHDL_FLAGS="" VHDL_COPY_OBJS=no vhdl.libs.all
install.mcode.program: install.dirs ghdl_mcode$(EXEEXT)
@@ -444,6 +444,7 @@ clean: force
$(RM) -f ghdl1-gcc$(EXEEXT) ghdl1-llvm$(EXEEXT) ghdl1-debug$(EXEEXT)
$(RM) -f run-bind.ad? grt.lst grt-files grt-files.in
$(RM) -rf lib
+ $(MAKE) create-dirs
distclean: clean
$(RM) -f default_paths.ads ortho_code-x86-flags.ads
@@ -454,6 +455,12 @@ clean-c: force
$(RM) -f memsegs_c.o chkstk.o jumps.o times.o grt-cbinding.o grt-cvpi.o
$(RM) -f fstapi.o fastlz.o lz4.o
+create-dirs: force
+ $(MKDIR) -p $(VHDL_LIB_DIR)
+ for d in $(VHDLLIB_SUBDIRS); do \
+ $(MKDIR) -p $(LIBDST_DIR)/$$d; \
+ done
+
force:
.PHONY: force clean distclean clean-c