Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
camlrunm
config/m.h
config/s.h
launch/header
11 changes: 7 additions & 4 deletions src/launch/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,13 @@

include ../Makefile.inc

all: mosml mosmlc mosmllex camlexec testprog

# header cannot be generated until camlrunm is installed in $(BINDIR)...
all: header mosml mosmlc mosmllex camlexec testprog

install:
echo "#!$(BINDIR)/camlrunm" > $(DESTDIR)$(LIBDIR)/header;
# header cannot be used until camlrunm is installed in $(BINDIR)...
# but we have to pregenerate it with directories of BUILD phase, since
# while packaging (RPM) "make install" runs with fake-root.
cp header $(DESTDIR)$(LIBDIR)/header;
for script in mosml mosmlc mosmllex; do \
${INSTALL_SCRIPT} $$script $(DESTDIR)$(BINDIR)/$$script; \
chmod a+x $(DESTDIR)$(BINDIR)/$$script; \
Expand All @@ -30,6 +31,8 @@ old_install:
chmod a+x $(BINDIR)/$$script; \
done

header:
echo "#!$(BINDIR)/camlrunm" > header

mosml: mosml.tpl
sed -e "s|LIBDIR|$(LIBDIR)|" -e "s|BINDIR|$(BINDIR)|" mosml.tpl > mosml
Expand Down