* support/cpp2/Makefile.in (install): Added creation of dest dir.
[fw/sdcc] / support / cpp2 / Makefile.in
index 0a618a9ac78ed5aa3a00af4971feb2762f6f3622..7657f242b15b16fb8ba9d14fac182b56032ad09f 100644 (file)
@@ -23,7 +23,7 @@
 #Boston MA 02111-1307, USA.
 
 PRJDIR = ../..
-TARGET = $(PRJDIR)/bin/sdcpp2
+TARGET = $(PRJDIR)/bin/sdcpp
 
 # This is the default target.
 all: $(TARGET)
@@ -43,6 +43,7 @@ AR = ar
 AR_FLAGS = rc
 RANLIB = @RANLIB@
 SHELL = /bin/sh
+STRIP = @STRIP@
 # on sysV, define this as cp.
 INSTALL = @INSTALL@
 # Some systems may be missing symbolic links, regular links, or both.
@@ -86,6 +87,8 @@ includedir = $(local_prefix)/include
 # where the info files go
 exeext = @host_exeext@
 
+transform       = @program_transform_name@
+
 # Top build directory, relative to here.
 top_builddir = .
 
@@ -102,7 +105,9 @@ OBSTACK=obstack.o
 # End of variables for you to override.
 
 install: all
-       $(INSTALL) -s $(TARGET) $(bindir)/sdcpp
+       mkdir -p $(bindir)
+       $(INSTALL) $(TARGET) `echo $(bindir)/sdcpp|sed '$(transform)'`
+       $(STRIP) `echo $(bindir)/sdcpp|sed '$(transform)'`
 
 clean:
        -rm -f $(TARGET) *.o core libcpp.a