Add support for 'make install DESTDIR'.
[wine] / dlls / Makeimplib.rules.in
1 # Global rules for building a static import library     -*-Makefile-*-
2 #
3 # Each individual makefile should define the following variables:
4 # MODULE       : name of the main module being built
5 #
6 # plus all variables required by the global Make.rules.in
7 #
8
9 DLLDEFS  = @DLLDEFS@
10 DLLFLAGS = @DLLFLAGS@
11 DEFS     = -D__WINESRC__ $(DLLDEFS) $(EXTRADEFS)
12
13 @MAKE_RULES@
14
15 all: $(MODULE)
16
17 # Rules for .a library
18
19 $(MODULE): $(OBJS) Makefile.in
20         $(RM) $@
21         $(AR) $@ $(OBJS)
22         $(RANLIB) $@
23
24 # Rules for installation
25
26 install install-dev:: $(MODULE)
27         $(MKINSTALLDIRS) $(DESTDIR)$(dlldir)
28         $(INSTALL_DATA) $(MODULE) $(DESTDIR)$(dlldir)/$(MODULE)
29
30 uninstall::
31         $(RM) $(DESTDIR)$(dlldir)/$(MODULE)
32
33 # Misc. rules
34
35 .PHONY: man doc-html doc-sgml
36
37 man doc-html doc-sgml:
38
39 # End of global library rules