New build system for chttpd

Project: http://git-wip-us.apache.org/repos/asf/couchdb-chttpd/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-chttpd/commit/45cee592
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-chttpd/tree/45cee592
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-chttpd/diff/45cee592

Branch: refs/heads/import
Commit: 45cee5924056c3c3a6c8850812aa1392b2dfa0df
Parents: f5bac20
Author: Paul J. Davis <[email protected]>
Authored: Wed Mar 6 13:14:40 2013 -0600
Committer: Paul J. Davis <[email protected]>
Committed: Fri Jan 17 13:36:05 2014 -0800

----------------------------------------------------------------------
 Makefile.am        | 56 +++++++++++++++++++++++++++++++++++++++++++++++++
 src/chttpd.app.src | 30 ++++++++++++++++++++++----
 2 files changed, 82 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-chttpd/blob/45cee592/Makefile.am
----------------------------------------------------------------------
diff --git a/Makefile.am b/Makefile.am
new file mode 100644
index 0000000..15ae77c
--- /dev/null
+++ b/Makefile.am
@@ -0,0 +1,56 @@
+## Licensed under the Apache License, Version 2.0 (the "License"); you may not
+## use this file except in compliance with the License.  You may obtain a copy
+## of the License at
+##
+##   http://www.apache.org/licenses/LICENSE-2.0
+##
+## Unless required by applicable law or agreed to in writing, software
+## distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+## WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.  See the
+## License for the specific language governing permissions and limitations 
under
+## the License.
+
+chttpdebindir = $(localerlanglibdir)/chttpd/ebin
+
+chttpdebin_DATA = $(compiled_files)
+
+source_files = \
+       src/chttpd.app.src \
+       src/chttpd.erl \
+       src/chttpd_app.erl \
+       src/chttpd_config_listener.erl \
+       src/chttpd_db.erl \
+       src/chttpd_external.erl \
+       src/chttpd_misc.erl \
+       src/chttpd_rewrite.erl \
+       src/chttpd_show.erl \
+       src/chttpd_sup.erl \
+       src/chttpd_view.erl
+
+compiled_files = \
+       ebin/chttpd.app \
+       ebin/chttpd.beam \
+       ebin/chttpd_app.beam \
+       ebin/chttpd_config_listener.beam \
+       ebin/chttpd_db.beam \
+       ebin/chttpd_misc.beam \
+       ebin/chttpd_rewrite.beam \
+       ebin/chttpd_show.beam \
+       ebin/chttpd_sup.beam
+
+# Conflicts in couch_db.hrl prevent us from building these
+# until after we merge the couch application
+#      ebin/chttpd_external.beam
+#      ebin/chttpd_view.beam
+
+
+EXTRA_DIST = $(source_files)
+CLEANFILES = $(compiled_files)
+
+ebin/%.app: src/%.app.src
+       @mkdir -p ebin/
+       sed -e "s|%version%|@version@|g" < $< > $@
+
+ebin/%.beam: src/%.erl
+       @mkdir -p ebin/
+       $(ERLC) -Wall -I$(top_srcdir)/src -o ebin/ $(ERLC_FLAGS) $<

http://git-wip-us.apache.org/repos/asf/couchdb-chttpd/blob/45cee592/src/chttpd.app.src
----------------------------------------------------------------------
diff --git a/src/chttpd.app.src b/src/chttpd.app.src
index b2cfb99..07ab564 100644
--- a/src/chttpd.app.src
+++ b/src/chttpd.app.src
@@ -1,7 +1,29 @@
 {application, chttpd, [
     {description, "HTTP interface for CouchDB cluster"},
-    {vsn, git},
-    {registered, [chttpd_sup, chttpd]},
-    {applications, [kernel, stdlib, twig, config, couch, fabric]},
+    {vsn, "%version%"},
+    {modules, [
+        chttpd,
+        chttpd_app,
+        chttpd_config_listener,
+        chttpd_db,
+        chttpd_external,
+        chttpd_misc,
+        chttpd_rewrite,
+        chttpd_show,
+        chttpd_sup,
+        chttpd_view
+    ]},
+    {registered, [
+        chttpd_sup,
+        chttpd
+    ]},
+    {applications, [
+        kernel,
+        stdlib,
+        twig,
+        config,
+        couch,
+        fabric
+    ]},
     {mod, {chttpd_app,[]}}
-]}.
\ No newline at end of file
+]}.

Reply via email to