Bad Makefile dependency error
Chris-F5 opened this issue · 0 comments
Chris-F5 commented
Describe the bug
When make
is run on a system without GTK installed, the error is unhelpful.
make[1]: ui/glade/wifih.gresource.xml: Permission denied
To Reproduce
Run make
on system without GTK installed, such that pkgconf --variable=glib_compile_resources gio-2.0
will run without writing to stdout.
Expected behavior
I expect the Makefile to give me an error saying that gio isn't installed.
Screenshots
$ make
mkdir -p build
Run 'sudo make install' for installation.
Run 'sudo make uninstall' for uninstallation.
cd src && make
make[1]: Entering directory '/home/user/linux-wifi-hotspot/src'
ui/glade/wifih.gresource.xml --target=ui/resources.c --sourcedir=ui/glade --generate-source
make[1]: ui/glade/wifih.gresource.xml: Permission denied
make[1]: *** [Makefile:31: resources.c] Error 127
make[1]: Leaving directory '/home/chris/s/linux-wifi-hotspot/src'
make: *** [Makefile:5: all] Error 2
Desktop (please complete the following information):
- OS: Raspberry Pi OS Lite
Additional context
GLIB_COMPILE_RESOURCES = $(shell $(PKGCONFIG) --variable=glib_compile_resources gio-2.0)
in src/Makefile
is empty so $(GLIB_COMPILE_RESOURCES) ui/glade/wifih.gresource.xml --target=ui/$@ --sourcedir=ui/glade --generate-source
tries to run ui/glade/wifih.gresource.xml
as an executable.