Add a "show" target here, too, quite useful for debugging the build process
[ghc-hetmet.git] / libraries / Makefile
index 5ba4d70..5089813 100644 (file)
 #   [ -e foo/configure.ac ] && ( cd foo && autoreconf )
 #   make make.library.foo
 
-.PHONY: default_target
+.PHONY: default_target show
 
 default_target: all
 
+show:
+       @echo '$(VALUE)="$($(VALUE))"'
+
 # make doesn't give us an easy way to get the libraries built in
 # dependency order the first time, but not rebuild base (for example)
 # when we want to rebuild another library later.
@@ -344,7 +347,7 @@ endif
 $(foreach SUBDIR,$(SUBDIRS),binary-dist.library.$(SUBDIR)): \
 binary-dist.library.%:
        if ifBuildable/ifBuildable $*; then \
-         $(MKDIRHIER) $(BIN_DIST_LIBDIR)/$* \
+         $(MKDIRHIER) $(BIN_DIST_LIBDIR)/$*; \
          cd $* && \
          cp    $*.cabal      $(BIN_DIST_LIBDIR)/$* && \
          cp    LICENSE       $(BIN_DIST_LIBDIR)/$* && \