Skip to content

Commit

Permalink
Merge pull request #30 from Sensirion/fix-makefile
Browse files Browse the repository at this point in the history
Rebuild example if example source changes
  • Loading branch information
rnestler authored Mar 8, 2019
2 parents 7386b93 + 366571f commit d5cc6b4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

* `[fixed]` Rebuild when `sps30_example_usage.c` changed (#30)

## [1.1.0] - 2019-03-07

* `[added]` `sps_get_driver_version()` (#12)
Expand Down
4 changes: 2 additions & 2 deletions sps30-uart/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ sensirion_shdlc.o: ${sensirion_uart_dir}/sensirion_shdlc.c

sps30.o: sensirion_shdlc.o ${sps_common_dir}/sps_git_version.c sps30.h sps30.c

sps30_example_usage: ${sensirion_uart_objects} ${sps_common_objects} sps30.o
$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ $(LOADLIBES) $(LDLIBS) sps30_example_usage.c
sps30_example_usage: ${sensirion_uart_objects} ${sps_common_objects} sps30.o sps30_example_usage.c
$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ $(LOADLIBES) $(LDLIBS)

clean:
$(RM) ${all_objects} ${sps_binaries}

0 comments on commit d5cc6b4

Please sign in to comment.