Annotation of hatari/Makefile, revision 1.1.1.7

1.1       root        1: # Top directory Makefile for Hatari.
1.1.1.4   root        2: #
                      3: # You can set DESTDIR as temporary installation prefix
                      4: # e.g. when creating RPM packages.
1.1       root        5: 
                      6: # Include settings
1.1.1.4   root        7: -include Makefile.cnf
1.1       root        8: 
                      9: 
1.1.1.4   root       10: all: Makefile.cnf config.h
1.1       root       11:        $(MAKE) -C src/
1.1.1.5   root       12:        $(MAKE) -C tools/hmsa/
1.1       root       13: 
1.1.1.4   root       14: # Makefile.cnf doesn't exist or is older than Makefile.default.cnf?
                     15: Makefile.cnf: Makefile-default.cnf
                     16:        @echo "Trying to use the default Makefile configuration..."
                     17:        @if [ -f Makefile.cnf ]; then \
1.1.1.7 ! root       18:                echo "ERROR: Makefile.cnf exists already, but is older than the default"; \
        !            19:                echo "(just remove it if you haven't changed it)."; \
1.1.1.4   root       20:                exit 1; \
                     21:        else \
                     22:                cp -v Makefile-default.cnf Makefile.cnf; \
                     23:        fi
                     24: 
                     25: # config.h doesn't exist or is older than config-default.h?
                     26: config.h: config-default.h
                     27:        @echo "Trying to use the default config.h configuration..."
                     28:        @if [ -f config.h ]; then \
1.1.1.7 ! root       29:                echo "ERROR: config.h exists already and is older than the default"; \
        !            30:                echo "(just remove it if you haven't changed it, or re-run configure)."; \
1.1.1.4   root       31:                exit 1; \
                     32:        else \
                     33:                cp -v config-default.h config.h; \
                     34:        fi
                     35: 
                     36: hatari.1.gz: doc/hatari.1
                     37:        gzip -9 -c doc/hatari.1 > $@
                     38: 
1.1.1.3   root       39: 
1.1       root       40: clean:
                     41:        $(MAKE) -C src/ clean
1.1.1.5   root       42:        $(MAKE) -C tools/hmsa/ clean
1.1       root       43: 
1.1.1.3   root       44: distclean:
                     45:        $(MAKE) -C src/ distclean
1.1.1.5   root       46:        $(MAKE) -C tools/hmsa/ distclean
1.1.1.4   root       47:        $(RM) config.cache config.log Makefile.cnf config.h
                     48:        $(RM) hatari.1.gz
1.1.1.3   root       49: 
                     50: 
1.1       root       51: # Use "make depend" to generate file dependencies:
                     52: depend:
                     53:        $(MAKE) -C src/ depend
                     54: 
1.1.1.4   root       55: install: all hatari.1.gz
                     56:        @if [ "x$(INSTALL)" = "x" ]; then \
                     57:                echo; \
1.1.1.7 ! root       58:                echo "ERROR: Hatari isn't yet configured for installation."; \
1.1.1.4   root       59:                exit 1; \
                     60:        fi
1.1.1.2   root       61:        $(INSTALL) -d $(DESTDIR)$(BINDIR)
                     62:        $(INSTALL) -d $(DESTDIR)$(DATADIR)
1.1.1.4   root       63:        $(INSTALL) -d $(DESTDIR)$(MANDIR)
                     64:        $(INSTALL) -d $(DESTDIR)$(DOCDIR)
                     65:        $(INSTALL) -d $(DESTDIR)$(DOCDIR)/images
1.1.1.2   root       66:        $(INSTALL_PROGRAM) src/hatari $(DESTDIR)$(BINDIR)/hatari
1.1.1.5   root       67:        $(INSTALL_PROGRAM) tools/hmsa/hmsa $(DESTDIR)$(BINDIR)/hmsa
1.1.1.6   root       68:        $(INSTALL_SCRIPT) tools/zip2st.sh $(DESTDIR)$(BINDIR)/zip2st
1.1.1.4   root       69:        $(INSTALL_DATA) src/hatari-icon.bmp $(DESTDIR)$(DATADIR)/hatari-icon.bmp
1.1.1.2   root       70:        if test -f src/tos.img -a \! -f $(DESTDIR)$(DATADIR)/tos.img ; then \
                     71:          $(INSTALL_DATA) src/tos.img $(DESTDIR)$(DATADIR)/tos.img ; \
1.1       root       72:        fi
1.1.1.4   root       73:        $(INSTALL_DATA) hatari.1.gz $(DESTDIR)$(MANDIR)/
                     74:        $(INSTALL_DATA) doc/*.txt doc/*.html $(DESTDIR)$(DOCDIR)/
                     75:        $(INSTALL_DATA) doc/images/*.png $(DESTDIR)$(DOCDIR)/images/
1.1.1.7 ! root       76:        $(MAKE) -C python-ui/ install

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.