Permalink
Browse files

Create dist directory if missing. Fixes build from freshly checked ou…

…t repo.
  • Loading branch information...
1 parent d4b1e50 commit 89c8f936f2784e7aa87178971f06a6898a336a19 @nominolo nominolo committed Jun 22, 2009
Showing with 5 additions and 2 deletions.
  1. +5 −2 Makefile
View
@@ -20,15 +20,18 @@ CABAL_INSTALL_OPTS += --ghc --with-compiler=$(HC) --with-hc-pkg=$(PKG)
CABAL_FLAGS ?=
# -ftesting
-$(DIST_LIB)/setup-config: $(SETUP) lib/scion.cabal
+$(DIST):
+ mkdir $(DIST)
+
+$(DIST_LIB)/setup-config: $(SETUP) lib/scion.cabal $(DIST)
@echo === Configuring scion ===
@echo Configure log: $(DIST)/lib-config-log
@cd lib && \
(../$(SETUP) configure -v --builddir=../$(DIST_LIB) \
--with-compiler=$(HC) --with-hc-pkg=$(PKG) \
--user $(CABAL_FLAGS)> ../$(DIST)/lib-config-log)
-$(DIST_SERVER)/setup-config: $(SETUP) server/scion-server.cabal $(DIST_LIB)/.installed_tag
+$(DIST_SERVER)/setup-config: $(SETUP) server/scion-server.cabal $(DIST) $(DIST_LIB)/.installed_tag
@echo === Configuring scion-server ===
@echo Configure log: $(DIST)/server-config-log
@cd server && \

0 comments on commit 89c8f93

Please sign in to comment.