Annotation of hatari/Makefile, revision 1.1.1.5

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