X-Git-Url: http://j8takagi.net/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=as%2Fcasl2lib%2FMakefile;h=526fae1d2e006e99a8e3b678412c1229294d19d4;hb=ad8b526f2b1058dc41db2928fbf6605648495593;hp=e191cf438f58dd5e64e22fddfae2a34912511308;hpb=3053e64d09d37f001077a8a04b29b394213d8b60;p=YACASL2.git diff --git a/as/casl2lib/Makefile b/as/casl2lib/Makefile index e191cf4..526fae1 100644 --- a/as/casl2lib/Makefile +++ b/as/casl2lib/Makefile @@ -1,17 +1,34 @@ -.PHONY: install-casl2lib uninstall-casl2lib +.PHONY: all libfiles install-casl2lib uninstall-casl2lib -RMF ?= rm -f -RMDIR ?= rmdir -ECHO ?= echo -INSTALL ?= install +CAT := cat +CASL2OUT := casl2 -M4096 -O +RMF := rm -f +RMDIR := rmdir +ECHO := echo +INSTALL := install prefix ?= ~ -sharedir ?= $(prefix)/share +casl2libdir ?= $(prefix)/share/casl2lib + +all: stdlib.casl libfiles + +%.casl: src/%.casl + $(CAT) $^ >$@ + +%.o: %.casl + $(CASL2OUT)$< $@ + +include casl2lib.dep + +clean: + +distclean: + $(RM) *.casl install-casl2lib: *.casl - $(INSTALL) -d $(sharedir)/casl2lib - $(INSTALL) $^ $(sharedir)/casl2lib/ + $(INSTALL) -d $(casl2libdir) + $(INSTALL) $^ $(casl2libdir)/ uninstall-casl2lib: - @$(RMF) $(sharedir)/casl2lib/*.casl - @$(RMDIR) $(sharedir)/casl2lib || if test -e $(sharedir)/casl2lib; then $(ECHO) "$(sharedir)/casl2lib: files may be added by others."; fi + @$(RMF) $(casl2libdir)/*.casl + @$(RMDIR) $(casl2libdir) || if test -e $(casl2libdir); then $(ECHO) "$(casl2libdir): files may be added by others."; fi