]> git.gag.com Git - fw/sdcc/commitdiff
skip libds390 if --disable-ds390-port
authorjohanknol <johanknol@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Fri, 9 Mar 2001 13:17:32 +0000 (13:17 +0000)
committerjohanknol <johanknol@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Fri, 9 Mar 2001 13:17:32 +0000 (13:17 +0000)
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@677 4a8a32a2-be11-0410-ad9d-d568d2c75423

device/lib/Makefile.in

index b172d3125039fc5939052254626121e00f6fffcc..b8e1548b077a22333ce6f881c1e5ca470cb479ac 100644 (file)
@@ -73,12 +73,14 @@ models:
        done
 
 modelDS390:
-       test -d ds390 || mkdir ds390
-       rm -f ds390/*.lib
-       $(MAKE) CFLAGS="$(CFLAGS) -mds390" objects
-       cd ds390; $(MAKE)
-       cp *.lib ds390
-       mv *.rel *.asm *.cdb ds390
+       if [ "`grep ds390 ../../ports.build`" = ds390 ]; then \
+               test -d ds390 || mkdir ds390; \
+               rm -f ds390/*.lib; \
+               $(MAKE) CFLAGS="$(CFLAGS) -mds390" objects; \
+               cd ds390; $(MAKE); \
+               cp *.lib ds390; \
+               mv *.rel *.asm *.cdb ds390; \
+       fi
 
 # Compiling and installing everything and runing test
 # ---------------------------------------------------