Skip to content

Commit

Permalink
Synchronize build files with other Circuits projects
Browse files Browse the repository at this point in the history
  • Loading branch information
fhunleth committed Nov 5, 2019
1 parent 2e63476 commit f8d9afd
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
7 changes: 2 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -66,13 +66,10 @@ $(BUILD)/%.o: src/%.c
$(NIF): $(OBJ)
$(CC) -o $@ $(ERL_LDFLAGS) $(LDFLAGS) $^

$(PREFIX):
mkdir -p $@

$(BUILD):
$(PREFIX) $(BUILD):
mkdir -p $@

clean:
$(RM) $(NIF) $(BUILD)/*.o
$(RM) $(NIF) $(OBJ)

.PHONY: all clean calling_from_make install
8 changes: 5 additions & 3 deletions mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ defmodule Circuits.SPI.MixProject do
use Mix.Project

@version "0.1.3"
@source_url "https://github.com/elixir-circuits/circuits_spi"

{:ok, system_version} = Version.parse(System.version())
@elixir_version {system_version.major, system_version.minor, system_version.patch}
Expand All @@ -13,7 +14,7 @@ defmodule Circuits.SPI.MixProject do
elixir: "~> 1.4",
description: description(),
package: package(),
source_url: "https://github.com/elixir-circuits/circuits_spi",
source_url: @source_url,
compilers: [:elixir_make | Mix.compilers()],
make_targets: ["all"],
make_clean: ["clean"],
Expand Down Expand Up @@ -43,10 +44,11 @@ defmodule Circuits.SPI.MixProject do
"README.md",
"PORTING.md",
"LICENSE",
"CHANGELOG.md",
"Makefile"
],
licenses: ["Apache-2.0"],
links: %{"GitHub" => "https://github.com/elixir-circuits/circuits_spi"}
links: %{"GitHub" => @source_url}
}
end

Expand All @@ -71,7 +73,7 @@ defmodule Circuits.SPI.MixProject do
extras: ["README.md", "PORTING.md"],
main: "readme",
source_ref: "v#{@version}",
source_url: "https://github.com/elixir-circuits/circuits_spi"
source_url: @source_url
]
end

Expand Down

0 comments on commit f8d9afd

Please sign in to comment.