2001-09-07 01:00:42 -07:00
|
|
|
# $Id$
|
|
|
|
|
|
|
|
include ../config/Makefile
|
|
|
|
|
|
|
|
TARGET=camlp4.1
|
2003-07-03 07:36:22 -07:00
|
|
|
ALIASES=camlp4o.1 camlp4r.1 mkcamlp4.1 ocpp.1 camlp4o.opt.1 camlp4r.opt.1
|
2001-09-07 01:00:42 -07:00
|
|
|
|
|
|
|
all: $(TARGET)
|
|
|
|
|
|
|
|
clean::
|
|
|
|
rm -f $(TARGET)
|
|
|
|
|
|
|
|
depend:
|
|
|
|
|
|
|
|
get_promote:
|
|
|
|
|
|
|
|
install:
|
2003-07-03 09:14:49 -07:00
|
|
|
if test -n '$(MANDIR)'; then \
|
|
|
|
$(MKDIR) $(MANDIR)/man1 ; \
|
|
|
|
cp $(TARGET) $(MANDIR)/man1/. ; \
|
|
|
|
for i in $(ALIASES); do \
|
2003-07-03 07:36:22 -07:00
|
|
|
rm -f $(MANDIR)/man1/$$i; \
|
|
|
|
echo '.so man1/$(TARGET)' > $(MANDIR)/man1/$$i; \
|
2003-07-03 09:14:49 -07:00
|
|
|
done; \
|
|
|
|
fi
|
2001-09-07 01:00:42 -07:00
|
|
|
|
|
|
|
camlp4.1: camlp4.1.tpl
|
|
|
|
sed -e "s'LIBDIR'$(LIBDIR)'g" camlp4.1.tpl > camlp4.1
|