2015-08-15 22:23:02 +00:00
|
|
|
LIBS = -lXpm -lXext -lX11 -lm -ldockapp
|
2014-12-20 07:57:03 +00:00
|
|
|
CFLAGS = -O2 -Wall
|
2015-08-15 22:23:02 +00:00
|
|
|
OBJS = wmitime.o
|
2014-12-20 07:57:03 +00:00
|
|
|
INSTALL = install
|
|
|
|
PREFIX = /usr/local
|
|
|
|
BINDIR = $(PREFIX)/bin
|
2014-12-20 07:57:08 +00:00
|
|
|
MANDIR = $(PREFIX)/share/man/man1
|
2014-12-20 07:57:09 +00:00
|
|
|
DESKTOPDIR = $(PREFIX)/share/applications
|
2014-12-20 07:57:03 +00:00
|
|
|
|
|
|
|
.c.o:
|
wmitime: Improve locale support.
Previously, wmitime only had support for English, French, and (in Debian
only) Hungarian. In addition, the choice was made at compile time.
This patch adds run-time support for any language using the Latin alphabet.
The locale is determined by the user's environment or may be specified on
the command line with the "-l" option. Note that users whose environment
specifies a non-Latin locale may wish to use, e.g., "-l C", as otherwise
no date will appear.
Note that, for simplicity, the month and day are now displayed as "01 JAN"
as opposed to "JAN 01". (Previously, the former format was used for English
and the latter for French.)
2014-12-20 07:57:04 +00:00
|
|
|
$(CC) $(CPPFLAGS) $(CFLAGS) -c $< -o $*.o
|
2014-12-20 07:57:03 +00:00
|
|
|
|
|
|
|
wmitime: $(OBJS)
|
|
|
|
$(CC) $(LDFLAGS) -o wmitime $^ $(LIBS)
|
|
|
|
|
|
|
|
all:: wmtime
|
|
|
|
|
|
|
|
clean::
|
|
|
|
for i in $(OBJS) ; do \
|
|
|
|
rm -f $$i ; \
|
|
|
|
done
|
2014-12-20 07:57:09 +00:00
|
|
|
rm -f wmitime wmitime.desktop
|
2014-12-20 07:57:03 +00:00
|
|
|
rm -f *~
|
|
|
|
|
2014-12-20 07:57:09 +00:00
|
|
|
wmitime.desktop:
|
|
|
|
sed "s|@BINDIR@|$(BINDIR)|" wmitime.desktop.in > $@
|
|
|
|
|
|
|
|
install:: wmitime wmitime.desktop
|
2014-12-20 07:57:03 +00:00
|
|
|
$(INSTALL) -d $(DESTDIR)$(BINDIR)
|
|
|
|
$(INSTALL) wmitime $(DESTDIR)$(BINDIR)
|
2014-12-20 07:57:08 +00:00
|
|
|
$(INSTALL) -d $(DESTDIR)$(MANDIR)
|
|
|
|
$(INSTALL) -m 644 wmitime.1 $(DESTDIR)$(MANDIR)
|
2014-12-20 07:57:09 +00:00
|
|
|
$(INSTALL) -d $(DESTDIR)$(DESKTOPDIR)
|
|
|
|
$(INSTALL) -m 644 wmitime.desktop $(DESTDIR)$(DESKTOPDIR)
|
2014-12-20 07:57:03 +00:00
|
|
|
@echo "wmitime Installation finished..."
|