]> git.sur5r.net Git - cc65/commitdiff
Don't use bash'isms in make
authorcuz <cuz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Fri, 20 Feb 2004 11:02:15 +0000 (11:02 +0000)
committercuz <cuz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Fri, 20 Feb 2004 11:02:15 +0000 (11:02 +0000)
git-svn-id: svn://svn.cc65.org/cc65/trunk@2881 b7a2c559-68d2-44c3-8de9-860c34a00d81

make/gcc.mak

index 3d73de3333f239912a67cd5275262005ad99a64e..a98a5ad3e5c85b68ed82271da4c344d6debdcf8e 100644 (file)
@@ -47,13 +47,15 @@ zap:
 
 .PHONY:        install
 install:       all
-       @if [ `id -u` != 0 ]; then                                    \
+       @if [ `id -u` != 0 ]; then                                    \
            echo "";                                                  \
-                   echo 'Do "make install" as root';                         \
+           echo 'Do "make install" as root';                         \
            echo "";                                                  \
            false;                                                    \
        fi
-               @$(MKDIR) -p $(BINDIR) $(CC65DOC) $(CC65DATA)/{asminc,emd,include/{em,geos,joystick,mouse,sys,tgi},joy,lib,mou,ser,tgi}
+       @$(MKDIR) -p $(BINDIR) $(CC66DOC) $(CC65LIB)
+       @$(MKDIR) -p $(CC65DATA)/asminc $(CC65DATA)/emd $(CC65DATA)/joy $(CC65DATA)/lib $(CC65DATA)/mou $(CC65DATA)/ser $(CC65DATA)/tgi
+       @$(MKDIR) -p $(CC65INC)/em $(CC65INC)/geos $(CC65INC)/joystick $(CC65INC)/mouse $(CC65INC)/sys $(CC65INC)/tgi
        @$(INSTALL) -s -m 755 src/ar65/ar65 $(BINDIR)
        @$(INSTALL) -s -m 755 src/ca65/ca65 $(BINDIR)
        @$(INSTALL)    -m 755 src/ca65html/ca65html $(BINDIR)
@@ -77,7 +79,7 @@ install:      all
        @$(INSTALL) -m 644 libsrc/*.joy $(CC65DATA)/joy
        @$(INSTALL) -m 644 libsrc/*.ser $(CC65DATA)/ser
        @$(INSTALL) -m 644 libsrc/*.tgi $(CC65DATA)/tgi
+       @$(INSTALL) -m 644 src/ld65/cfg/*.cfg $(CC65DOC)
        @$(INSTALL) -m 644 doc/*.html $(CC65DOC)
        @$(INSTALL) -m 644 doc/{compile.txt,grc.txt,internal.txt,newvers.txt} $(CC65DOC)
-       @$(INSTALL) -m 644 src/ld65/cfg/*.cfg $(CC65DOC)
-
+