From: Alexander Barton Date: Sat, 1 Nov 2014 17:12:07 +0000 (+0100) Subject: axify project and add some documentation X-Git-Url: https://arthur.barton.de/gitweb/?p=aclock.git;a=commitdiff_plain;h=2110d84997878204bfe14c54504fb3ca8fcaec51 axify project and add some documentation --- diff --git a/AUTHORS b/AUTHORS new file mode 100644 index 0000000..6ae8135 --- /dev/null +++ b/AUTHORS @@ -0,0 +1,2 @@ +Antoni Sawicki - aclock +Alexander Barton - build system diff --git a/Makefile b/Makefile new file mode 100644 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 index 0000000..180ce3c --- /dev/null +++ b/Makefile.ax @@ -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 index 0000000..f750e61 --- /dev/null +++ b/README @@ -0,0 +1,5 @@ +aclock - ascii clock for UNIX Console + +Copyright (c) 2002 Antoni Sawicki + +