summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile.am1
-rw-r--r--src/Makefile.am17
2 files changed, 13 insertions, 5 deletions
diff --git a/Makefile.am b/Makefile.am
index 64e88e0..9a44803 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -19,7 +19,6 @@ targets: autorg-greeting
@echo "make new-pages -- Publish new or updated pages from doc/ and org/"
@echo "make doc -- (Re-)Publish the HTML/PDF documentation from doc/"
@echo "make pages -- (Re-)Publish the HTML/PDF pages from org/"
-
@echo
# FIXME: use awk-server, or check more dependencies such as a web server...
diff --git a/src/Makefile.am b/src/Makefile.am
index ed61e99..4c31f78 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -1,12 +1,21 @@
-ELISPSCRIPTS = $(shell find . -type f -name "*.el.in" -print | sed 's/.el.in/.el/g')
-SHELLSCRIPTS = $(shell find . -type f -name "*.sh.in" -print | sed 's/.sh.in/.sh/g')
-
+ELISPSCRIPTS = $(shell find . -type f -name "*.el.in" -print | sed 's/.el.in/.el/g')
+SHELLSCRIPTS = $(shell find . -type f -name "*.sh.in" -print | sed 's/.sh.in/.sh/g')
+AUTORG_COMMAND = $(shell find . -type f -name "autorg*.in" -print | sed 's/.in//g')
+
mkscript = sed \
-e "s|%autorg_path%|$(AUTORG_PATH)|g" \
-e "s|%autorg_domain%|$(AUTORG_DOMAIN)|g" \
-e "s|%orgmode_path%|$(ORGMODE_PATH)|g" \
$1.in
+autorg: autorg.in
+ $(call mkscript,$@) > $@
+ @chmod +x $@
+
+autorg-%: autorg-%.in
+ $(call mkscript,$@) > $@
+ @chmod +x $@
+
%.el : %.el.in
$(call mkscript,$@) > $@
@@ -14,7 +23,7 @@ mkscript = sed \
$(call mkscript,$@) > $@
@chmod +x $@
-all: ${ELISPSCRIPTS} ${SHELLSCRIPTS}
+all: ${ELISPSCRIPTS} ${SHELLSCRIPTS} ${AUTORG_COMMAND}
clean:
rm -f *.el *.sh