infodir = @infodir@
srcdir = @srcdir@
+include_dir_suffix = @include_dir_suffix@
+
+sdcc_includedir = $(datadir)/$(include_dir_suffix)
+
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)
+ find $(sdcc_includedir) -type d -name 'CVS' -exec rm {} \;
# Deleting all the installed files
# --------------------------------
uninstall:
- for hdr in *.h; do rm -f $(datadir)/$$hdr; done
+ rm -rf $(sdcc_includedir)
# Performing self-test
# Creating installation directories
# ---------------------------------
installdirs:
- [ -d $(datadir)/sdcc51inc ] || mkdir -p $(datadir)/sdcc51inc
+ [ -d $(sdcc_includedir) ] || mkdir -p $(sdcc_includedir)
# Creating dependencies