~ubuntu-branches/ubuntu/vivid/inform/vivid

« back to all changes in this revision

Viewing changes to inform-6.31.1/include/Makefile.am

  • Committer: Bazaar Package Importer
  • Author(s): Jan Christoph Nordholz
  • Date: 2008-05-26 22:09:44 UTC
  • mfrom: (2.1.1 lenny)
  • Revision ID: james.westby@ubuntu.com-20080526220944-ba7phz0d1k4vo7wx
Tags: 6.31.1+dfsg-1
* Remove a considerable number of files from the package
  due to unacceptable licensing terms.
* Repair library symlinks.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
## Automake template for standard include files.
 
2
 
 
3
INCLUDES = calyx_adjectives.h daemons.h easydoors.h hintsms.h links.h \
 
4
links.inf longint.h money.h nameable.h newbiegrammar.h printtime.h \
 
5
timepiece.h trinitystat.h whatis.h
 
6
 
 
7
EXTRA_NAMES = NewbieGrammar.h
 
8
 
 
9
DOCS = links.inf
 
10
 
 
11
include_HEADERS = $(INCLUDES) $(DOCS)
 
12
 
 
13
EXTRA_DIST = $(DOCS)
 
14
 
 
15
if CYGWIN
 
16
install-data-hook: add-localdir
 
17
uninstall-local: remove-localdir
 
18
else
 
19
install-data-hook: add-localdir add-names
 
20
uninstall-local: remove-localdir remove-names
 
21
endif
 
22
 
 
23
add-localdir:
 
24
        $(mkinstalldirs) $(DESTDIR)$(localincdir)
 
25
 
 
26
remove-localdir:
 
27
        rmdir $(DESTDIR)$(localincdir)
 
28
 
 
29
add-names:
 
30
        @ cd $(DESTDIR)$(includedir);                                   \
 
31
        for file in $(EXTRA_NAMES); do                                  \
 
32
           realfile=`echo $$file | tr '[A-Z]' '[a-z]'`;                 \
 
33
           echo " linking $$file to $$realfile";                        \
 
34
           rm -f $$file;                                                \
 
35
           $(LN_S) $$realfile $$file;                                   \
 
36
        done
 
37
 
 
38
remove-names:
 
39
        @ for file in $(EXTRA_NAMES); do                                \
 
40
           echo " unlinking $$file";                                    \
 
41
           rm -f $(DESTDIR)$(includedir)/$$file;                        \
 
42
        done
 
43
 
 
44
@make_include@
 
45