1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73
|
Author: Miriam Ruiz <little_miry@yahoo.es>
Description: Add DESTDIR support and other fixes to the makefile
Last-Update: 2008-04-04
--- a/src/sdlBasic/src/sdlBasic/gtk/makefile
+++ b/src/sdlBasic/src/sdlBasic/gtk/makefile
@@ -96,25 +96,26 @@
# This is OK - just means no SciTE in the Gnome Applications menu
# Dead: install -D SciTEGTK.properties $(SYSCONF_PATH)/SciTEGlobal.properties
install:
- $(INSTALL) -m 755 -d $(bindir) $(SYSCONF_PATH)
- $(INSTALL) -m 755 -d $(bindir) $(DOC_PATH)
- $(INSTALL) -m 755 -d $(bindir) $(PLUGINS_PATH)
+ $(INSTALL) -m 755 -d "$(DESTDIR)$(bindir)"
+ $(INSTALL) -m 755 -d "$(DESTDIR)$(SYSCONF_PATH)"
+ $(INSTALL) -m 755 -d "$(DESTDIR)$(DOC_PATH)"
+ $(INSTALL) -m 755 -d "$(DESTDIR)$(PLUGINS_PATH)"
- $(INSTALL) -m 755 $(PROG) $(bindir)
+ $(INSTALL) -m 755 $(PROG) "$(DESTDIR)$(bindir)"
for files in ../../../share/sdlBasic/*.properties ../../../share/sdlBasic/*.api; \
do \
- $(INSTALL) -m 644 $$files $(SYSCONF_PATH); \
+ $(INSTALL) -m 644 $$files "$(DESTDIR)$(SYSCONF_PATH)"; \
done
#for files in ..../share/doc/sdlBasic/*.html ../doc/SciTEIco.png ../doc/PrintHi.png; \
#do \
-#$(INSTALL) -m 644 $$files $(DOC_PATH); \
+#$(INSTALL) -m 644 $$files "$(DESTDIR)$(DOC_PATH)"; \
#done
for files in ../../../share/sdlBasic/plugins/*.sdlbas; \
do \
- $(INSTALL) -m 644 $$files $(PLUGINS_PATH); \
+ $(INSTALL) -m 644 $$files "$(DESTDIR)$(PLUGINS_PATH)"; \
done
uninstall:
--- a/src/sdlBasic/src/sdlBrt/makefile
+++ b/src/sdlBasic/src/sdlBrt/makefile
@@ -328,23 +328,23 @@
ifeq ($(compress), UPX)
upx -9 $(TARGET)
endif
- $(INSTALL) -c -m 755 -d ${exec_prefix}
- $(INSTALL) -c $(TARGET) ${exec_prefix}
+ $(INSTALL) -c -m 755 -d "$(DESTDIR)$(exec_prefix)"
+ $(INSTALL) -c $(TARGET) "$(DESTDIR)$(exec_prefix)"
install-fonts:
- $(INSTALL) -c -m 755 -d ${font_prefix}/dejavu
- $(INSTALL) fonts/DejaVuSans.ttf ${font_prefix}/dejavu/DejaVuSans.ttf
- $(INSTALL) fonts/DejaVuSansMono-Roman.ttf ${font_prefix}/dejavu/DejaVuSansMono-Roman.ttf
+ $(INSTALL) -c -m 755 -d "$(DESTDIR)$(font_prefix)"/dejavu
+ $(INSTALL) fonts/DejaVuSans.ttf "$(DESTDIR)$(font_prefix)"/dejavu/DejaVuSans.ttf
+ $(INSTALL) fonts/DejaVuSansMono-Roman.ttf "$(DESTDIR)$(font_prefix)"/dejavu/DejaVuSansMono-Roman.ttf
remove: remove-bin remove-fonts
remove-bin:
- $(RM) ${exec_prefix}/$(TARGET)
+ $(RM) "$(DESTDIR)$(exec_prefix)/$(TARGET)"
remove-fonts:
- $(RM) ${font_prefix}/dejavu/DejaVuSans.ttf
- $(RM) ${font_prefix}/dejavu/DejaVuSansMono-Roman.ttf
+ $(RM) "$(DESTDIR)$(font_prefix)"/dejavu/DejaVuSans.ttf
+ $(RM) "$(DESTDIR)$(font_prefix)"/dejavu/DejaVuSansMono-Roman.ttf
clean:
$(RM) *.o
|