Added application icon set
authorDr. Johann Pfefferl <pfefferl@nghape.jpnet>
Tue, 11 May 2010 14:21:20 +0000 (16:21 +0200)
committerDr. Johann Pfefferl <pfefferl@nghape.jpnet>
Tue, 11 May 2010 14:21:20 +0000 (16:21 +0200)
Makefile
gps-tracker-128x128.png [new file with mode: 0644]
gps-tracker-26x26.png [new file with mode: 0644]
gps-tracker-40x40.png [new file with mode: 0644]
gps-tracker-64x64.png [new file with mode: 0644]

index e7a58d4..c5123a4 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,3 +1,5 @@
+VERSION=1.0
+DESTDIR=/
 # define a list of pkg-config packages we want to use
 pkg_packages := gtk+-2.0 hildon-1 liblocation hildon-fm-2
 
@@ -10,12 +12,29 @@ PKG_LDFLAGS := $(shell pkg-config --libs $(pkg_packages))
 # -Wall: warnings
 # -g: debugging
 ADD_CFLAGS := -Wall -g
+CDEBUG=-g
 
 # combine the flags (so that CFLAGS/LDFLAGS from the command line
 # still work).
 CFLAGS  := $(PKG_CFLAGS) $(ADD_CFLAGS) $(CFLAGS)
 LDFLAGS := $(PKG_LDFLAGS) $(LDFLAGS)
 
+ifdef DEBUG
+CFLAGS += $(CDEBUG)
+LDFLAGS += $(CDEBUG)
+endif
+
+AUX_FILES=Makefile
+
+ICON_DIR=$(DESTDIR)`pkg-config osso-af-settings --variable=prefix`/share/icons/hicolor
+BIN_DIR=$(DESTDIR)`pkg-config osso-af-settings --variable=prefix`/bin
+DESKTOP_DIR=$(DESTDIR)`pkg-config osso-af-settings --variable=desktopentrydir`
+DBUS_SERVICE_DIR=$(DESTDIR)`pkg-config osso-af-settings --variable=dbusservicedir`
+CP_LIB_DIR=$(DESTDIR)`pkg-config hildon-control-panel --variable=pluginlibdir`
+CP_DESKTOP_DIR=$(DESTDIR)`pkg-config hildon-control-panel --variable=plugindesktopentrydir`
+MIME_DIR=$(DESTDIR)`pkg-config osso-af-settings --variable=prefix`/share/mime/packages
+BACKUP_DIR=$(DESTDIR)/etc/osso-backup/applications
+
 targets = gps-tracker
 
 .PHONY: all
@@ -28,5 +47,22 @@ all: $(targets)
 clean:
        $(RM) $(targets) *.o
 
-run: $(targets)
-       run-standalone.sh `pwd`/gps-tracker
+# for s in 64 40 26;do S=${s}x$s; convert -resize $S gps-tracker-128x128.png gps-tracker-$S.png;done
+
+install:
+       mkdir -p $(ICON_DIR)/64x64/hildon/
+       mkdir -p $(ICON_DIR)/40x40/hildon/
+       mkdir -p $(ICON_DIR)/26x26/hildon/
+       mkdir -p $(BIN_DIR)
+       mkdir -p $(DESKTOP_DIR)
+       mkdir -p $(DBUS_SERVICE_DIR)
+       mkdir -p $(CP_LIB_DIR)
+       mkdir -p $(CP_DESKTOP_DIR)
+       mkdir -p $(MIME_DIR)
+       mkdir -p $(BACKUP_DIR)
+       cp --target-directory=$(BIN_DIR) $(targets)
+       cp gps-tracker-64.png $(ICON_DIR)/64x64/hildon/gps-tracker.png
+       cp gps-tracker-40.png $(ICON_DIR)/40x40/hildon/gps-tracker.png
+       cp gps-tracker-26.png $(ICON_DIR)/26x26/hildon/gps-tracker.png
+
+dist: clean
diff --git a/gps-tracker-128x128.png b/gps-tracker-128x128.png
new file mode 100644 (file)
index 0000000..45855c2
Binary files /dev/null and b/gps-tracker-128x128.png differ
diff --git a/gps-tracker-26x26.png b/gps-tracker-26x26.png
new file mode 100644 (file)
index 0000000..7c7eead
Binary files /dev/null and b/gps-tracker-26x26.png differ
diff --git a/gps-tracker-40x40.png b/gps-tracker-40x40.png
new file mode 100644 (file)
index 0000000..ab01041
Binary files /dev/null and b/gps-tracker-40x40.png differ
diff --git a/gps-tracker-64x64.png b/gps-tracker-64x64.png
new file mode 100644 (file)
index 0000000..f597dab
Binary files /dev/null and b/gps-tracker-64x64.png differ