Skip to content

Commit bde54b0

Browse files
committed
Sync build files with other Circuits projects
1 parent 570a5de commit bde54b0

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

Makefile

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ ERL_LDFLAGS ?= -L$(ERL_EI_LIBDIR) -lei
5757

5858
HAL_SRC ?= src/hal_sysfs.c src/hal_sysfs_interrupts.c src/hal_rpi.c
5959
HAL_SRC += src/nif_utils.c
60-
SRC =$(HAL_SRC) src/gpio_nif.c
60+
SRC = $(HAL_SRC) src/gpio_nif.c
6161
HEADERS =$(wildcard src/*.h)
6262
OBJ = $(SRC:src/%.c=$(BUILD)/%.o)
6363

@@ -76,13 +76,10 @@ $(BUILD)/%.o: src/%.c
7676
$(NIF): $(OBJ)
7777
$(CC) -o $@ $(ERL_LDFLAGS) $(LDFLAGS) $^
7878

79-
$(PREFIX):
80-
mkdir -p $@
81-
82-
$(BUILD):
79+
$(PREFIX) $(BUILD):
8380
mkdir -p $@
8481

8582
clean:
86-
$(RM) $(NIF) $(BUILD)/*.o
83+
$(RM) $(NIF) $(OBJ)
8784

8885
.PHONY: all clean calling_from_make install

mix.exs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ defmodule Circuits.GPIO.MixProject do
4545
"README.md",
4646
"PORTING.md",
4747
"LICENSE",
48+
"CHANGELOG.md",
4849
"Makefile"
4950
],
5051
licenses: ["Apache-2.0"],

0 commit comments

Comments
 (0)