X-Git-Url: https://git.xandkar.net/?p=dups.git;a=blobdiff_plain;f=Makefile;h=2807b9b8e49afb2277fe6fa1c5f66940fac3af92;hp=d79ad631b969a9b2ca03443bb42a265429eec47f;hb=HEAD;hpb=cce97c27face42237f2b3757c91ad6e29685d54a diff --git a/Makefile b/Makefile index d79ad63..2807b9b 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' $(TARGET) + @ocamlbuild -cflags '-w A' -pkgs 'str,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)