chiark / gitweb /
subdirmk.git
2 years agosubdirmk/generate: Make `FORCE-ALWAYS-RUN' be `.PHONY'
Mark Wooding [Wed, 13 Nov 2019 19:24:41 +0000 (19:24 +0000)]
subdirmk/generate: Make `FORCE-ALWAYS-RUN' be `.PHONY'

Otherwise `touch FORCE-ALWAYS-RUN' stops your build from working, which
seems a shame, even though nobody should ever want to do this.

Signed-off-by: Mark Wooding <mdw@distorted.org.uk>
2 years agosubdirmk/usual.mk.in: Fix `VPATH' setting
Mark Wooding [Wed, 13 Nov 2019 19:08:46 +0000 (19:08 +0000)]
subdirmk/usual.mk.in: Fix `VPATH' setting

This file isn't processed through `generate', so `&' doesn't mean
anything special.

Use `$(top_srcdir)' here because we can rely on that being established
by `main.mk'.

Signed-off-by: Mark Wooding <mdw@distorted.org.uk>
2 years agosubdirmk/regen.mk.in: Trim `$(srcdir)/' prefix from output makefile names
Mark Wooding [Wed, 13 Nov 2019 19:00:23 +0000 (19:00 +0000)]
subdirmk/regen.mk.in: Trim `$(srcdir)/' prefix from output makefile names

This doesn't make a difference if you're doing in-tree builds, of course.

Signed-off-by: Mark Wooding <mdw@distorted.org.uk>
2 years agosubdirmk/generate: Supply default target if none given in command line
Mark Wooding [Wed, 13 Nov 2019 18:42:18 +0000 (18:42 +0000)]
subdirmk/generate: Supply default target if none given in command line

If you just run `make' then `$(MAKECMDGOALS)' is empty, so we get the
default target of `main.mk'.  Nothing is set up by `usual.mk', so we
end up with `$(srcdir)/configure' established by `regen.mk'.

Instead, propagate `all' to the `main.mk' makefile.  Maybe this should
be configurable, though I don't think that'll be very useful in real
life.

Signed-off-by: Mark Wooding <mdw@distorted.org.uk>
2 years agosubdirmk/autogen.sh: Remove myself as copyright holder
Mark Wooding [Wed, 13 Nov 2019 18:48:42 +0000 (18:48 +0000)]
subdirmk/autogen.sh: Remove myself as copyright holder

I had nothing to do with this.  My original proof-of-concept suggested
that developers use `autoreconf' to bootstrap the working tree.

Signed-off-by: Mark Wooding <mdw@distorted.org.uk>
2 years agomore docs
Ian Jackson [Wed, 13 Nov 2019 18:00:18 +0000 (18:00 +0000)]
more docs

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
2 years agominor docs change
Ian Jackson [Wed, 13 Nov 2019 17:56:08 +0000 (17:56 +0000)]
minor docs change

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
2 years agoabbreviate some copyright notices
Ian Jackson [Wed, 13 Nov 2019 17:55:46 +0000 (17:55 +0000)]
abbreviate some copyright notices

No change to legal effect.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
2 years agoadd copyright and licence notices to other files
Ian Jackson [Wed, 13 Nov 2019 17:55:02 +0000 (17:55 +0000)]
add copyright and licence notices to other files

In many cases I copied bits from mdw's originals, so they are all
potentially mdw's.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
2 years agoadd copyright and licence notices to example .[ch] files
Ian Jackson [Wed, 13 Nov 2019 17:53:55 +0000 (17:53 +0000)]
add copyright and licence notices to example .[ch] files

Checked with mdw on irc that this was his intent.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
2 years agoadd legal information including clear copyright grant
Ian Jackson [Wed, 13 Nov 2019 17:51:58 +0000 (17:51 +0000)]
add legal information including clear copyright grant

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
2 years ago.gitignore: adjust some comments
Ian Jackson [Wed, 13 Nov 2019 17:51:30 +0000 (17:51 +0000)]
.gitignore: adjust some comments

2 years agointroduce some boilerplate files
Ian Jackson [Wed, 13 Nov 2019 17:50:56 +0000 (17:50 +0000)]
introduce some boilerplate files

2 years agofix stub Makefile to use MAKECMDGOALS
Ian Jackson [Wed, 13 Nov 2019 17:20:22 +0000 (17:20 +0000)]
fix stub Makefile to use MAKECMDGOALS

otherwise if you give multiple goals it would reenter main.mk

2 years agoactually reject missing .sd.mk files when appropriate
Ian Jackson [Wed, 13 Nov 2019 17:20:12 +0000 (17:20 +0000)]
actually reject missing .sd.mk files when appropriate

2 years agodeps .*.d
Ian Jackson [Wed, 13 Nov 2019 17:17:28 +0000 (17:17 +0000)]
deps .*.d

2 years agodocs
Ian Jackson [Wed, 13 Nov 2019 16:52:49 +0000 (16:52 +0000)]
docs

2 years agoadd missing ignore
Ian Jackson [Wed, 13 Nov 2019 16:52:43 +0000 (16:52 +0000)]
add missing ignore

2 years agobetter generation of MAKEFILE_TEMPLATES (dedupe)
Ian Jackson [Wed, 13 Nov 2019 16:52:29 +0000 (16:52 +0000)]
better generation of MAKEFILE_TEMPLATES (dedupe)

2 years agodo not demand \W after CAPS and lc
Ian Jackson [Wed, 13 Nov 2019 16:52:12 +0000 (16:52 +0000)]
do not demand \W after CAPS and lc

2 years agomake TARGETS make :: rules
Ian Jackson [Wed, 13 Nov 2019 16:51:53 +0000 (16:51 +0000)]
make TARGETS make :: rules

2 years agochange filenames
Ian Jackson [Wed, 13 Nov 2019 16:12:20 +0000 (16:12 +0000)]
change filenames

2 years agowip docs
Ian Jackson [Wed, 13 Nov 2019 15:27:02 +0000 (15:27 +0000)]
wip docs

2 years agoalways run regenerate from config.status
Ian Jackson [Wed, 13 Nov 2019 15:26:43 +0000 (15:26 +0000)]
always run regenerate from config.status

it is too hard to figure out when to do this, and it is fast

2 years agowip docs, before rename .mk.in
Ian Jackson [Wed, 13 Nov 2019 15:20:56 +0000 (15:20 +0000)]
wip docs, before rename .mk.in

2 years agomake Perdir.mk.in optional
Ian Jackson [Wed, 13 Nov 2019 15:16:43 +0000 (15:16 +0000)]
make Perdir.mk.in optional

2 years agofurther refactor filter_subdir_mk, replace loop with calls, nfc
Ian Jackson [Wed, 13 Nov 2019 15:16:23 +0000 (15:16 +0000)]
further refactor filter_subdir_mk, replace loop with calls, nfc

2 years agofurther refactor filter_subdir_mk, moving $srcdir, nfc
Ian Jackson [Wed, 13 Nov 2019 15:15:41 +0000 (15:15 +0000)]
further refactor filter_subdir_mk, moving $srcdir, nfc

2 years agorefactor filter_subdir_mk, breaking out $pi, nfc
Ian Jackson [Wed, 13 Nov 2019 15:14:55 +0000 (15:14 +0000)]
refactor filter_subdir_mk, breaking out $pi, nfc

2 years agowip docs
Ian Jackson [Wed, 13 Nov 2019 15:05:27 +0000 (15:05 +0000)]
wip docs

2 years agosort regen
Ian Jackson [Wed, 13 Nov 2019 15:05:22 +0000 (15:05 +0000)]
sort regen

2 years agovarious stuff into submakefiles
Ian Jackson [Wed, 13 Nov 2019 15:05:14 +0000 (15:05 +0000)]
various stuff into submakefiles

2 years agowip docs
Ian Jackson [Wed, 13 Nov 2019 14:48:15 +0000 (14:48 +0000)]
wip docs

2 years agomove much into usual.mk.in
Ian Jackson [Wed, 13 Nov 2019 13:48:52 +0000 (13:48 +0000)]
move much into usual.mk.in

2 years agocheck right thing in config_targets
Ian Jackson [Wed, 13 Nov 2019 13:48:34 +0000 (13:48 +0000)]
check right thing in config_targets

2 years ago&:include feature
Ian Jackson [Wed, 13 Nov 2019 13:48:21 +0000 (13:48 +0000)]
&:include feature

2 years ago$enoent_ok and GEN filehandle (nfc)
Ian Jackson [Wed, 13 Nov 2019 13:47:48 +0000 (13:47 +0000)]
$enoent_ok and GEN filehandle (nfc)

2 years agobuffering_output feature (nfc)
Ian Jackson [Wed, 13 Nov 2019 13:47:16 +0000 (13:47 +0000)]
buffering_output feature (nfc)

2 years agobreak out process_input_mk (nfc)
Ian Jackson [Wed, 13 Nov 2019 13:26:00 +0000 (13:26 +0000)]
break out process_input_mk (nfc)

2 years agorun config.status with selective tags, better, docs
Ian Jackson [Wed, 13 Nov 2019 13:13:19 +0000 (13:13 +0000)]
run config.status with selective tags, better, docs

2 years agorun config.status with selective tags
Ian Jackson [Wed, 13 Nov 2019 13:04:43 +0000 (13:04 +0000)]
run config.status with selective tags

2 years agoWIP attempt to run config.status with selective tags
Ian Jackson [Wed, 13 Nov 2019 12:54:19 +0000 (12:54 +0000)]
WIP attempt to run config.status with selective tags

Does not work right now...

2 years agoclarify comment
Ian Jackson [Wed, 13 Nov 2019 01:30:35 +0000 (01:30 +0000)]
clarify comment

2 years agofix out of tree builds
Ian Jackson [Wed, 13 Nov 2019 01:24:52 +0000 (01:24 +0000)]
fix out of tree builds

2 years agofixes
Ian Jackson [Wed, 13 Nov 2019 01:09:37 +0000 (01:09 +0000)]
fixes

2 years agodocs
Ian Jackson [Wed, 13 Nov 2019 00:54:51 +0000 (00:54 +0000)]
docs

2 years agodocs
Ian Jackson [Wed, 13 Nov 2019 00:53:01 +0000 (00:53 +0000)]
docs

2 years ago&! new esc can be anything
Ian Jackson [Wed, 13 Nov 2019 00:52:41 +0000 (00:52 +0000)]
&! new esc can be anything

2 years agotidying
Ian Jackson [Wed, 13 Nov 2019 00:44:11 +0000 (00:44 +0000)]
tidying

2 years agotidying
Ian Jackson [Wed, 13 Nov 2019 00:43:46 +0000 (00:43 +0000)]
tidying

2 years agotidying
Ian Jackson [Wed, 13 Nov 2019 00:42:38 +0000 (00:42 +0000)]
tidying

2 years agotidying
Ian Jackson [Wed, 13 Nov 2019 00:41:30 +0000 (00:41 +0000)]
tidying

2 years agotidying
Ian Jackson [Wed, 13 Nov 2019 00:34:02 +0000 (00:34 +0000)]
tidying

2 years agodep on subdirmk.ac
Ian Jackson [Wed, 13 Nov 2019 00:29:04 +0000 (00:29 +0000)]
dep on subdirmk.ac

2 years agoCONFIGURE_ACS
Ian Jackson [Wed, 13 Nov 2019 00:28:08 +0000 (00:28 +0000)]
CONFIGURE_ACS

2 years agoPerdir dep
Ian Jackson [Wed, 13 Nov 2019 00:23:39 +0000 (00:23 +0000)]
Perdir dep

2 years agocleaning
Ian Jackson [Wed, 13 Nov 2019 00:23:32 +0000 (00:23 +0000)]
cleaning

2 years agoWIP
Ian Jackson [Tue, 12 Nov 2019 17:56:46 +0000 (17:56 +0000)]
WIP

2 years agoWIP
Ian Jackson [Tue, 12 Nov 2019 17:51:40 +0000 (17:51 +0000)]
WIP

2 years agoWIP REORG
Ian Jackson [Tue, 12 Nov 2019 17:34:03 +0000 (17:34 +0000)]
WIP REORG

2 years agoWORKS
Ian Jackson [Tue, 12 Nov 2019 17:13:06 +0000 (17:13 +0000)]
WORKS

2 years agoDOES NOT WORK
Ian Jackson [Tue, 12 Nov 2019 17:11:26 +0000 (17:11 +0000)]
DOES NOT WORK

2 years agoTEST MULTI OUTPUT THING
Ian Jackson [Tue, 12 Nov 2019 17:10:03 +0000 (17:10 +0000)]
TEST MULTI OUTPUT THING

2 years agoWIP
Ian Jackson [Mon, 11 Nov 2019 02:15:08 +0000 (02:15 +0000)]
WIP

2 years agowip
Ian Jackson [Mon, 11 Nov 2019 02:12:54 +0000 (02:12 +0000)]
wip

2 years agoWIP
Ian Jackson [Mon, 11 Nov 2019 01:46:10 +0000 (01:46 +0000)]
WIP

2 years agowip
Ian Jackson [Mon, 11 Nov 2019 00:57:54 +0000 (00:57 +0000)]
wip

2 years agoWIP
Ian Jackson [Mon, 11 Nov 2019 00:55:16 +0000 (00:55 +0000)]
WIP

2 years agowip
Ian Jackson [Mon, 11 Nov 2019 00:16:44 +0000 (00:16 +0000)]
wip

2 years agoWIP
Ian Jackson [Mon, 11 Nov 2019 00:03:27 +0000 (00:03 +0000)]
WIP

2 years agoWIP
Ian Jackson [Sun, 10 Nov 2019 21:05:54 +0000 (21:05 +0000)]
WIP

2 years agoCOMING ALONG
Ian Jackson [Sun, 10 Nov 2019 21:00:25 +0000 (21:00 +0000)]
COMING ALONG

2 years agoWIP
Ian Jackson [Sun, 10 Nov 2019 20:55:50 +0000 (20:55 +0000)]
WIP

2 years agoWIP
Ian Jackson [Sun, 10 Nov 2019 20:54:28 +0000 (20:54 +0000)]
WIP

2 years agoRUNS BUT NOT VERY GOOD
Ian Jackson [Sun, 10 Nov 2019 20:49:18 +0000 (20:49 +0000)]
RUNS BUT NOT VERY GOOD

2 years agoWIP
Ian Jackson [Sun, 10 Nov 2019 20:40:23 +0000 (20:40 +0000)]
WIP

2 years agoWIP
Ian Jackson [Sun, 10 Nov 2019 20:39:57 +0000 (20:39 +0000)]
WIP

2 years agoWIP
Ian Jackson [Sun, 10 Nov 2019 20:31:11 +0000 (20:31 +0000)]
WIP

2 years agoWIP
Ian Jackson [Sun, 10 Nov 2019 20:28:32 +0000 (20:28 +0000)]
WIP

2 years agoWIP
Ian Jackson [Sun, 10 Nov 2019 20:28:18 +0000 (20:28 +0000)]
WIP

2 years agoWIP
Ian Jackson [Sun, 10 Nov 2019 20:24:06 +0000 (20:24 +0000)]
WIP

2 years agoBEFORE CHANGE &&
Ian Jackson [Sun, 10 Nov 2019 19:24:39 +0000 (19:24 +0000)]
BEFORE CHANGE &&

2 years agoGO BACK TO HIER
Ian Jackson [Sun, 10 Nov 2019 13:41:00 +0000 (13:41 +0000)]
GO BACK TO HIER

2 years agoBFORE NOT QUAD
Ian Jackson [Sun, 10 Nov 2019 13:40:26 +0000 (13:40 +0000)]
BFORE NOT QUAD

2 years agoWIP PART OF SUBDIR
Ian Jackson [Sun, 10 Nov 2019 13:32:37 +0000 (13:32 +0000)]
WIP PART OF SUBDIR

2 years agoRevert "BEFORE NO BUILD TREE"
Ian Jackson [Sun, 10 Nov 2019 13:31:36 +0000 (13:31 +0000)]
Revert "BEFORE NO BUILD TREE"

This reverts commit a423046ad42c0fbdf7fd3afad88dfe57dfbd30ca.

2 years agoBEFORE NO BUILD TREE
Ian Jackson [Sun, 10 Nov 2019 13:31:08 +0000 (13:31 +0000)]
BEFORE NO BUILD TREE

2 years agoWIP
Ian Jackson [Sun, 10 Nov 2019 13:10:29 +0000 (13:10 +0000)]
WIP

2 years agoWIP NEW STYLE
Ian Jackson [Sun, 10 Nov 2019 12:43:18 +0000 (12:43 +0000)]
WIP NEW STYLE

2 years agoRENAME TO .IN
Ian Jackson [Sun, 10 Nov 2019 12:05:13 +0000 (12:05 +0000)]
RENAME TO .IN

2 years agolib/t/toytest.c: Make test more perspicuous.
Mark Wooding [Fri, 8 Nov 2019 17:32:50 +0000 (17:32 +0000)]
lib/t/toytest.c: Make test more perspicuous.

What was I thinking?

2 years agoExample project using nonrecursive make.
Mark Wooding [Fri, 8 Nov 2019 16:55:32 +0000 (16:55 +0000)]
Example project using nonrecursive make.