Rename 'binary' directory to 'binary-dist' (#43)
authorHugh McMaster <hugh.mcmaster@outlook.com>
Sun, 17 May 2020 06:49:31 +0000 (16:49 +1000)
committerGitHub <noreply@github.com>
Sun, 17 May 2020 06:49:31 +0000 (08:49 +0200)
* Rename 'binary' directory to 'binary-dist'

Debian invokes a 'binary' target in its build process. The presence of
the 'binary' directory breaks the automated build, as 'make' thinks the
target has already been invoked.

* Use substitution variable for 'mkdir -p' instead of hard-coding the command

Makefile.am
README-Win32.txt
binary-dist/.gitignore [moved from binary/.gitignore with 100% similarity]
binary-dist/Makefile.am [moved from binary/Makefile.am with 91% similarity]
configure.ac

index 146a7e1..f999a7f 100644 (file)
@@ -1,4 +1,4 @@
-SUBDIRS = m4m po libexif test doc binary contrib
+SUBDIRS = m4m po libexif test doc binary-dist contrib
 
 EXTRA_DIST = @PACKAGE_TARNAME@.spec README-Win32.txt
 
index 45a16af..58ff1a1 100644 (file)
@@ -1,7 +1,7 @@
 If this is a combined source/binary distribution tree, then you can find
 
-   * the binary DLL     in the subdirectory  binary/bin/
-   * the include files  in the subdirectory  binary/include/
+   * the binary DLL     in the subdirectory  binary-dist/bin/
+   * the include files  in the subdirectory  binary-dist/include/
 
 As for building libexif yourself on or for Win32, you can
 
similarity index 100%
rename from binary/.gitignore
rename to binary-dist/.gitignore
similarity index 91%
rename from binary/Makefile.am
rename to binary-dist/Makefile.am
index 067716b..75e644b 100644 (file)
@@ -5,7 +5,7 @@ EXTRA_DIST = include bin
 SH_DIST_HOOK = dist-ship-binary-hook
 dist-ship-binary-hook include bin:
        cd "$(top_builddir)" && $(MAKE) includedir="$(PWD)/include" DESTDIR="" prefix="$(PWD)/tmp" install
-       mkdir -p "$(PWD)/bin"
+       $(MKDIR_P) "$(PWD)/bin"
        cp "$(PWD)/tmp/bin/"*.dll "bin/"
 
 endif
index f39b4f3..b0a5881 100644 (file)
@@ -215,7 +215,7 @@ AC_CONFIG_FILES([  po/Makefile.in
   doc/Doxyfile-internals
   libexif.pc
   libexif-uninstalled.pc
-  binary/Makefile
+  binary-dist/Makefile
   contrib/Makefile
   contrib/examples/Makefile
 ])