Annotation of hatari/Makefile, revision 1.1.1.4

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/
                     12: 
1.1.1.4 ! root       13: # Makefile.cnf doesn't exist or is older than Makefile.default.cnf?
        !            14: Makefile.cnf: Makefile-default.cnf
        !            15:        @echo "Trying to use the default Makefile configuration..."
        !            16:        @if [ -f Makefile.cnf ]; then \
        !            17:                echo "ERROR: Makefile.cnf exists already and is older (remove if unchanged)"; \
        !            18:                exit 1; \
        !            19:        else \
        !            20:                cp -v Makefile-default.cnf Makefile.cnf; \
        !            21:        fi
        !            22: 
        !            23: # config.h doesn't exist or is older than config-default.h?
        !            24: config.h: config-default.h
        !            25:        @echo "Trying to use the default config.h configuration..."
        !            26:        @if [ -f config.h ]; then \
        !            27:                echo "ERROR: config.h exists already and is older (remove if unchanged)"; \
        !            28:                exit 1; \
        !            29:        else \
        !            30:                cp -v config-default.h config.h; \
        !            31:        fi
        !            32: 
        !            33: hatari.1.gz: doc/hatari.1
        !            34:        gzip -9 -c doc/hatari.1 > $@
        !            35: 
1.1.1.3   root       36: 
1.1       root       37: clean:
                     38:        $(MAKE) -C src/ clean
                     39: 
1.1.1.3   root       40: distclean:
                     41:        $(MAKE) -C src/ distclean
1.1.1.4 ! root       42:        $(RM) config.cache config.log Makefile.cnf config.h
        !            43:        $(RM) hatari.1.gz
1.1.1.3   root       44: 
                     45: 
1.1       root       46: # Use "make depend" to generate file dependencies:
                     47: depend:
                     48:        $(MAKE) -C src/ depend
                     49: 
1.1.1.4 ! root       50: install: all hatari.1.gz
        !            51:        @if [ "x$(INSTALL)" = "x" ]; then \
        !            52:                echo; \
        !            53:                echo "*** Hatari was not configured for installation. ***"; \
        !            54:                exit 1; \
        !            55:        fi
1.1.1.2   root       56:        $(INSTALL) -d $(DESTDIR)$(BINDIR)
                     57:        $(INSTALL) -d $(DESTDIR)$(DATADIR)
1.1.1.4 ! root       58:        $(INSTALL) -d $(DESTDIR)$(MANDIR)
        !            59:        $(INSTALL) -d $(DESTDIR)$(DOCDIR)
        !            60:        $(INSTALL) -d $(DESTDIR)$(DOCDIR)/images
1.1.1.2   root       61:        $(INSTALL_PROGRAM) src/hatari $(DESTDIR)$(BINDIR)/hatari
1.1.1.4 ! root       62:        $(INSTALL_DATA) src/hatari-icon.bmp $(DESTDIR)$(DATADIR)/hatari-icon.bmp
1.1.1.2   root       63:        if test -f src/tos.img -a \! -f $(DESTDIR)$(DATADIR)/tos.img ; then \
                     64:          $(INSTALL_DATA) src/tos.img $(DESTDIR)$(DATADIR)/tos.img ; \
1.1       root       65:        fi
1.1.1.4 ! root       66:        $(INSTALL_DATA) hatari.1.gz $(DESTDIR)$(MANDIR)/
        !            67:        $(INSTALL_DATA) doc/*.txt doc/*.html $(DESTDIR)$(DOCDIR)/
        !            68:        $(INSTALL_DATA) doc/images/*.png $(DESTDIR)$(DOCDIR)/images/

unix.superglobalmegacorp.com

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