X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=device%2Finclude%2FMakefile.in;h=61944635febaad6d65073a24fd1e2604e918b8f0;hb=f1c40004ae349f7cd3a1a5c5c85f62f695196370;hp=bdae4465dcee7c8aceb23971d1c0ac62058147d7;hpb=67da89445478477cbda97171c16f8cc2666ce240;p=fw%2Fsdcc diff --git a/device/include/Makefile.in b/device/include/Makefile.in index bdae4465..61944635 100644 --- a/device/include/Makefile.in +++ b/device/include/Makefile.in @@ -28,7 +28,7 @@ srcdir = @srcdir@ include_dir_suffix = @include_dir_suffix@ -sdcc_includedir = $(datadir)/$(include_dir_suffix) +sdcc_includedir = $(DESTDIR)$(datadir)/$(include_dir_suffix) CPPFLAGS = @CPPFLAGS@ -I$(PRJDIR) @@ -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) asm/*/features.h *.h $(sdcc_includedir) + $(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