# Jan Nieuwenhuizen <jan@digicash.com>
# Han-Wen Nienhuys <hanwen@stack.nl>
-.PHONY : all clean config default dist doc doc++ dummy exe help lib TAGS html\
- check-flower-deps check-lib-deps check-doc-deps
+.PHONY : all clean config default dist doc doc++ dummy exe help html lib TAGS\
+ check-flower-deps check-lib-deps check-doc-deps check-html-deps
# target all:
#
#
$(LIBRARY): $(configheader) $(OFILES)
$(AR_COMMAND) $(OFILES)
+ $(AR) ts $@ #silly irix
$(RANLIB_COMMAND)
$(SHAREDLIBRARY): $(configheader) $(OFILES) $(MODULE_LIBDEPS)
lib: $(LIBRARY)
#
-
outdirs: outdir
$(LOOP)
outdir:
- -mkdir $(outdir)
+ -mkdir -p $(outdir)
# be careful about deletion.
clean: localclean
#
doc:
- $(MAKE) -C $(depth)/Documentation do-doc
+# $(MAKE) -C $(depth)/Documentation do-doc
+ $(MAKE) -C $(depth)/Documentation all
+html: $(HTMLFILES)
# ugh. should generate in out/
dist:
# ugh. should generate in out/
dozedist: doosdist
-doosdist:
+doosdist: check-mf-deps
+ rm -rf $(distdir)
-mkdir $(distdir)
-# nogo, SUBDIRS is handed down to subdir...
-# $(MAKE) SUBDIRS="Documentation init input tex" localdist
$(MAKE) localdist
chmod -Rf a+rX $(distdir)
# ugh, the ugly way, then
+ rm -f $(distdir)/mf/$(outdir)/*.log
+ # urg
+ (cd $(distdir)/init; ln -s ../../../mf/out/*.ly .)
+ (cd $(distdir)/tex; ln -s ../../../mf/out/*.tex .)
(cd $(distdir); rm -rf $(NO_DOOS_DIST))
- cp $(lilyout)/lilypond.exe $(distdir)
- strip -s $(distdir)/lilypond.exe
- cp $(mi2muout)/mi2mu.exe $(distdir)
- strip -s $(distdir)/mi2mu.exe
- (cd ./$(depth); $(ZIP) $(DIST_NAME).exe.zip $(distdir))
+ ln $(lilyout)/lilypond $(distdir)/bin/lilypond.exe
+ -strip -s $(distdir)/bin/lilypond.exe
+ ln $(mi2muout)/mi2mu $(distdir)/bin/mi2mu.exe
+ -strip -s $(distdir)/bin/mi2mu.exe
+ (cd ./$(depth)/$(outdir); $(ZIP) $(DIST_NAME).exe.zip $(DIST_NAME))
# should be trapped
rm -rf $(distdir)/
check-doc-deps:
$(MAKE) -C $(depth)/Documentation
+check-html-deps:
+ $(MAKE) -C $(depth)/Documentation html
+
$(LIBLILY): dummy
$(MAKE) ./$(outdir)/$(@F) -C $(depth)/lib
$(configheader): $(depth)/$(configuration).hh
cp $< $@
-
+WWW: local-WWW
+ $(LOOP)
ifneq ($(DEPFILES),)
include $(DEPFILES)