This commit adds a small hook, that creates lib/debug and lib/optimized
directories during the build.
This is particularly useful if the deal.II library is locally managed
by a version control system that cannot track empty directories, such
as git.
git-svn-id: https://svn.dealii.org/trunk@25023
0785d39b-7218-0410-832d-
ea1e28bc413d
go-files := $(addprefix $(LIBDIR)/debug/, $(tmp1:.cc=.$(OBJEXT)))
-debug: $(LIBDIR)/libdeal_II.g$(lib-suffix)
-optimized: $(LIBDIR)/libdeal_II$(lib-suffix)
+debug: mkdir-debug $(LIBDIR)/libdeal_II.g$(lib-suffix)
+optimized: mkdir-optimized $(LIBDIR)/libdeal_II$(lib-suffix)
+mkdir-debug:
+ @mkdir -p "$(LIBDIR)/debug/"
+ @echo Created $(LIBDIR)/debug directory.
+
+mkdir-optimized:
+ @mkdir -p "$(LIBDIR)/optimized/"
+ @echo Created $(LIBDIR)/optimized directory.
+
# rules how to generate object files from source files.
$(LIBDIR)/debug/%.$(OBJEXT) :
endif
-
################### some clean-up rules
clean:
In the beginning the Universe was created. This has made a lot of
people very angry and has been widely regarded as a bad move.
Douglas Adams