2014-12-20 07:57:03 +00:00
|
|
|
LIBS = -lXpm -lXext -lX11 -lm
|
|
|
|
CFLAGS = -O2 -Wall
|
|
|
|
OBJS = wmitime.o \
|
|
|
|
wmgeneral/wmgeneral.o \
|
|
|
|
wmgeneral/misc.o \
|
|
|
|
wmgeneral/list.o
|
|
|
|
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: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
|
|
|
|
rm -f wmitime
|
|
|
|
rm -f *~
|
|
|
|
|
|
|
|
install:: wmitime
|
|
|
|
$(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:03 +00:00
|
|
|
@echo "wmitime Installation finished..."
|