Skip to content
Snippets Groups Projects
Commit f4bce9ad authored by Ian Lynagh's avatar Ian Lynagh
Browse files

Add a Makefile in libraries/

parent f986a831
No related merge requests found
...@@ -58,6 +58,7 @@ for f in $libraries; do ...@@ -58,6 +58,7 @@ for f in $libraries; do
fi fi
top=`echo $f | sed 's#[^/]\+#..#g'` top=`echo $f | sed 's#[^/]\+#..#g'`
echo "${f}_PACKAGE = ${pkg}" >> $f/ghc.mk echo "${f}_PACKAGE = ${pkg}" >> $f/ghc.mk
echo "${f}_dist-install_GROUP = libraries" >> $f/ghc.mk
echo "\$(eval \$(call build-package,${f},dist-install,${stage}))" >> $f/ghc.mk echo "\$(eval \$(call build-package,${f},dist-install,${stage}))" >> $f/ghc.mk
rm -f $f/GNUmakefile rm -f $f/GNUmakefile
echo "Creating $f/GNUmakefile" echo "Creating $f/GNUmakefile"
......
...@@ -895,3 +895,6 @@ maintainer-clean : distclean ...@@ -895,3 +895,6 @@ maintainer-clean : distclean
$(RM) libraries/process/include/HsProcessConfig.h.in $(RM) libraries/process/include/HsProcessConfig.h.in
$(RM) libraries/unix/include/HsUnixConfig.h.in $(RM) libraries/unix/include/HsUnixConfig.h.in
$(RM) libraries/old-time/include/HsTimeConfig.h.in $(RM) libraries/old-time/include/HsTimeConfig.h.in
.PHONY: all_libraries
dir = libraries
TOP = ..
include $(TOP)/mk/sub-makefile.mk
...@@ -42,6 +42,11 @@ endif ...@@ -42,6 +42,11 @@ endif
ifneq "$(BINDIST) $3" "YES 0" ifneq "$(BINDIST) $3" "YES 0"
$(call all-target,$1,all_$1_$2) $(call all-target,$1,all_$1_$2)
# This give us things like
# all_libraries: all_libraries/base_dist-install
ifneq "$$($1_$2_GROUP)" ""
all_$$($1_$2_GROUP): all_$1_$2
endif
$(call clean-target,$1,$2,$1/$2) $(call clean-target,$1,$2,$1/$2)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment