mirror of
https://github.com/capstone-engine/capstone.git
synced 2025-02-01 19:42:31 +00:00
add 'dist' make target
This commit is contained in:
parent
92c1750562
commit
35cef7f7c0
23
Makefile
23
Makefile
@ -172,5 +172,28 @@ clean:
|
||||
$(MAKE) -C bindings/ocaml clean
|
||||
$(MAKE) -C tests clean
|
||||
|
||||
CSVER=capstone-$(VERSION)
|
||||
dist:
|
||||
rm -rf $(CSVER)
|
||||
git clone . $(CSVER)
|
||||
rm -rf $(CSVER)/.git*
|
||||
ifeq (,$(findstring mips,$(CAPSTONE_ARCHS)))
|
||||
rm -rf $(CSVER)/arch/Mips
|
||||
endif
|
||||
ifeq (,$(findstring arm,$(CAPSTONE_ARCHS)))
|
||||
rm -rf $(CSVER)/arch/ARM
|
||||
endif
|
||||
ifeq (,$(findstring powerpc,$(CAPSTONE_ARCHS)))
|
||||
rm -rf $(CSVER)/arch/PowerPC
|
||||
endif
|
||||
ifeq (,$(findstring aarch64,$(CAPSTONE_ARCHS)))
|
||||
rm -rf $(CSVER)/arch/AArch64
|
||||
endif
|
||||
ifeq (,$(findstring x86,$(CAPSTONE_ARCHS)))
|
||||
rm -rf $(CSVER)/arch/X86
|
||||
endif
|
||||
tar czvf $(CSVER).tar.gz $(CSVER)
|
||||
rm -rf $(CSVER)
|
||||
|
||||
.c.o:
|
||||
$(CC) $(CFLAGS) -c $< -o $@
|
||||
|
Loading…
x
Reference in New Issue
Block a user