# Compiling and installing everything and runing test
# ---------------------------------------------------
install: all installdirs
- $(INSTALL) $(TARGET) `echo $(bindir)/sdcc$(EXEEXT)|sed '$(transform)'`
- $(STRIP) `echo $(bindir)/sdcc$(EXEEXT)|sed '$(transform)'`
+ $(INSTALL) $(TARGET) `echo $(DESTDIR)$(bindir)/sdcc$(EXEEXT)|sed '$(transform)'`
+ $(STRIP) `echo $(DESTDIR)$(bindir)/sdcc$(EXEEXT)|sed '$(transform)'`
# Deleting all the installed files
# --------------------------------
uninstall:
- rm -f $(bindir)/sdcc$(EXEEXT)
+ rm -f $(DESTDIR)$(bindir)/sdcc$(EXEEXT)
# Performing self-test
# --------------------
# Creating installation directories
# ---------------------------------
installdirs:
- $(INSTALL) -d $(bindir)
+ $(INSTALL) -d $(DESTDIR)$(bindir)
# Creating dependencies