Browse Source

Make the extension directory if it isn't there on install.

Douglas William Thrift 12 years ago
parent
commit
8ae6654b09
1 changed files with 3 additions and 0 deletions
  1. 3 0
      GNUmakefile

+ 3 - 0
GNUmakefile

@@ -8,11 +8,13 @@ ifeq ($(OS),Windows_NT)
 SED := C:\cygwin\bin\sed.exe
 ZIP := C:\cygwin\bin\zip.exe
 PROFILE := $(subst /,\,$(firstword $(wildcard $(APPDATA)/Instantbird/Profiles/*.default)))
+MKDIR_P := C:\cygwin\bin\mkdir.exe -p
 RM_F := del /F /A
 else
 SED := sed
 ZIP := zip
 PROFILE := $(firstword $(wildcard ~/.instantbird/*.default))
+MKDIR_P := mkdir -p
 RM_F := rm -f
 endif
 
@@ -36,6 +38,7 @@ $(xpi): $(files)
 	$(ZIP) -ll $(xpi) $(files)
 
 install:
+	$(MKDIR_P) $(dir $(shortcut))
 	echo $(cwd)> $(shortcut)
 
 deinstall: