X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=device%2Finclude%2FMakefile.in;h=bdae4465dcee7c8aceb23971d1c0ac62058147d7;hb=67da89445478477cbda97171c16f8cc2666ce240;hp=c98bd1251cc1abd5a1a52fef408c7a57299089eb;hpb=b09af35f2f1cde7649d3ac4a6f5d2af6d97895a0;p=fw%2Fsdcc diff --git a/device/include/Makefile.in b/device/include/Makefile.in index c98bd125..bdae4465 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,16 @@ CPPFLAGS = @CPPFLAGS@ -I$(PRJDIR) # ------------------------------------------ all: - # Compiling and installing everything and runing test # --------------------------------------------------- install: all installdirs - $(CP) *.h $(datadir)/sdcc51inc/ + $(CP) asm/*/features.h *.h $(sdcc_includedir) # 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 +62,7 @@ installcheck: # Creating installation directories # --------------------------------- installdirs: - [ -d $(datadir)/sdcc51inc ] || mkdir -p $(datadir)/sdcc51inc + [ -d $(sdcc_includedir) ] || mkdir -p $(sdcc_includedir) # Creating dependencies