about summary refs log tree commit diff
path: root/converter/ppm/hpcdtoppm
diff options
context:
space:
mode:
authorgiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2023-01-07 23:42:22 +0000
committergiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2023-01-07 23:42:22 +0000
commit4eed4bb806983d6f56e4290a0865f1f03cf914ec (patch)
tree44751e38d01b46504a6e0ed7115801ff7a605ff1 /converter/ppm/hpcdtoppm
parent64441b71e1d0721fbabc90fe429ee7e99518c66f (diff)
downloadnetpbm-mirror-4eed4bb806983d6f56e4290a0865f1f03cf914ec.tar.gz
netpbm-mirror-4eed4bb806983d6f56e4290a0865f1f03cf914ec.tar.xz
netpbm-mirror-4eed4bb806983d6f56e4290a0865f1f03cf914ec.zip
Put imported Hpcdtoppm package in separate directory
git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@4493 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'converter/ppm/hpcdtoppm')
-rw-r--r--converter/ppm/hpcdtoppm/Makefile22
1 files changed, 20 insertions, 2 deletions
diff --git a/converter/ppm/hpcdtoppm/Makefile b/converter/ppm/hpcdtoppm/Makefile
index 5777a84f..9633017e 100644
--- a/converter/ppm/hpcdtoppm/Makefile
+++ b/converter/ppm/hpcdtoppm/Makefile
@@ -7,11 +7,29 @@ VPATH=.:$(SRCDIR)/$(SUBDIR)
 
 include $(BUILDDIR)/config.mk
 
-all: hpcdtoppm
+SCRIPTS =  pcdovtoppm
+
+ifeq ($(file <hpcdtoppm-import/Makefile)x,x)
+  # The file does not exist, which means user did not augment the
+  # Netpbm source tree by adding hpcdtoppm source code.
+  #
+  # Therefore, we package the dummy 'hpcdtoppm' program that just tells the
+  # user how to get the real one.
+  #
+  # See README in this directory.
+  #
+  # (Note that empty file and nonexistent file look the same with
+  # $(file)).
+  SCRIPTS += hpcdtoppm
+else
+  SUBDIRS += hpcdtoppm-import
+endif
 
-SCRIPTS = hpcdtoppm pcdovtoppm
 MERGE_OBJECTS =
 
+.PHONY: all
+all: $(BINARIES) $(SUBDIRS:%=%/all)
+
 include $(SRCDIR)/common.mk
 
 install.bin install.merge: install.bin.local