]> arthur.barton.de Git - aclock.git/commitdiff
axify project and add some documentation
authorAlexander Barton <alex@barton.de>
Sat, 1 Nov 2014 17:12:07 +0000 (18:12 +0100)
committerAlexander Barton <alex@barton.de>
Sat, 1 Nov 2014 17:12:07 +0000 (18:12 +0100)
AUTHORS [new file with mode: 0644]
Makefile [new file with mode: 0644]
Makefile.ax [new file with mode: 0644]
README [new file with mode: 0644]

diff --git a/AUTHORS b/AUTHORS
new file mode 100644 (file)
index 0000000..6ae8135
--- /dev/null
+++ b/AUTHORS
@@ -0,0 +1,2 @@
+Antoni Sawicki <as@tenoware.com> - aclock
+Alexander Barton <alex@barton.de> - build system
diff --git a/Makefile b/Makefile
new file mode 100644 (file)
index 0000000..39c9d4a
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,18 @@
+#
+# Makefile
+#
+
+SUBDIRS = 
+
+all: aclock
+
+aclock: aclock-termcap
+       ln -s aclock-termcap aclock
+
+aclock-termcap:
+       cc aclock-unix-termcap.c -o aclock-termcap -ltermcap -lm
+
+clean-local:
+       rm -f aclock aclock-termcap
+
+include ./Makefile.ax
diff --git a/Makefile.ax b/Makefile.ax
new file mode 100644 (file)
index 0000000..180ce3c
--- /dev/null
@@ -0,0 +1,43 @@
+#
+# ax-make: Alex' Simple Makefile System
+# Copyright (c)2014 Alexander Barton (alex@barton.de)
+#
+# This library is free software; you can redistribute it and/or modify
+# it under the terms of the GNU Lesser General Public License as published
+# by the Free Software Foundation; either version 2.1 of the License, or
+# (at your option) any later version.
+#
+
+AX_SILENT ?= @
+
+PREFIX ?= /usr/local
+
+USER ?= $(shell id -un)
+GROUP ?= $(shell stat --format=%G $(DESTDIR)$(PREFIX) 2>/dev/null || id -gn)
+
+all: all-ax all-local
+
+all-ax: $(ALL) $(SUBDIRS)
+
+clean: clean-ax clean-local
+
+distclean: clean-local distclean-ax distclean-local
+
+maintainer-clean: clean-local distclean-local maintainer-clean-ax maintainer-clean-local
+
+check: check-pre check-ax check-local check-post
+
+install: install-ax install-local
+
+all-ax clean-ax distclean-ax maintainer-clean-ax check-ax install-ax:
+       $(AX_SILENT)for subdir in $(SUBDIRS); do \
+         target=`echo "$@" | sed -e 's/-ax$$//'`; \
+         echo "Making \"$$target\" in \"$$subdir\" ..."; \
+         $(MAKE) -C $$subdir $$target || exit 1; \
+        done
+
+.PHONY: all clean distclean maintainer-clean check install
+.PHONY: all-ax clean-ax distclean-ax maintainer-clean-ax check-ax install-ax
+.PHONY: all-local clean-local distclean-local maintainer-clean-local check-local install-local
+.PHONY: check-pre check-post
+.PHONY: $(SUBDIRS)
diff --git a/README b/README
new file mode 100644 (file)
index 0000000..f750e61
--- /dev/null
+++ b/README
@@ -0,0 +1,5 @@
+aclock - ascii clock for UNIX Console
+
+Copyright (c) 2002 Antoni Sawicki <as@tenoware.com>
+
+<http://www.tenox.net/out/>