wmtv: Add manpage from Debian.
[dockapps.git] / wmitime / Makefile
blob796b90f252896cee2afa99146886d0862cb985c3
1 LIBS = -lXpm -lXext -lX11 -lm -ldockapp
2 CFLAGS = -O2 -Wall
3 OBJS = wmitime.o
4 INSTALL = install
5 PREFIX = /usr/local
6 BINDIR = $(PREFIX)/bin
7 MANDIR = $(PREFIX)/share/man/man1
8 DESKTOPDIR = $(PREFIX)/share/applications
10 .c.o:
11 $(CC) $(CPPFLAGS) $(CFLAGS) -c $< -o $*.o
13 wmitime: $(OBJS)
14 $(CC) $(LDFLAGS) -o wmitime $^ $(LIBS)
16 all:: wmtime
18 clean::
19 for i in $(OBJS) ; do \
20 rm -f $$i ; \
21 done
22 rm -f wmitime wmitime.desktop
23 rm -f *~
25 wmitime.desktop:
26 sed "s|@BINDIR@|$(BINDIR)|" wmitime.desktop.in > $@
28 install:: wmitime wmitime.desktop
29 $(INSTALL) -d $(DESTDIR)$(BINDIR)
30 $(INSTALL) wmitime $(DESTDIR)$(BINDIR)
31 $(INSTALL) -d $(DESTDIR)$(MANDIR)
32 $(INSTALL) -m 644 wmitime.1 $(DESTDIR)$(MANDIR)
33 $(INSTALL) -d $(DESTDIR)$(DESKTOPDIR)
34 $(INSTALL) -m 644 wmitime.desktop $(DESTDIR)$(DESKTOPDIR)
35 @echo "wmitime Installation finished..."