Restructure the code-base a bit by sticking resources in its own directory

This commit is contained in:
R. Tyler Croy 2017-01-15 19:14:59 -08:00
parent 92bd01b5d3
commit d6391cae81
No known key found for this signature in database
GPG Key ID: 1426C7DC3F51E16F
3 changed files with 5 additions and 4 deletions

View File

@ -3,6 +3,7 @@ GPRBUILD:=$(shell which gprbuild)
GPRCLEAN:=$(shell which gprclean)
EXE=obj/arun
GPRFILE=arun.gpr
RESOURCES=resources
all: $(EXE)
@ -12,8 +13,8 @@ $(EXE): prepare
prepare: src/arun-resources.c
mkdir -p obj
src/arun-resources.c: arun.gresource.xml arun.glade
glib-compile-resources --generate-source --target=$@ arun.gresource.xml
src/arun-resources.c: $(RESOURCES)/arun.gresource.xml $(RESOURCES)/arun.glade
glib-compile-resources --generate-source --target=$@ $(RESOURCES)/arun.gresource.xml
run: all
./$(EXE)
@ -22,7 +23,7 @@ doc:
gnatdoc -P$(GPRFILE) --no-subprojects
clean:
$(GPRCLEAN) -p$(GPRFILE)
$(GPRCLEAN) -P$(GPRFILE)
rm -f src/arun-resources.c
.PHONY: all clean prepare run doc

View File

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<gresources>
<gresource prefix="/io/lasagna/arun">
<file preprocess="xml-stripblanks">arun.glade</file>
<file preprocess="xml-stripblanks">resources/arun.glade</file>
</gresource>
</gresources>