diff options
Diffstat (limited to 'converter/ppm/hpcdtoppm/Makefile')
-rw-r--r-- | converter/ppm/hpcdtoppm/Makefile | 24 |
1 files changed, 21 insertions, 3 deletions
diff --git a/converter/ppm/hpcdtoppm/Makefile b/converter/ppm/hpcdtoppm/Makefile index 59ba3630..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 @@ -19,7 +37,7 @@ install.bin install.merge: install.bin.local install.bin.local: $(PKGDIR)/bin # In June 2002, pcdovtoppm replaced pcdindex cd $(PKGDIR)/bin ; \ - $(SYMLINK) pcdovtoppm$(EXE) pcdindex$(EXE) + $(SYMLINK) pcdovtoppm pcdindex FORCE: |