-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
31 lines (25 loc) · 1.07 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
VALAC=valac
VALA_PKGS=--pkg gtk+-3.0 --pkg cairo --pkg pango --pkg json-glib-1.0 --pkg posix
VALA_FLAGS=--Xcc="-lm" --gresources gresource.xml --target-glib=2.38
all: ./src/resource.c
valac $(VALA_PKGS) $(VALA_FLAGS) -o recipe ./src/*.vala ./src/resources.c
debug: ./src/resource.c
valac $(VALA_PKGS) $(VALA_FLAGS) -g -o recipe ./src/*.vala ./src/resources.c
./src/resource.c: gresource.xml
glib-compile-resources gresource.xml --generate-dependencies
glib-compile-resources gresource.xml --target=./src/resources.c --generate-source
clean:
rm ./src/resources.c
rm recipe
install:
cp -f recipe /usr/bin/
cp -f desktop/RecipeManager.desktop /usr/share/applications/
cp -f desktop/recipe-manager.svg /usr/share/icons/hicolor/scalable/apps/
cp -f recipe-manager-conf.json $(HOME)/.config/
gtk-update-icon-cache /usr/share/icons/hicolor/
uninstall:
rm -f /usr/bin/recipe
rm -f /usr/share/applications/RecipeManager.desktop
rm -f /usr/share/icons/hicolor/scalable/apps/recipe-manager.svg
rm -f $(HOME)/.config/recipe-manager-conf.json
gtk-update-icon-cache /usr/share/icons/hicolor/