~ubuntu-branches/ubuntu/utopic/cccc/utopic

« back to all changes in this revision

Viewing changes to install/install.mak

  • Committer: Bazaar Package Importer
  • Author(s): Colin Watson
  • Date: 2003-08-23 04:34:05 UTC
  • Revision ID: james.westby@ubuntu.com-20030823043405-xnzd3mn3hwtvi6dr
Tags: upstream-3.pre81
ImportĀ upstreamĀ versionĀ 3.pre81

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# makefile to control installation of CCCC
 
2
 
 
3
ifeq "$(CONF)" "w32vc"
 
4
CD=cd
 
5
CP=../w32bin/cp
 
6
RM=../w32bin/rm -f
 
7
RMDIR=../w32bin/rm -rf
 
8
MV=../w32bin/mv
 
9
ECHO=../w32bin/echo
 
10
DIFF=../w32bin/diff
 
11
MKDIR=../w32bin/mkdir
 
12
INSTBIN1=cccc.exe
 
13
INSTBIN2=CcccDevStudioAddIn.dll
 
14
INSTDIR=C:/Program\ Files/CCCC
 
15
else
 
16
CD=cd
 
17
CP=cp
 
18
RM=rm -f
 
19
RMDIR=rm -rf
 
20
MV=mv
 
21
ECHO=echo
 
22
DIFF=diff
 
23
MKDIR=mkdir
 
24
INSTBIN1=cccc
 
25
INSTBIN2=
 
26
INSTDIR=/usr/local/bin
 
27
endif
 
28
 
 
29
# The installation is pretty crude
 
30
# we just go to the target directory for the machine
 
31
# we are on, delete old versions, copy new versions in
 
32
# There are lots of nicer things we could do on either 
 
33
# platform, but this is the lowest common denominator which
 
34
# works consistently on both.
 
35
ifeq "$(CONF)" "w32vc"
 
36
all : install_cccc install_addin report_success
 
37
else
 
38
all : install_cccc report_success
 
39
endif
 
40
 
 
41
install_cccc :
 
42
        -$(MKDIR) $(INSTDIR)
 
43
        -$(RM) $(INSTDIR)/$(INSTBIN1)
 
44
        $(CP) ../cccc/$(INSTBIN1) $(INSTDIR)
 
45
 
 
46
install_addin :
 
47
        -$(RM) $(INSTDIR)/$(INSTBIN2)
 
48
        $(CP) ../vcaddin/$(VARIANT)/$(INSTBIN2) $(INSTDIR)
 
49
 
 
50
# There are potential error messages relating to directories which
 
51
# already existed, which will be ignored, because we are being conservative
 
52
# and attempting creation unconditionally (so we don't have to ship Win32 
 
53
# bash and test).
 
54
# So we finish the process with a message reassuring the user that all went well
 
55
report_success :
 
56
        @$(ECHO) ===========================
 
57
        @$(ECHO) Installation succeeded!
 
58
        @$(ECHO) ===========================
 
59