Change librarie rules

This commit is contained in:
Laurent Vivier 2005-11-26 09:21:56 +00:00
parent 9c77dd35a2
commit 53ef8d07f5

View File

@ -8,17 +8,14 @@ MODULE ?= $(basename $(TOP))
DISTFILES ?= $(SOURCES) $(HEADERS) $(MANPAGES) Makefile
$(LIBRARY): $(LIBRARY)($(patsubst %.S,%.o,$(SOURCES:.c=.o)))
%.8: %.sgml
docbook-to-man $< > $@
%.8.gz: %.8
gzip -9c $< > $@
ifdef LIBRARY
$(LIBRARY): $(OBJS)
$(AR) rc $@ $^
endif
dist:
for file in $(DISTFILES); do \
dir=$$(dirname $$file); \
@ -34,5 +31,5 @@ clean:
rm -f $(OBJS) $(PROGRAMS) $(LIBRARY) $(MANPAGES)
else
clean:
rm -f $(OBJS) $(PROGRAMS) $(LIBRARY) $(MANPAGES)
rm -f $(OBJS) $(PROGRAMS) $(LIBRARY) $(MANPAGES) $(CLEAN) $(LIBRARIES)
endif