Changeset 607


Ignore:
Timestamp:
May 8, 2011, 5:32:45 PM (6 years ago)
Author:
sam
Message:

build: install data in properly named subdirectories.

File:
1 edited

Legend:

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

    r606 r607  
    22EXTRA_DIST = \
    33    $(demos) $(music) $(lisp) $(extra) $(art) $(levels) $(doc) $(sound)
     4
     5datafiledir = $(datadir)/games/abuse
     6
     7install-data-local:
     8        @for p in $(EXTRA_DIST); do \
     9          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 $$?; \
     13        done
     14
     15uninstall-local:
     16        @for p in $(EXTRA_DIST); do \
     17          echo " ( cd '$(DESTDIR)$(datafiledir)' && rm -f" $$p ")"; \
     18          cd "$(DESTDIR)$(datafiledir)" && rm -f $$p; \
     19        done
    420
    521demos = \
Note: See TracChangeset for help on using the changeset viewer.