Reorganize some of the more random files.
authorMark Wooding <mdw@distorted.org.uk>
Wed, 21 Aug 2019 13:41:27 +0000 (14:41 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Wed, 21 Aug 2019 13:41:27 +0000 (14:41 +0100)
  * Move `sod.m4' and `sod.pc' into `lib/', because they're concerned
    with the C library.

  * Move `asdf-hack.lisp' and `emacs-hacks.el' into `src/', because
    they're concerned with Lisp.

Makefile.am
asdf-hack.lisp.in [deleted file]
lib/Makefile.am
lib/sod.m4 [moved from sod.m4 with 100% similarity]
lib/sod.pc.in [moved from sod.pc.in with 100% similarity]
src/Makefile.am
src/asdf-hack.lisp.in [new file with mode: 0644]
src/emacs-hacks.el [moved from emacs-hacks.el with 100% similarity]

index a41b175..3f03a38 100644 (file)
@@ -28,23 +28,6 @@ include      $(top_srcdir)/vars.am
 SUBDIRS                         =
 
 ###--------------------------------------------------------------------------
-### Package-configuration file.
-
-pkgconfigdir            = $(libdir)/pkgconfig
-pkgconfig_DATA          = sod.pc
-CLEANFILES             += sod.pc
-EXTRA_DIST             += sod.pc.in
-
-sod.pc: sod.pc.in Makefile
-       $(SUBST) $(srcdir)/sod.pc.in >$@.new $(SUBSTITUTIONS) && mv $@.new $@
-
-###--------------------------------------------------------------------------
-### Autoconf machinery.
-
-aclocaldir              = $(datadir)/aclocal
-dist_aclocal_DATA       = sod.m4
-
-###--------------------------------------------------------------------------
 ### Subdirectories to build
 
 ## The SOD translator.
@@ -60,19 +43,6 @@ SUBDIRS                      += doc
 SUBDIRS                        += test
 
 ###--------------------------------------------------------------------------
-### Additional random things useful during development.
-
-## ASDF hacking for finding the system definitions.
-EXTRA_DIST             += asdf-hack.lisp.in
-noinst_DATA            += asdf-hack.lisp
-asdf-hack.lisp: asdf-hack.lisp.in Makefile
-       $(SUBST) $(srcdir)/asdf-hack.lisp.in >$@.new $(SUBSTITUTIONS) && \
-               mv $@.new $@
-
-## Emacs hacking for indentation.
-EXTRA_DIST             += emacs-hacks.el
-
-###--------------------------------------------------------------------------
 ### Distribution.
 
 ## Release number.
diff --git a/asdf-hack.lisp.in b/asdf-hack.lisp.in
deleted file mode 100644 (file)
index 90125c2..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-;; -*-lisp-*-
-
-(declaim (optimize debug))
-(asdf:initialize-source-registry
- `(:source-registry :inherit-configuration
-                   (:directory (,*load-pathname* "src"))))
index 9d36d6c..af62357 100644 (file)
@@ -60,6 +60,23 @@ sod-base.c: $(SOD); $(V_SOD_c)$(SOD) -tc --builtin
 sod-base.h: $(SOD); $(V_SOD_h)$(SOD) -th --builtin
 
 ###--------------------------------------------------------------------------
+### Package-configuration file.
+
+pkgconfigdir            = $(libdir)/pkgconfig
+pkgconfig_DATA          = sod.pc
+CLEANFILES             += sod.pc
+EXTRA_DIST             += sod.pc.in
+
+sod.pc: sod.pc.in Makefile
+       $(SUBST) $(srcdir)/sod.pc.in >$@.new $(SUBSTITUTIONS) && mv $@.new $@
+
+###--------------------------------------------------------------------------
+### Autoconf machinery.
+
+aclocaldir              = $(datadir)/aclocal
+dist_aclocal_DATA       = sod.m4
+
+###--------------------------------------------------------------------------
 ### Other manual pages.
 
 dist_man_MANS          += sod-structs.3
similarity index 100%
rename from sod.m4
rename to lib/sod.m4
similarity index 100%
rename from sod.pc.in
rename to lib/sod.pc.in
index e13f157..e427774 100644 (file)
@@ -212,4 +212,17 @@ uninstall-local:
          rm -f $(DESTDIR)$(pkglispsrcdir)/$$i $(DESTDIR)$(lispsysdir)/$$i; \
        done
 
+###--------------------------------------------------------------------------
+### Additional random things useful during development.
+
+## ASDF hacking for finding the system definitions.
+EXTRA_DIST             += asdf-hack.lisp.in
+noinst_DATA            += asdf-hack.lisp
+asdf-hack.lisp: asdf-hack.lisp.in Makefile
+       $(SUBST) $(srcdir)/asdf-hack.lisp.in >$@.new $(SUBSTITUTIONS) && \
+               mv $@.new $@
+
+## Emacs hacking for indentation.
+EXTRA_DIST             += emacs-hacks.el
+
 ###----- That's all, folks --------------------------------------------------
diff --git a/src/asdf-hack.lisp.in b/src/asdf-hack.lisp.in
new file mode 100644 (file)
index 0000000..a09db8b
--- /dev/null
@@ -0,0 +1,5 @@
+;; -*-lisp-*-
+
+(declaim (optimize debug))
+(asdf:initialize-source-registry
+ `(:source-registry :inherit-configuration (:directory ,*load-pathname*)))
similarity index 100%
rename from emacs-hacks.el
rename to src/emacs-hacks.el