X-Git-Url: https://git.xandkar.net/?p=dups.git;a=blobdiff_plain;f=Makefile;h=13520a8bb1168a21e652633ed0db03ecb0808b8e;hp=89c5816e47069c223268331b6e4ceb4b7776b352;hb=03db9aee3a879fdb6aef6b40d86b9aca3898a376;hpb=948ee900b86c5935412cf8a53fc4f55260662249 diff --git a/Makefile b/Makefile index 89c5816..13520a8 100644 --- a/Makefile +++ b/Makefile @@ -1,16 +1,17 @@ -TARGET := dupfiles.native +EXE_NAME := dups +EXE_TYPE := native -.PHONY: all build clean run +.PHONY: all build clean all: @$(MAKE) -s clean @$(MAKE) -s build build: - @ocamlbuild -cflags '-w A' -pkg 'unix' $(TARGET) + @ocamlbuild -cflags '-w A' -pkg 'unix' $(EXE_NAME).$(EXE_TYPE) + @cp _build/$(EXE_NAME).$(EXE_TYPE) $(EXE_NAME) + @rm -f $(EXE_NAME).$(EXE_TYPE) clean: @ocamlbuild -clean - -run: - @find ~ -type f | egrep -v '/.git/' | ./$(TARGET) + @rm -f $(EXE_NAME)