The makefile in javafx-font-native is getting hard to maintain.
It requires several variables to be added every time a new package containing classes with native methods is added:
see JFXFONT_T2K_PKG, JFXFONT_LAYOUT_PKG, JFXFONT_FONT_PKG, JFXFONT_T2K_PKG_PATH, JFXFONT_LAYOUT_PKG_PATH, JFXFONT_FONT_PKG_PATH, JFXFONT_T2K_JNI_PKG, JFXFONT_LAYOUT_JNI_PKG, JFXFONT_FONT_JNI_PKG
It also calls javah on all .class in each folder, it creates 43 .h instead of 9 which are really needed.
Finally, in my opinion, it should be setting the VPATH instead of repeat a recipe for each different source folder.
It requires several variables to be added every time a new package containing classes with native methods is added:
see JFXFONT_T2K_PKG, JFXFONT_LAYOUT_PKG, JFXFONT_FONT_PKG, JFXFONT_T2K_PKG_PATH, JFXFONT_LAYOUT_PKG_PATH, JFXFONT_FONT_PKG_PATH, JFXFONT_T2K_JNI_PKG, JFXFONT_LAYOUT_JNI_PKG, JFXFONT_FONT_JNI_PKG
It also calls javah on all .class in each folder, it creates 43 .h instead of 9 which are really needed.
Finally, in my opinion, it should be setting the VPATH instead of repeat a recipe for each different source folder.