]> sigrok.org Git - libserialport.git/commitdiff
Changes to make "make distcheck" pass
authorSoeren Apel <redacted>
Fri, 6 Sep 2024 20:40:18 +0000 (22:40 +0200)
committerSoeren Apel <redacted>
Fri, 6 Sep 2024 20:40:18 +0000 (22:40 +0200)
There were two errors:

1) Changelog wasn't deleted by "make distclean"

2) libsigrok.h wasn't treated as a distributable file and hence couldn't be found. This is a result of two commits:

https://sigrok.org/gitweb/?p=libserialport.git;a=commit;h=f1c916ede191ec398cbe53d7f978078311c25785 marking libsigrok.h as non-distributable since it was build from libsigrok.h.in at the time and

https://sigrok.org/gitweb/?p=libserialport.git;a=commit;h=f6e32b2dfa322aa4bd4a279a46d588e0e73ea238 which removed libsigrok.h.in in favor of a static libsigrok.h

The second commit didn't revert the Makefile.am change that marked libsigrok.h as non-distributable, which this commit takes care of.

Makefile.am

index 9b017eb4504dc004eaa700a7d5ea542f2f038ca3..ccb076bf051d5b131ea5b3d035cf98c3e48d1a1f 100644 (file)
@@ -51,7 +51,8 @@ if MACOSX
 libserialport_la_LDFLAGS += -framework IOKit -framework CoreFoundation
 endif
 
-nodist_include_HEADERS = libserialport.h
+library_includedir = $(includedir)
+library_include_HEADERS = libserialport.h
 
 pkgconfigdir = $(libdir)/pkgconfig
 pkgconfig_DATA = libserialport.pc
@@ -70,7 +71,7 @@ EXTRA_DIST = Doxyfile \
        examples/await_events.c \
        examples/handle_errors.c
 
-MAINTAINERCLEANFILES = ChangeLog
+DISTCLEANFILES = ChangeLog
 
 .PHONY: ChangeLog doc