make install: avoid copying private header (#2323)

This commit is contained in:
Ivan Nardi
2024-02-20 15:39:25 +01:00
committed by GitHub
parent a1280a2fd1
commit 4f2e642fbe
+2 -1
View File
@@ -96,4 +96,5 @@ install: $(NDPI_LIBS)
cp -P $(NDPI_LIB_SHARED_BASE) $(DESTDIR)$(PREFIX)$(libdir)/
cp -P $(NDPI_LIB_SHARED_BASE).$(NDPI_VERSION_MAJOR) $(DESTDIR)$(PREFIX)$(libdir)/
mkdir -p $(DESTDIR)$(PREFIX)$(includedir)
cp ../include/*.h $(DESTDIR)$(PREFIX)$(includedir)
#Avoid installing private header
find ../include/*.h ! -name ndpi_private.h -exec cp "{}" $(DESTDIR)$(PREFIX)$(includedir)/ \;