summaryrefslogtreecommitdiff
path: root/lib/date
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2015-01-03 18:17:42 -0800
committerOri Bernstein <ori@eigenstate.org>2015-01-03 18:17:42 -0800
commitbb2bde9cb692c50a3a2a230a68591a85c38e4f79 (patch)
treeff30ea4e5ef6bff69afb7ca8fde6ca98bcb4b083 /lib/date
parentb10b3137d2423629ee2641bf178196e243697c20 (diff)
downloadmc-bb2bde9cb692c50a3a2a230a68591a85c38e4f79.tar.gz
Move to mbld for libdate.
Diffstat (limited to 'lib/date')
-rw-r--r--lib/date/Makefile16
-rw-r--r--lib/date/bldfile8
-rw-r--r--lib/date/mk/myr.mk97
3 files changed, 8 insertions, 113 deletions
diff --git a/lib/date/Makefile b/lib/date/Makefile
deleted file mode 100644
index 4a0088b..0000000
--- a/lib/date/Makefile
+++ /dev/null
@@ -1,16 +0,0 @@
-MYRLIB=date
-MYRSRC= \
- date.myr \
- fmt.myr \
- names.myr \
- parse.myr \
- types.myr \
- zoneinfo.myr \
-
-MYRFLAG=-I .
-
-include config.mk
-include mk/myr.mk
-
-check: all
- make -C test check
diff --git a/lib/date/bldfile b/lib/date/bldfile
new file mode 100644
index 0000000..8c59015
--- /dev/null
+++ b/lib/date/bldfile
@@ -0,0 +1,8 @@
+lib date =
+ date.myr
+ fmt.myr
+ names.myr
+ parse.myr
+ types.myr
+ zoneinfo.myr
+;;
diff --git a/lib/date/mk/myr.mk b/lib/date/mk/myr.mk
deleted file mode 100644
index 843be78..0000000
--- a/lib/date/mk/myr.mk
+++ /dev/null
@@ -1,97 +0,0 @@
-ifneq ($(MYRLIB),)
- _LIBNAME=lib$(MYRLIB).a
-endif
-
-all: subdirs $(_LIBNAME) $(MYRBIN)
-
-subdirs:
- @for i in $(SUB); do (\
- cd $$i && \
- $(MAKE) || \
- exit 1 \
- ) || exit 1; done
-
-subdirs-clean:
- @for i in $(SUB); do (\
- cd $$i && \
- $(MAKE) clean|| \
- exit 1 \
- ); done
-
-subdirs-install:
- @for i in $(SUB); do (\
- cd $$i && \
- $(MAKE) install|| \
- exit 1 \
- ); done
-
-subdirs-uninstall:
- @for i in $(SUB); do (\
- cd $$i && \
- $(MAKE) uninstall|| \
- exit 1 \
- ); done
-
-$(_LIBNAME): $(MYRSRC) $(ASMSRC)
- myrbuild -l $(MYRLIB) $(MYRFLAG) $^
-
-$(MYRBIN): $(MYRSRC) $(ASMSRC)
- myrbuild -b $(MYRBIN) $(MYRFLAG) $^
-
-OBJ=$(MYRSRC:.myr=.o) $(ASMSRC:.s=.o)
-USE=$(MYRSRC:.myr=.use) $(MYRLIB)
-.PHONY: clean
-clean: subdirs-clean
- rm -f $(OBJ)
- rm -f $(USE)
- @if [ ! -z "$(MYRLIB)" ]; then \
- echo rm -f $(MYRLIB); \
- rm -f $(MYRLIB); \
- echo rm -f lib$(MYRLIB).a; \
- rm -f lib$(MYRLIB).a; \
- fi
- @if [ ! -z "$(MYRBIN)" ]; then \
- echo rm -f $(MYRBIN); \
- rm -f $(MYRBIN); \
- echo rm -f lib$(MYRBIN).a; \
- rm -f lib$(MYRBIN).a; \
- fi
-
-install: subdirs-install $(MYRBIN) $(_LIBNAME) $(MAN)
- @if [ ! -z "$(MYRBIN)" ]; then \
- echo install $(MYRBIN) $(abspath $(DESTDIR)/$(INST_ROOT)/bin); \
- mkdir -p $(abspath $(DESTDIR)/$(INST_ROOT)/bin); \
- install $(MYRBIN) $(abspath $(DESTDIR)/$(INST_ROOT)/bin); \
- fi
- @if [ ! -z "$(_LIBNAME)" ]; then \
- echo install -m 644 $(_LIBNAME) $(abspath $(DESTDIR)/$(INST_ROOT)/lib/myr); \
- echo install -m 644 $(MYRLIB) $(abspath $(DESTDIR)/$(INST_ROOT)/lib/myr); \
- mkdir -p $(abspath $(DESTDIR)/$(INST_ROOT)/lib/myr); \
- install -m 644 $(_LIBNAME) $(abspath $(DESTDIR)/$(INST_ROOT)/lib/myr); \
- install -m 644 $(MYRLIB) $(abspath $(DESTDIR)/$(INST_ROOT)/lib/myr); \
- fi
- @for i in $(MAN); do \
- MANSECT=$$(echo $$i | awk -F. '{print $$NF}'); \
- echo mkdir -p $(abspath $(DESTDIR)/$(INST_ROOT)/share/man/man$$MANSECT); \
- echo install -m 644 $(MAN) $(abspath $(DESTDIR)/$(INST_ROOT)/share/man/man$${MANSECT}); \
- mkdir -p $(abspath $(DESTDIR)/$(INST_ROOT)/share/man/man$$MANSECT); \
- install -m 644 $(MAN) $(abspath $(DESTDIR)/$(INST_ROOT)/share/man/man$${MANSECT}); \
- done \
-
-uninstall: subdirs-uninstall
- @for i in $(MYRBIN); do \
- echo rm -f $(abspath $(DESTDIR)/$(INST_ROOT)/bin/$$i); \
- rm -f $(abspath $(DESTDIR)/$(INST_ROOT)/bin/$$i); \
- done
- @for i in $(_LIBNAME) $(MYRLIB); do \
- echo rm -f $(abspath $(DESTDIR)/$(INST_ROOT)/lib/myr/$$i); \
- rm -f $(abspath $(DESTDIR)/$(INST_ROOT)/lib/myr/$$i); \
- done
- @for i in $(MAN); do \
- MANSECT=$$(echo $$i | awk -F. '{print $$NF}'); \
- echo rm -f $(abspath $(DESTDIR)/$(INST_ROOT)/share/man/man$${MANSECT}/$$i); \
- rm -f $(abspath $(DESTDIR)/$(INST_ROOT)/share/man/man$${MANSECT}/$$i); \
- done
-
-config.mk:
- ./configure