* sources in device/lib/pic16/libsdcc/float/*.c were empty,
[fw/sdcc] / device / include / Makefile.in
index f4c30613a808d602101cdb15020f981957cb3189..075a5e50566ebf859d0b0520ade59bfafc876b51 100644 (file)
@@ -37,10 +37,14 @@ CPPFLAGS        = @CPPFLAGS@ -I$(PRJDIR)
 # ------------------------------------------
 all:
 
-# Compiling and installing everything and runing test
-# ---------------------------------------------------
+# Compiling and installing everything and running test
+# ----------------------------------------------------
 install: all installdirs
        $(CP) -r asm *.h $(sdcc_includedir)
+       if [ "`grep pic16 ../../ports.build`" = pic16 ]; then \
+               $(CP) pic16/*.h $(sdcc_includedir)/pic16 ; \
+       fi
+       rm -rf `find $(sdcc_includedir) -type d -name 'CVS'`
 
 
 # Deleting all the installed files
@@ -63,6 +67,7 @@ installcheck:
 # ---------------------------------
 installdirs:
        [ -d $(sdcc_includedir) ] || mkdir -p $(sdcc_includedir)
+       [ -d $(sdcc_includedir)/pic16 ] || mkdir -p $(sdcc_includedir)/pic16
 
 
 # Creating dependencies