Changeset 810


Ignore:
Timestamp:
Dec 5, 2007 4:33:41 PM (12 years ago)
Author:
andreasw
Message:

added code in Makemain.inc to install README, AUTHORS, and LICENSE files

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Makemain.inc

    r33 r810  
    66
    77# Author:  Andreas Waechter           IBM    2006-04-13
     8
     9########################################################################
     10#                    Documentation installation                        #
     11########################################################################
     12
     13DocFiles =  README AUTHORS LICENSE
     14DocInstallDir = $(prefix)/share/doc/$(PACKAGE)-$(PACKAGE_VERSION)
     15
     16install-exec-am:
     17        test -z "$(DocInstallDir)" || $(mkdir_p) "$(DESTDIR)$(DocInstallDir)"
     18        for file in $(DocFiles); do \
     19          if test -f "$$file"; then dir=; else dir="$(srcdir)/"; fi; \
     20          if test -f "$$dir$$file"; then $(INSTALL_DATA) "$$dir$$file" "$(DESTDIR)$(DocInstallDir)/$$file"; fi; \
     21        done
     22
     23uninstall-am:
     24        for file in $(DocFiles); do \
     25          rm -f "$(DESTDIR)$(DocInstallDir)/$$file"; \
     26        done
    827
    928########################################################################
Note: See TracChangeset for help on using the changeset viewer.