aboutsummaryrefslogtreecommitdiffstats
path: root/lib/hipe/Makefile
diff options
context:
space:
mode:
authorPatrik Nyblom <[email protected]>2012-02-28 17:49:14 +0100
committerPatrik Nyblom <[email protected]>2012-02-28 17:49:14 +0100
commitd3a96b096f457c881296c4e7f69de47399ab9ed8 (patch)
treea4f220a3246428f2c3386978eae4965a3c5c1d55 /lib/hipe/Makefile
parentdef41007cb990ed6454ce5c78c3dcfb848975513 (diff)
parentcc3122ab804299810c817f3819323234ff3e23c3 (diff)
downloadotp-d3a96b096f457c881296c4e7f69de47399ab9ed8.tar.gz
otp-d3a96b096f457c881296c4e7f69de47399ab9ed8.tar.bz2
otp-d3a96b096f457c881296c4e7f69de47399ab9ed8.zip
Merge branch 'maint'
Diffstat (limited to 'lib/hipe/Makefile')
-rw-r--r--lib/hipe/Makefile21
1 files changed, 17 insertions, 4 deletions
diff --git a/lib/hipe/Makefile b/lib/hipe/Makefile
index 6682c9aac0..f2be75f0dd 100644
--- a/lib/hipe/Makefile
+++ b/lib/hipe/Makefile
@@ -37,8 +37,13 @@ else
SUB_DIRECTORIES = $(ALWAYS_SUBDIRS)
endif
+
include native.mk
+ifndef EBIN
+EBIN = ../ebin
+endif
+
#
# Default Subdir Targets
#
@@ -52,12 +57,20 @@ edocs:
fi
all-subdirs:
- -for dir in $(SUB_DIRECTORIES); do \
- (cd $$dir; $(MAKE) $(MAKETARGET) EBIN=../ebin; cd ..); \
+ for dir in $(SUB_DIRECTORIES); do \
+ (cd $$dir; $(MAKE) $(MAKETARGET) EBIN=$(EBIN); cd ..); \
+ done
+
+# distclean and realclean should clean the bootstrap files
+all-subdirs-x:
+ for dir in $(SUB_DIRECTORIES); do \
+ (cd $$dir; $(MAKE) $(MAKETARGET) EBIN=../boot_ebin; cd ..); \
done
+clean:
+ $(MAKE) MAKETARGET="clean" all-subdirs all-subdirs-x
distclean:
- $(MAKE) MAKETARGET="distclean" all-subdirs
+ $(MAKE) MAKETARGET="distclean" all-subdirs all-subdirs-x
realclean:
- $(MAKE) MAKETARGET="realclean" all-subdirs
+ $(MAKE) MAKETARGET="realclean" all-subdirs all-subdirs-x