Fixed make install target to work even when nothing has been compiled
[wine/wine64.git] / tools / wmc / Makefile.in
blob0d65de864af0ea775e95bfdccec27c5e50a0ca8c
1 DEFS = -D__WINE__
2 TOPSRCDIR = @top_srcdir@
3 TOPOBJDIR = ../..
4 SRCDIR = @srcdir@
5 VPATH = @srcdir@
6 YACCOPT = #-v
7 EXEEXT = @EXEEXT@
9 PROGRAMS = wmc$(EXEEXT)
10 MODULE = none
12 C_SRCS = \
13 lang.c \
14 mcl.c \
15 utils.c \
16 wmc.c \
17 write.c
19 EXTRA_SRCS = mcy.y
20 EXTRA_OBJS = y.tab.o
22 all: $(PROGRAMS)
24 mcl.o: y.tab.h
26 @MAKE_RULES@
28 wmc: $(OBJS)
29 $(CC) $(CFLAGS) -o wmc $(OBJS) $(LIBWINE) $(LIBUNICODE) $(LEXLIB) $(LDFLAGS)
31 wmc.exe: $(OBJS)
32 $(CC) $(CFLAGS) -o wmc.exe $(OBJS) $(LIBWINE) $(LIBUNICODE) $(LEXLIB) -liberty $(LDFLAGS)
34 y.tab.c y.tab.h: mcy.y
35 $(YACC) $(YACCOPT) -d -t $(SRCDIR)/mcy.y
37 clean::
38 $(RM) y.tab.c y.tab.h y.output
40 install:: $(PROGRAMS)
41 $(MKINSTALLDIRS) $(bindir) $(mandir)/man$(prog_manext)
42 $(INSTALL_DATA) $(SRCDIR)/wmc.man $(mandir)/man$(prog_manext)/wmc.$(prog_manext)
43 $(INSTALL_PROGRAM) wmc$(EXEEXT) $(bindir)/wmc$(EXEEXT)
45 uninstall::
46 $(RM) $(bindir)/wmc$(EXEEXT) $(mandir)/man$(prog_manext)/wmc.$(prog_manext)
48 ### Dependencies: