Files
cdesktop/cde/programs/dtopen/Makefile.am
Jon Trulson 02b4302a73 Apply various patches from Giacomo Comes <comes@naic.edu>
This makes certain changes if you are bold enough to use a different
installation prefix than /usr/dt:

- fix MANDIR output from dtsearchpath
- missing dtopn_* links
- /usr/dt/bin is always needed
- fix DTKORNSHELL output for dtlp
2023-02-04 13:03:49 -07:00

22 lines
614 B
Makefile

MAINTAINERCLEANFILES = Makefile.in
dist_bin_SCRIPTS = dtopen
LOCAL_CPP_DEFINES = -DCDE_INSTALLATION_TOP=$(CDE_INSTALLATION_TOP) \
-DCDE_CONFIGURATION_TOP=$(CDE_CONFIGURATION_TOP) \
-DKORNSHELL=$(KSH)
BUILT_SOURCES = dtopen
CLEANFILES = $(BUILT_SOURCES)
dtopen: dtopen.src
$(RM) $@
$(GENCPP) -P -DXCOMM=# $(LOCAL_CPP_DEFINES) $< > $@
install-data-hook:
$(RM) $(DESTDIR)$(bindir)/dtopen_*
cd $(DESTDIR)$(bindir) && $(LN_S) dtopen dtopen_video
cd $(DESTDIR)$(bindir) && $(LN_S) dtopen dtopen_image
cd $(DESTDIR)$(bindir) && $(LN_S) dtopen dtopen_ps
cd $(DESTDIR)$(bindir) && $(LN_S) dtopen dtopen_pdf