Ignore:
Timestamp:
May 9, 2011, 12:55:14 AM (11 years ago)
Author:
Sam Hocevar
Message:

build: add a `--with-assetsdir' configure flag to specify where the
game data should be installed.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • abuse/trunk/data/Makefile.am

    r609 r614  
    22EXTRA_DIST = \
    33    $(demos) $(music) $(lisp) $(extra) $(art) $(levels) $(doc) $(sound)
    4 
    5 datafiledir = $(datadir)/games/abuse
    64
    75install-data-local:
    86        @for p in $(EXTRA_DIST); do \
    97          d="`echo \"$$p\" | sed -ne 's@\(.*\)/.*@\1@p'`"; \
    10           $(MKDIR_P) "$(DESTDIR)$(datafiledir)/$$d"; \
    11           echo " $(INSTALL_DATA) $(srcdir)/$$p $(DESTDIR)$(datafiledir)/$$d"; \
    12           $(INSTALL_DATA) "$(srcdir)/$$p" "$(DESTDIR)$(datafiledir)/$$d" || exit $$?; \
     8          $(MKDIR_P) "$(DESTDIR)$(assetsdir)/$$d"; \
     9          echo " $(INSTALL_DATA) $(srcdir)/$$p $(DESTDIR)$(assetsdir)/$$d"; \
     10          $(INSTALL_DATA) "$(srcdir)/$$p" "$(DESTDIR)$(assetsdir)/$$d" || exit $$?; \
    1311        done
    1412
    1513uninstall-local:
    1614        @for p in $(EXTRA_DIST); do \
    17           echo " ( cd '$(DESTDIR)$(datafiledir)' && rm -f" $$p ")"; \
    18           cd "$(DESTDIR)$(datafiledir)" && rm -f $$p; \
     15          echo " ( cd '$(DESTDIR)$(assetsdir)' && rm -f" $$p ")"; \
     16          cd "$(DESTDIR)$(assetsdir)" && rm -f $$p; \
    1917        done
    2018
Note: See TracChangeset for help on using the changeset viewer.