# 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
# ---------------------
dep: version.h Makefile.dep
-Makefile.dep: $(SOURCES) $(SLIBSOURCES) $(SPECIAL) *.h $(PRJDIR)/*.h
+Makefile.dep: version.h $(SOURCES) $(SLIBSOURCES) $(SPECIAL) *.h $(PRJDIR)/*.h
$(CPP) $(CPPFLAGS) $(M_OR_MM) $(SOURCES) $(SLIBSOURCES) >Makefile.dep
include Makefile.dep