Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

add autostart destktop file

  • Loading branch information...
commit c2562c6a5bca7646c82651fad3c95bb3858aeae9 1 parent 6c092d5
Pau Oliva authored June 08, 2012
31  Makefile
... ...
@@ -1,10 +1,39 @@
1  
-CC=gcc
  1
+DESTDIR?=/
  2
+SHELL = /bin/sh
  3
+CC?=gcc
2 4
 CFLAGS=-Wall -Wextra -Wwrite-strings -O -g $(shell pkg-config --cflags --libs gtk+-3.0 appindicator3-0.1 libgtop-2.0) -lsensors
  5
+INSTALL = /usr/bin/install -c
  6
+INSTALLDATA = /usr/bin/install -c -m 644
  7
+PROGNAME = indicator-sysbat
  8
+
  9
+srcdir = .
  10
+prefix = $(DESTDIR)
  11
+bindir = $(prefix)/usr/bin
  12
+docdir = $(prefix)/usr/share/doc
  13
+mandir = $(prefix)/usr/share/man
3 14
 
4 15
 all: indicator-sysbat
5 16
 
6 17
 indicator-sysbat: indicator-sysbat.c
7 18
 	$(CC) $< $(CFLAGS) -o $@
8 19
 
  20
+install: all
  21
+	mkdir -p $(bindir)
  22
+	$(INSTALL) $(PROGNAME) $(bindir)/$(PROGNAME)
  23
+	mkdir -p $(prefix)/etc/xdg/autostart/
  24
+	$(INSTALLDATA) $(PROGNAME).desktop $(prefix)/etc/xdg/autostart/
  25
+	mkdir -p $(docdir)/$(PROGNAME)/
  26
+	$(INSTALLDATA) $(srcdir)/README.md $(docdir)/$(PROGNAME)/
  27
+	$(INSTALLDATA) $(srcdir)/LICENSE $(docdir)/$(PROGNAME)/
  28
+#	mkdir -p $(mandir)/man1/
  29
+#	$(INSTALLDATA) $(srcdir)/$(PROGNAME).1 $(mandir)/man1/
  30
+
  31
+uninstall:
  32
+	rm -rf $(bindir)/$(PROGNAME)
  33
+	rm -rf $(prefix)/etc/xdg/autostart/$(PROGNAME).desktop
  34
+	rm -rf $(docdir)/$(PROGNAME)/
  35
+#	rm -rf $(mandir)/man1/$(PROGNAME).1
  36
+
  37
+
9 38
 clean:
10 39
 	rm -f *.o indicator-sysbat
15  indicator-sysbat.desktop
... ...
@@ -0,0 +1,15 @@
  1
+[Desktop Entry]
  2
+Type=Application
  3
+Exec=/usr/bin/indicator-sysbat
  4
+Icon=
  5
+Categories=
  6
+Hidden=false
  7
+NoDisplay=false
  8
+Terminal=false
  9
+X-GNOME-Autostart-enabled=true
  10
+X-KDE-autostart-after=panel
  11
+X-KDE-StartupNotify=false
  12
+Name[en_US]=indicator-sysbat
  13
+Name=indicator-sysbat
  14
+Comment[en_US]=a simple indicator showing CPU, Memory, Battery and fan speed.
  15
+Comment=a simple indicator showing CPU, Memory, Battery and fan speed.

0 notes on commit c2562c6

Please sign in to comment.
Something went wrong with that request. Please try again.