aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorroot <andy@andydoestech.com>2018-06-15 20:19:32 +0000
committerroot <andy@andydoestech.com>2018-06-15 20:19:32 +0000
commitaf4f5f4c175ed0af8ee69eb3073662f84ecb8c02 (patch)
tree1537b4ff8fc4caf9cab47cc89a75c09a27fd64ad
parent81359e4599ff7d53d6cbe91e559ca0e6d13ff8e5 (diff)
removed makefile.m4
-rw-r--r--Makefile.m430
1 files changed, 0 insertions, 30 deletions
diff --git a/Makefile.m4 b/Makefile.m4
deleted file mode 100644
index d9b6c13..0000000
--- a/Makefile.m4
+++ /dev/null
@@ -1,30 +0,0 @@
-FILTERs := FILTERLIST
-
-define getsetting
-$$(grep "^$(2)[ \t]*" $(1) | sed 's/^$(2)[ \t]*//g')
-endef
-
-all: $(FILTERS) build/cgitrc build/cgit.conf build/cgit.php
-
-build/cgitrc: build
- m4 -DCGITCSS="$(call getsetting,tmp/settings.txt,CGITCSS)" -DGITPATH="$(call getsetting,tmp/settings.txt,GITPATH)" cgitrc.m4 > build/cgitrc
-
-build/cgit.conf: build
- echo "<Macro CgitPage \$url>" > build/cgit.conf
- sed 's/^ScriptAlias.*$/ScriptAlias \/$url\/ "\/usr\/lib\/cgit\/cgit.cgi\/"/g;s/^RedirectMatch.*$/RedirectMatch ^$url$ $url\//g' $(call getsetting,tmp/settings.txt,CGITCONF) >> build/cgit.conf
- echo "</Macro>" >> build/cgit.conf
-
-build/cigit.php: build
- m4 -DCGITURL="$(call getsetting,tmp/settings.txt,CGITURL)" cgit.php.m4 > build/cgit.php
-
-$(FILTERS): build/filters
- cp $$(sed 's/^build\///g' <<< "$@") $@
-
-build/filters: build
- mkdir -p build/filters
-
-build:
- mkdir -p build
-
-clean:
- rm -rf build