head	1.1;
branch	1.1.1;
access;
symbols
	start:1.1.1.34
	vendor:1.1.1;
locks; strict;
comment	@# @;


1.1
date	2007.06.05.15.09.36;	author shriekout;	state Exp;
branches
	1.1.1.1;
next	;

1.1.1.1
date	2007.06.05.15.09.36;	author shriekout;	state Exp;
branches;
next	1.1.1.2;

1.1.1.2
date	2007.06.11.07.50.50;	author shriekout;	state Exp;
branches;
next	1.1.1.3;

1.1.1.3
date	2007.07.08.16.11.12;	author shriekout;	state Exp;
branches;
next	1.1.1.4;

1.1.1.4
date	2008.01.21.07.34.53;	author shriekout;	state Exp;
branches;
next	1.1.1.5;

1.1.1.5
date	2008.01.24.02.44.53;	author shriekout;	state Exp;
branches;
next	1.1.1.6;

1.1.1.6
date	2008.02.02.23.09.33;	author shriekout;	state Exp;
branches;
next	1.1.1.7;

1.1.1.7
date	2008.05.16.02.41.40;	author shriekout;	state Exp;
branches;
next	1.1.1.8;

1.1.1.8
date	2008.06.22.06.21.44;	author shriekout;	state Exp;
branches;
next	1.1.1.9;

1.1.1.9
date	2008.06.22.14.28.02;	author shriekout;	state Exp;
branches;
next	1.1.1.10;

1.1.1.10
date	2008.08.24.09.11.29;	author shriekout;	state Exp;
branches;
next	1.1.1.11;

1.1.1.11
date	2008.09.16.11.43.35;	author shriekout;	state Exp;
branches;
next	1.1.1.12;

1.1.1.12
date	2008.11.22.20.50.24;	author shriekout;	state Exp;
branches;
next	1.1.1.13;

1.1.1.13
date	2008.11.26.13.13.06;	author shriekout;	state Exp;
branches;
next	1.1.1.14;

1.1.1.14
date	2008.11.26.14.47.08;	author shriekout;	state Exp;
branches;
next	1.1.1.15;

1.1.1.15
date	2008.11.27.14.36.38;	author shriekout;	state Exp;
branches;
next	1.1.1.16;

1.1.1.16
date	2008.11.29.14.30.25;	author shriekout;	state Exp;
branches;
next	1.1.1.17;

1.1.1.17
date	2008.11.29.15.46.04;	author shriekout;	state Exp;
branches;
next	1.1.1.18;

1.1.1.18
date	2008.12.07.09.52.54;	author shriekout;	state Exp;
branches;
next	1.1.1.19;

1.1.1.19
date	2008.12.07.10.08.35;	author shriekout;	state Exp;
branches;
next	1.1.1.20;

1.1.1.20
date	2008.12.07.12.18.57;	author shriekout;	state Exp;
branches;
next	1.1.1.21;

1.1.1.21
date	2008.12.08.21.01.58;	author shriekout;	state Exp;
branches;
next	1.1.1.22;

1.1.1.22
date	2008.12.11.11.19.35;	author shriekout;	state Exp;
branches;
next	1.1.1.23;

1.1.1.23
date	2008.12.12.06.44.19;	author shriekout;	state Exp;
branches;
next	1.1.1.24;

1.1.1.24
date	2008.12.12.15.46.58;	author shriekout;	state Exp;
branches;
next	1.1.1.25;

1.1.1.25
date	2008.12.14.06.22.53;	author shriekout;	state Exp;
branches;
next	1.1.1.26;

1.1.1.26
date	2008.12.25.13.53.05;	author shriekout;	state Exp;
branches;
next	1.1.1.27;

1.1.1.27
date	2009.07.14.14.57.50;	author shriekout;	state Exp;
branches;
next	1.1.1.28;

1.1.1.28
date	2009.07.20.14.19.13;	author shriekout;	state Exp;
branches;
next	1.1.1.29;

1.1.1.29
date	2009.07.22.11.33.22;	author shriekout;	state Exp;
branches;
next	1.1.1.30;

1.1.1.30
date	2009.11.16.11.49.06;	author shriekout;	state Exp;
branches;
next	1.1.1.31;

1.1.1.31
date	2009.11.20.14.02.22;	author shriekout;	state Exp;
branches;
next	1.1.1.32;

1.1.1.32
date	2009.12.04.14.20.21;	author shriekout;	state Exp;
branches;
next	1.1.1.33;

1.1.1.33
date	2009.12.08.14.49.28;	author shriekout;	state Exp;
branches;
next	1.1.1.34;

1.1.1.34
date	2010.10.19.13.28.24;	author shriekout;	state Exp;
branches;
next	;


desc
@@


1.1
log
@Initial revision
@
text
@TARGET = happytimer
OBJECT = happytimer.o timecheck.o interface.o callback.o

CC = gcc
PACKAGE_CFLAGS = `pkg-config --cflags libgnomeui-2.0 gstreamer-0.10`
PACKAGE_LIBS = `pkg-config --libs libgnomeui-2.0 gstreamer-0.10`
CFLAGS = -Wall

$(TARGET) : $(OBJECT)
	$(CC) -o $(TARGET) $(OBJECT) $(PACKAGE_LIBS)

happytimer.o : happytimer.c happytimer.h interface.h callback.h timecheck.h
	$(CC) $(CFLAGS) -c happytimer.c $(PACKAGE_CFLAGS)

timecheck.o : timecheck.c happytimer.h callback.h timecheck.h
	$(CC) $(CFLAGS) -c timecheck.c $(PACKAGE_CFLAGS)

interface.o : interface.c interface.h callback.h happytimer.h timecheck.h
	$(CC) $(CFLAGS) -c interface.c $(PACKAGE_CFLAGS)

callback.o : callback.c callback.h interface.h happytimer.h
	$(CC) $(CFLAGS) -c callback.c $(PACKAGE_CFLAGS)

install :
	if [ ! -d /usr/share/happytimer ]; then\
		mkdir -p /usr/share/happytimer/sound;\
	fi
	cp $(TARGET) /usr/bin/
	cp image/* /usr/share/pixmaps/
	cp sound/* /usr/share/happytimer/sound/

clean :
	rm $(TARGET)
	rm *.o
@


1.1.1.1
log
@Import
@
text
@@


1.1.1.2
log
@Import
@
text
@a0 1
PREFIX = /usr
d25 2
a26 2
	if [ ! -d $(PREFIX)/share/happytimer ]; then\
		mkdir -p $(PREFIX)/share/happytimer/sound;\
d28 3
a30 9
	if [ ! -d $(PREFIX)/bin ]; then\
		mkdir -p $(PREFIX)/bin;\
	fi
	if [ ! -d $(PREFIX)/share/pixmaps ]; then\
		mkdir -p $(PREFIX)/share/pixmaps;\
	fi
	cp $(TARGET) $(PREFIX)/bin/
	cp image/* $(PREFIX)/share/pixmaps/
	cp sound/* $(PREFIX)/share/happytimer/sound/
@


1.1.1.3
log
@Import
@
text
@d1 1
a1 1
PREFIX ?= /usr
d5 1
a5 1
CC ?= gcc
d8 1
a8 1
CFLAGS ?= -Wall
@


1.1.1.4
log
@Import
@
text
@d7 1
a7 1
PACKAGE_LIBS = `pkg-config --libs libgnomeui-2.0 gstreamer-0.10` -ldl
@


1.1.1.5
log
@Import
@
text
@d7 1
a7 1
PACKAGE_LIBS = `pkg-config --libs libgnomeui-2.0 gstreamer-0.10`
@


1.1.1.6
log
@Import
@
text
@d6 2
a7 2
PACKAGE_CFLAGS = `pkg-config --cflags gtk+-2.0 gstreamer-0.10`
PACKAGE_LIBS = `pkg-config --libs gtk+-2.0 gstreamer-0.10`
@


1.1.1.7
log
@Import
@
text
@d36 1
a36 3
	cp happytimer.desktop $(PREFIX)/share/applications/
	cp image/happytimer.png $(PREFIX)/share/pixmaps/
	cp image/happytimer.svg $(PREFIX)/share/icons/gnome/scalable/apps/
@


1.1.1.8
log
@Import
@
text
@a37 5
	cp image/happytimer_16x16.png $(PREFIX)/share/icons/gnome/16x16/apps/happytimer.png
	cp image/happytimer_22x22.png $(PREFIX)/share/icons/gnome/22x22/apps/happytimer.png
	cp image/happytimer_24x24.png $(PREFIX)/share/icons/gnome/24x24/apps/happytimer.png
	cp image/happytimer_32x32.png $(PREFIX)/share/icons/gnome/32x32/apps/happytimer.png
	cp image/happytimer_48x48.png $(PREFIX)/share/icons/gnome/48x48/apps/happytimer.png
@


1.1.1.9
log
@Import
@
text
@a9 2
ICON_LIST = 16x16 22x22 24x24 32x32 48x48

d36 1
a36 1
	cp sound/* $(PREFIX)/share/happytimer/sound/
d38 5
a42 3
	if [ ! -d $(PREFIX)/share/icons/gnome/scalable/apps ]; then\
		mkdir -p $(PREFIX)/share/icons/gnome/scalable/apps;\
	fi
d44 1
a44 10
	for i in $(ICON_LIST); do\
		if [ ! -d $(PREFIX)/$$i ]; then\
			mkdir -p $(PREFIX)/share/icons/gnome/$$i/apps;\
			cp image/happytimer_$$i.png $(PREFIX)/share/icons/gnome/$$i/apps/happytimer.png;\
		fi;\
	done
	if [ ! -d $(PREFIX)/share/applications ]; then\
		mkdir -p $(PREFIX)/share/applications;\
	fi
	cp happytimer.desktop $(PREFIX)/share/applications/
@


1.1.1.10
log
@Import
@
text
@d6 2
a7 2
PACKAGE_CFLAGS = `pkg-config --cflags gtk+-2.0 gstreamer-0.10 libxml-2.0`
PACKAGE_LIBS = `pkg-config --libs gtk+-2.0 gstreamer-0.10 libxml-2.0`
@


1.1.1.11
log
@Import
@
text
@d18 1
a18 1
timecheck.o : timecheck.c happytimer.h callback.h timecheck.h interface.h
d24 1
a24 1
callback.o : callback.c callback.h interface.h happytimer.h timecheck.h
@


1.1.1.12
log
@Import
@
text
@d3 1
a3 1
OBJECT = happytimer.o timecheck.o interface.o callback.o eggtrayicon.o
d13 1
a13 1
	$(CC) -o $(TARGET) $(OBJECT) $(PACKAGE_LIBS) -lsexy
a26 3
eggtrayicon.o : lib/eggtrayicon/eggtrayicon.h lib/eggtrayicon/eggtrayicon.c
	$(CC) $(CFLAGS) -c lib/eggtrayicon/eggtrayicon.c $(PACKAGE_CFLAGS)

a39 1
	cp image/happytimer_start.png $(PREFIX)/share/pixmaps/
@


1.1.1.13
log
@Import
@
text
@a3 3
SRC = happytimer.c timecheck.c interface.c callback.c
PO_SRC_DIR = po/
PO_DEST_DIR = /usr/share/locale/
a10 1
PO_LIST = ko
a13 3
	for po in $(PO_LIST); do\
		msgfmt -o $(PO_SRC_DIR)$$po.mo $(PO_SRC_DIR)/$$po.po;\
	done
d58 1
a58 3
	for po in $(PO_LIST); do\
		cp $(PO_SRC_DIR)$$po.mo $(PO_DEST_DIR)$$po/LC_MESSAGES/happytimer.mo;\
	done
a61 2
po-update:
	xgettext -k_ $(SRC) -o $(PO_SRC_DIR)messages.po
@


1.1.1.14
log
@Import
@
text
@a70 3
	for po in $(PO_LIST); do\
		rm $(PO_SRC_DIR)$$po.mo;\
	done
@


1.1.1.15
log
@Import
@
text
@d5 2
a6 2
PO_SRC_DIR = po
PO_DEST_DIR = /usr/share/locale
d19 1
a19 1
		msgfmt -o $(PO_SRC_DIR)/$$po.mo $(PO_SRC_DIR)/$$po.po;\
d66 1
a66 4
		if [ ! -d $(PO_DEST_DIR)/$$po/LC_MESSAGES ]; then\
			mkdir -p $(PO_DEST_DIR)/$$po/LC_MESSAGES;\
		fi;\
		cp $(PO_SRC_DIR)/$$po.mo $(PO_DEST_DIR)/$$po/LC_MESSAGES/happytimer.mo;\
a67 1

d72 1
a72 1
		rm $(PO_SRC_DIR)/$$po.mo;\
a73 1

d75 1
a75 1
	xgettext -k_ $(SRC) -o $(PO_SRC_DIR)/messages.po
@


1.1.1.16
log
@Import
@
text
@d14 1
a14 1
PO_LIST = ko tl
@


1.1.1.17
log
@Import
@
text
@d14 1
a14 1
PO_LIST = ko ph
@


1.1.1.18
log
@Import
@
text
@d3 2
a4 2
OBJECT = happytimer.o timecheck.o interface.o callback.o eggtrayicon.o sexy-tooltip.o
SRC = happytimer.c timecheck.c interface.c callback.c lib/eggtrayicon/eggtrayicon.c lib/libsexy/sexy-tooltip.c
a36 3
sexy-tooltip.o : lib/libsexy/sexy-tooltip.h lib/libsexy/sexy-tooltip.c
	$(CC) $(CFLAGS) -c lib/libsexy/sexy-tooltip.c $(PACKAGE_CFLAGS)

@


1.1.1.19
log
@Import
@
text
@a0 18
#
#  @@Copyright (C) 2007 Kim Jin Chul (shriekout@@gmail.com).
#
#  This program is free software; you can redistribute it and/or modify
#  it under the terms of the GNU General Public License as published by
#  the Free Software Foundation; either version 2 of the License, or
#  (at your option) any later version.
#
#  This program is distributed in the hope that it will be useful,
#  but WITHOUT ANY WARRANTY; without even the implied warranty of
#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#  GNU Library General Public License for more details.
#
#  You should have received a copy of the GNU General Public License
#  along with this program; if not, write to the Free Software
#  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#

d22 1
a22 1
happytimer.o : happytimer.c happytimer.h interface.h callback.h timecheck.h lib/eggtrayicon/eggtrayicon.h lib/libsexy/sexy-tooltip.h
d31 1
a31 1
callback.o : callback.c callback.h interface.h happytimer.h timecheck.h lib/libsexy/sexy-tooltip.h
@


1.1.1.20
log
@Import
@
text
@d35 1
a35 1
	$(CC) -o $(TARGET) $(OBJECT) $(PACKAGE_LIBS)
@


1.1.1.21
log
@Import
@
text
@d24 1
a24 1
PO_DEST_DIR = $(PREFIX)/share/locale
d32 1
a32 1
PO_LIST = ko tgl
@


1.1.1.22
log
@Import
@
text
@d40 1
a40 1
happytimer.o : happytimer.c happytimer.h interface.h callback.h timecheck.h lib/eggtrayicon/eggtrayicon.h lib/libsexy/sexy-tooltip.h config.h
d46 1
a46 1
interface.o : interface.c interface.h callback.h happytimer.h timecheck.h config.h
@


1.1.1.23
log
@Import
@
text
@a98 1
	rm $(PO_SRC_DIR)/messages.po
@


1.1.1.24
log
@Import
@
text
@d99 1
@


1.1.1.25
log
@Import
@
text
@d94 2
a95 8
	if [ -f $(TARGET) ]; then\
		rm $(TARGET);\
	fi
	for obj in $(OBJECT); do\
		if [ -f $$obj ]; then\
			rm $$obj;\
		fi;\
	done
d97 1
a97 3
		if [ -f $(PO_SRC_DIR)/$$po.mo ]; then\
			rm $(PO_SRC_DIR)/$$po.mo;\
		fi;\
a98 3
	if [ -f $(PO_SRC_DIR)/messages.po ]; then\
		rm $(PO_SRC_DIR)/messages.po;\
	fi
@


1.1.1.26
log
@Import
@
text
@d77 1
a77 1
		if [ ! -d $(PREFIX)/share/icons/gnome/$$i/apps ]; then\
d79 1
a80 1
		cp image/happytimer_$$i.png $(PREFIX)/share/icons/gnome/$$i/apps/happytimer.png;\
a110 30
uninstall :
	if [ -d $(PREFIX)/share/happytimer ]; then\
		rm -fr $(PREFIX)/share/happytimer;\
	fi
	if [ -f $(PREFIX)/bin/$(TARGET) ]; then\
		rm $(PREFIX)/bin/$(TARGET);\
	fi
	if [ -f $(PREFIX)/share/pixmaps/happytimer.png ]; then\
		rm $(PREFIX)/share/pixmaps/happytimer.png;\
	fi
	if [ -f $(PREFIX)/share/pixmaps/happytimer_start.png ]; then\
		rm $(PREFIX)/share/pixmaps/happytimer_start.png;\
	fi
	if [ -f $(PREFIX)/share/icons/gnome/scalable/apps/happytimer.svg ]; then\
		rm $(PREFIX)/share/icons/gnome/scalable/apps/happytimer.svg;\
	fi
	for i in $(ICON_LIST); do\
		if [ -f $(PREFIX)/share/icons/gnome/$$i/apps/happytimer.png ]; then\
			rm $(PREFIX)/share/icons/gnome/$$i/apps/happytimer.png;\
		fi;\
	done
	if [ -f $(PREFIX)/share/applications/happytimer.desktop ]; then\
		rm $(PREFIX)/share/applications/happytimer.desktop;\
	fi
	for po in $(PO_LIST); do\
		if [ -f $(PO_DEST_DIR)/$$po/LC_MESSAGES/happytimer.mo ]; then\
			rm $(PO_DEST_DIR)/$$po/LC_MESSAGES/happytimer.mo;\
		fi;\
	done

@


1.1.1.27
log
@Import
@
text
@a59 3
		mkdir -p $(PREFIX)/share/happytimer;\
	fi
	if [ ! -d $(PREFIX)/share/happytimer/sound ]; then\
a61 1

@


1.1.1.28
log
@Import
@
text
@d60 3
d65 1
@


1.1.1.29
log
@Import
@
text
@d34 1
a34 1
$(TARGET) : $(OBJECT)  $(PO_LIST)
a35 2

$(PO_LIST) :
@


1.1.1.30
log
@Import
@
text
@d21 2
a22 2
OBJECT = happytimer.o timecheck.o interface.o callback.o
SRC = happytimer.c timecheck.c interface.c callback.c
d27 2
a28 2
PACKAGE_CFLAGS = `pkg-config --cflags gtk+-2.0 gstreamer-0.10 libxml-2.0 libnotify`
PACKAGE_LIBS = `pkg-config --libs gtk+-2.0 gstreamer-0.10 libxml-2.0 libnotify`
d42 1
a42 1
happytimer.o : happytimer.c happytimer.h interface.h callback.h timecheck.h
d51 1
a51 1
callback.o : callback.c callback.h interface.h happytimer.h timecheck.h
d54 6
d73 1
d123 3
@


1.1.1.31
log
@Import
@
text
@d6 1
a6 1
#  the Free Software Foundation; either version 3 of the License, or
@


1.1.1.32
log
@Import
@
text
@d2 1
d4 1
a4 5
# happytimer - Alarm timer for the GNOME notification area
#
#  @@Copyright (C) 2007, 2009 Kim Jin Chul (shriekout@@gmail.com).
#
#  This program is free software: you can redistribute it and/or modify
d6 1
a6 1
#  the Free Software Foundation, either version 3 of the License, or
d12 1
a12 1
#  GNU General Public License for more details.
d15 2
a16 2
#  along with this program.  If not, see <http://www.gnu.org/licenses/>.
#
@


1.1.1.33
log
@Import
@
text
@d135 3
@


1.1.1.34
log
@Import
@
text
@d105 2
a106 2
	if [ -f $(PO_SRC_DIR)/untitled.pot ]; then\
		rm $(PO_SRC_DIR)/untitled.pot;\
@


