880ba6ba07b22fc1c136d17216cf7bdf21cfbbb8
[YACASL2.git] / as / casl2lib / Makefile
1 .PHONY: install-casl2lib uninstall-casl2lib
2
3 RMF ?= rm -f
4 RMDIR ?= rmdir
5 ECHO ?= echo
6 INSTALL ?= install
7
8 prefix ?= ~
9 casl2libdir ?= $(prefix)/share/casl2lib
10
11 install-casl2lib: *.casl
12         $(INSTALL) -d $(casl2libdir)
13         $(INSTALL) $^ $(casl2libdir)/
14
15 uninstall-casl2lib:
16         @$(RMF) $(casl2libdir)/*.casl
17         @$(RMDIR) $(casl2libdir) || if test -e $(casl2libdir); then $(ECHO) "$(casl2libdir): files may be added by others."; fi