X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=device%2Finclude%2FMakefile.in;h=075a5e50566ebf859d0b0520ade59bfafc876b51;hb=bf6f6cf752b8248811eb665f2f01939958592cb7;hp=c98bd1251cc1abd5a1a52fef408c7a57299089eb;hpb=b09af35f2f1cde7649d3ac4a6f5d2af6d97895a0;p=fw%2Fsdcc diff --git a/device/include/Makefile.in b/device/include/Makefile.in index c98bd125..075a5e50 100644 --- a/device/include/Makefile.in +++ b/device/include/Makefile.in @@ -26,6 +26,10 @@ man2dir = $(mandir)/man2 infodir = @infodir@ srcdir = @srcdir@ +include_dir_suffix = @include_dir_suffix@ + +sdcc_includedir = $(datadir)/$(include_dir_suffix) + CPPFLAGS = @CPPFLAGS@ -I$(PRJDIR) @@ -33,17 +37,20 @@ CPPFLAGS = @CPPFLAGS@ -I$(PRJDIR) # ------------------------------------------ all: - -# Compiling and installing everything and runing test -# --------------------------------------------------- +# Compiling and installing everything and running test +# ---------------------------------------------------- install: all installdirs - $(CP) *.h $(datadir)/sdcc51inc/ + $(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 # -------------------------------- uninstall: - for hdr in *.h; do rm -f $(datadir)/$$hdr; done + rm -rf $(sdcc_includedir) # Performing self-test @@ -59,7 +66,8 @@ installcheck: # Creating installation directories # --------------------------------- installdirs: - [ -d $(datadir)/sdcc51inc ] || mkdir -p $(datadir)/sdcc51inc + [ -d $(sdcc_includedir) ] || mkdir -p $(sdcc_includedir) + [ -d $(sdcc_includedir)/pic16 ] || mkdir -p $(sdcc_includedir)/pic16 # Creating dependencies