haskell: rename TMPDIR in bindings/Makefile to TMP_DIR

This commit is contained in:
Nguyen Anh Quynh 2016-04-08 16:39:20 +08:00
parent 34a203d4c9
commit 689be9356f

View file

@ -1,15 +1,15 @@
# Unicorn Engine # Unicorn Engine
# By Nguyen Anh Quynh & Dang Hoang Vu, 2015 # By Nguyen Anh Quynh & Dang Hoang Vu, 2015
TMPDIR = /tmp/unicorn_sample TMP_DIR = /tmp/unicorn_sample
DIFF = diff -u -w DIFF = diff -u -w
SAMPLE_ARM = $(TMPDIR)/sample_arm SAMPLE_ARM = $(TMP_DIR)/sample_arm
SAMPLE_ARM64 = $(TMPDIR)/sample_arm64 SAMPLE_ARM64 = $(TMP_DIR)/sample_arm64
SAMPLE_MIPS = $(TMPDIR)/sample_mips SAMPLE_MIPS = $(TMP_DIR)/sample_mips
SAMPLE_M68K = $(TMPDIR)/sample_m68k SAMPLE_M68K = $(TMP_DIR)/sample_m68k
SAMPLE_SPARC = $(TMPDIR)/sample_sparc SAMPLE_SPARC = $(TMP_DIR)/sample_sparc
SAMPLE_X86 = $(TMPDIR)/sample_x86 SAMPLE_X86 = $(TMP_DIR)/sample_x86
.PHONY: all expected python .PHONY: all expected python
@ -26,7 +26,7 @@ sample_python: expected python
expected: expected:
cd ../samples && $(MAKE) cd ../samples && $(MAKE)
mkdir -p $(TMPDIR) mkdir -p $(TMP_DIR)
../samples/sample_arm > $(SAMPLE_ARM)_e ../samples/sample_arm > $(SAMPLE_ARM)_e
../samples/sample_arm64 > $(SAMPLE_ARM64)_e ../samples/sample_arm64 > $(SAMPLE_ARM64)_e
../samples/sample_mips > $(SAMPLE_MIPS)_e ../samples/sample_mips > $(SAMPLE_MIPS)_e
@ -53,7 +53,7 @@ sample_diff: FORCE
$(DIFF) $(SAMPLE_X86)_e $(SAMPLE_X86)_o $(DIFF) $(SAMPLE_X86)_e $(SAMPLE_X86)_o
clean: clean:
rm -rf $(TMPDIR) rm -rf $(TMP_DIR)
cd python && $(MAKE) clean cd python && $(MAKE) clean
cd haskell && cabal clean cd haskell && cabal clean