Commit 9858e82f32cd467f33a0bb7c5a777bb3c4aa0e83
1 parent
f6d91715
Exists in
master
and in
5 other branches
Incluindo opção de criar um .zip com a classe de controle para facilitar a geraç…
…ão de extensões windows.
Showing
1 changed file
with
23 additions
and
3 deletions
Show diff stats
src/classlib/Makefile.in
... | ... | @@ -84,17 +84,37 @@ $(OBJRLS)/%.o: %.cc $(DEPENDS) |
84 | 84 | |
85 | 85 | #---[ Release targets ]-------------------------------------------------------- |
86 | 86 | |
87 | -Release: $(BINRLS)/$(LIBNAME) | |
87 | +Release: \ | |
88 | + $(BINRLS)/$(LIBNAME) | |
89 | + | |
90 | +$(BINRLS)/$(LIBNAME): \ | |
91 | + $(foreach SRC, $(basename $(CLASS_SRC)), $(OBJRLS)/$(SRC).o) | |
88 | 92 | |
89 | -$(BINRLS)/$(LIBNAME): $(foreach SRC, $(basename $(CLASS_SRC)), $(OBJRLS)/$(SRC).o) | |
90 | 93 | @echo " CCLD `basename $@`" |
91 | 94 | @$(MKDIR) `dirname $@` |
92 | 95 | @ar rs $@ $^ |
93 | 96 | |
94 | -install: Release | |
97 | +install: \ | |
98 | + Release | |
99 | + | |
95 | 100 | @$(MKDIR) $(DESTDIR)$(libdir) |
96 | 101 | @$(INSTALL_DATA) $(BINRLS)/$(LIBNAME) $(DESTDIR)$(libdir) |
97 | 102 | |
103 | +zip: \ | |
104 | + lib$(PACKAGE)cpp-@PACKAGE_VERSION@.@PACKAGE_REVISION@.@host_cpu@.zip | |
105 | + | |
106 | +lib$(PACKAGE)cpp-@PACKAGE_VERSION@.@PACKAGE_REVISION@.@host_cpu@.zip: \ | |
107 | + $(BINRLS)/$(LIBNAME) | |
108 | + | |
109 | + @rm -f $@ | |
110 | + | |
111 | + @$(INSTALL_DATA) ../include/pw3270/class.h $(BINRLS)/@PACKAGE_NAME@cpp.h | |
112 | + | |
113 | + @zip -9 -j $@ \ | |
114 | + $(BINRLS)/$(LIBNAME) \ | |
115 | + $(BINRLS)/@PACKAGE_NAME@cpp.h | |
116 | + | |
117 | + | |
98 | 118 | #---[ Debug targets ]---------------------------------------------------------- |
99 | 119 | |
100 | 120 | Debug: $(BINDBG)/testprogram$(EXEEXT) | ... | ... |