EMILE/Rules.mk

36 lines
701 B
Makefile
Raw Normal View History

2005-11-18 00:06:31 +00:00
#
# (c) 2005 Laurent Vivier <LaurentVivier@wanadoo.fr>
#
2005-11-16 13:57:01 +00:00
OBJS = $(patsubst %.S,%.o,$(SOURCES:.c=.o))
MODULE ?= $(basename $(TOP))
DISTFILES ?= $(SOURCES) $(HEADERS) $(MANPAGES) Makefile
2005-11-26 09:21:56 +00:00
$(LIBRARY): $(LIBRARY)($(patsubst %.S,%.o,$(SOURCES:.c=.o)))
2005-11-16 13:57:01 +00:00
%.8: %.sgml
docbook-to-man $< > $@
%.8.gz: %.8
gzip -9c $< > $@
dist:
for file in $(DISTFILES); do \
dir=$$(dirname $$file); \
if [ "$$dir" != "" ] ; then \
mkdir -p $(DISTDIR)/$(MODULE)/$$dir; \
fi; \
cp -p $$file $(DISTDIR)/$(MODULE)/$$file; \
done
ifdef TARGET
clean:
cd $(TARGET) && \
rm -f $(OBJS) $(PROGRAMS) $(LIBRARY) $(MANPAGES)
else
clean:
2005-11-26 09:21:56 +00:00
rm -f $(OBJS) $(PROGRAMS) $(LIBRARY) $(MANPAGES) $(CLEAN) $(LIBRARIES)
2005-11-16 13:57:01 +00:00
endif